Get json with http request and parse
Nikolay Rusanov 6 years ago in iRidium Script • updated by Aleksandr Romanov (CTO) 6 years ago • 5
I need to parse weather data which i get in json format as response to this url: http://api.openweathermap.org/data/2.5/weather?q=Moscow,Russia&units=metric&appid=072808c7b054b6b21a549dbbb3c936c0
(you can try)
Could anyone please point me to an example of how to get that in iridium script and then set 'temp':23.1 to a chanel value.
Customer support service by UserEcho
Thank you very much, tomorrow I'll try this one. Not as simple as I thought it would be!
I need it to be checked periodically
Should I use something like IR.SetInterval(20000,in_callback(resp));?
Done! it works