No announcement yet.

Get local weather data by Big5 and API (no equipment needed)

  • Filter
  • Time
  • Show
Clear All
new posts

    Get local weather data by Big5 and API (no equipment needed)

    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 and log-in
    2. Get API key
    3. Set HTTP profile at Big5 setup

    Name: Weather-wind
    (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.
    Last edited by risquare; November 5, 2018, 11:09 PM. Reason: update about the new version Big 5 v 1.20

    Life got better after the release of Big5 v1.20. Now you can parse the whole JSON API at once and create/update as many HS3 devices at once.

    All you need to do is to separate Name Expressions and Device expressions with && (see below)

    In the example below we chose to create 4 HS3 devices.


    This is the API as it comes from the Weather data provider

    "name":"Fairbanks Ranch",

    Device name expressions

    "Temperature" && "Pressure" && "Humidity" && "Community"

    Device Value Expressions

    JSON(input, "main.temp") && JSON(input, "main.pressure") && JSON(input, "main.humidity") && JSON(input, "name")

    This produces 4 HS3 devices each containing value if the RegEx result is numerical and string if the RegEx result is a string

    Click image for larger version

Name:	Screenshot (136).png
Views:	639
Size:	77.4 KB
ID:	1257048


      Yeah got it ! Thanks.

      Attached Files


        How can I change the the mph to kmh ? And fahrenheit to celcius?


          a recuring event of 15 min is ok?


            There is “units=imperial” in the URI replace it with “units=metric” to get metrics.
            yes any frequence you choose is good and 15 min is a good practical value.
            there is time reference in the API of when data was updated by the service provider. Unfortunately it is in UNIX format that’s hard to convert in HS3.


              yes just saw it :P Examples of API calls:




              thank you


                This start to be off topic but is this a bug ? This is directly from the api

                "wind":{"speed":1.46, metric
                "wind":{"speed":3.27, imperial

                edit : here is the cause :

                wind.speed Wind speed. Unit Default: meter/sec, Metric: meter/sec, Imperial: miles/hour.


                so... to get Km/h instead of M/s .....the value would need to be:

                JSON(input, "wind.speed") *3.6

                is there a way to multiply by 3.6?

                Last edited by MattL0; November 4, 2018, 06:01 PM.


                  Try JSON_Num(input, "wind.speed") *3.6


                    That works thank you


                      If in doubt than use the sand box to check. Paste the whole JSON file in the input field and enter ${JSON_Num(input, "wind.speed") *3.6} or any formula that you want to test. Remember to strip the ${ } brackets when going back to Big5 profile setup.


                        ok will do.

                        But when you want to get the forecast for 5 days

                        How do you do?

                        I mean... this is huge..


                          Find a good online JSON fomatter to take a structured view. Here is one You'll notice that the API although large is pretty uniform. They use Epoch time (Unix style time), which is pretty annoying and difficult to work with but you're Unix guy. Still plenty of data to gather. If you want say 6 parameters for 5 days ahead that's 30 values to gather. Good test for Big5. Let us know how it went if you decide to do it.


                            !! thank you for this formatter.

                            What i am wondering is how to diferenciate the days ? I see the dt value...and i ( eg"dt":1486090800).....but how do i use this with your plugin? After conting the number of dt value It seems they are 3hours interval each.. so i am at a lost lol
                            I would just need one example of a device (in this context of multiple days with the same syntaxt), and i'm ready to go

                            and is there a way to use their icon?

                            "description":"clear sky",
                            Last edited by MattL0; November 5, 2018, 06:23 PM.


                              Here is a 7 days forecast.

                              But the api is paid. Guess i'll scratch that. Will chek to get the data from the 5 days forecast at the same hour every day. But need to figure out this dt thing