Here is a use case of how to get weather data from API using Big5. We will get the wind speed as a matter of example. Other data such as temperature, humidity, wind direction, visibility etc, can be easily collected following the example.
1. Get a free account at https://openweathermap.org and log-in
2. Get API key
3. Set HTTP profile at Big5 setup
Name: Weather-wind
GET
http://api.openweathermap.org/data/2...rial&APPID=xyz
(where lat and lon are the latitude and longitude of your location and xyz is your personal API key (see above)
Device value expression: JSON_Num(input, "wind.speed")
4. Setup and run HS3 event that uses Big5 HTTP action and sends empty string to profile "Weather-wind" that you created
Voila - you will get the wind speed in a dedicated HS3 device created/updated automatically by Big5
Floor: Big5
Room: HTTP
Name: Weather-wind
Use the above URL in a browser to verify that everything is properly setup and to see the JSON response by the API.
Knowing JSON response you can easily setup other Big5 profiles to fetch additional weather data such as temperature, humidity, wind direction, visibility etc.
Now that practically everything is available as an API Big5 opens unlimited opportunities.
With the $70 that you will save by not buying a weather station from Costco you can buy Big5 plug-in and treat yourself with few beers.
Update: Big 5 v 1.20 makes it even better see below.
1. Get a free account at https://openweathermap.org and log-in
2. Get API key
3. Set HTTP profile at Big5 setup
Name: Weather-wind
GET
http://api.openweathermap.org/data/2...rial&APPID=xyz
(where lat and lon are the latitude and longitude of your location and xyz is your personal API key (see above)
Device value expression: JSON_Num(input, "wind.speed")
4. Setup and run HS3 event that uses Big5 HTTP action and sends empty string to profile "Weather-wind" that you created
Voila - you will get the wind speed in a dedicated HS3 device created/updated automatically by Big5
Floor: Big5
Room: HTTP
Name: Weather-wind
Use the above URL in a browser to verify that everything is properly setup and to see the JSON response by the API.
Knowing JSON response you can easily setup other Big5 profiles to fetch additional weather data such as temperature, humidity, wind direction, visibility etc.
Now that practically everything is available as an API Big5 opens unlimited opportunities.
With the $70 that you will save by not buying a weather station from Costco you can buy Big5 plug-in and treat yourself with few beers.
Update: Big 5 v 1.20 makes it even better see below.
Comment