Weather is so important, for so many things. Weather predictions can help to tell us how to control our heating, to close the skylight when it’s going to rain, or tell us to get our vehicle under cover when a damaging hailstorm is coming. Now you can get that weather data inline with your device data as part of the device context in IoT Platform.
Just set the location of your device with latitude and longitude co-ordinates and start seeing the weather data that matches where your device is located as part of your device context.

Set the ‘location’ property with values for longitude and latitude.¬† Normally this would be set from the device itself, but if you want to try it out you can set it using the API :

PUT https://<yourorg><yourdevicetype>/devices/<yourdeviceid>/location
with body

You’ll need to enable the Experimental features toggle in Settings to be able to see the weather data.

Now you can build applications that can combine live device information with the weather.  That means you can start to take actions as a result of the weather and begin to spot correlations.  Do you see more failures when the temperature drops?  Do you want to alert someone when your device is in a particular state and the weather is hot? Do you want your device to automatically shutdown in high winds?

Login and try it out!

4 comments on"IoT devices can now understand their device context"

  1. Mariano Garrido February 22, 2016

    Spectacular. Well done!!

  2. mfalhimohamed March 04, 2016

    thank you

  3. Sadia Ashraf March 08, 2016

    Hi. We tried this but are unable to see the weather data. Are there any missing steps in this article?

    • There shouldn’t be! The experimental toggle times out after a while, or if you switch browser as it’s held in the cookie – can you check that?

Join The Discussion

Your email address will not be published. Required fields are marked *