0
Beantwoord
Get json with http request and parse
Nikolay Rusanov 7 jaar geleden
in iRidium Script
•
bijgewerkt door Aleksandr Romanov (CTO) 7 jaar geleden •
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.
Thank you!
Customer support service by UserEcho
(tvoyu'j mat')
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
open-WEATHER driver.irpz