get local temperature into thingspeak
显示 更早的评论
need to know how to retrieve local outdoor temperature in Celsius from say "openweathermap.org" or similar so that Thingspeak/MATLABThingspeak/MATLAB can use it to analyze ideal humidity?
Thank you
回答(1 个)
Hans Scharler
2019-6-5
Try weather.gov and passing in decimal degrees location for your city.
natickWeather = webread('http://forecast.weather.gov/MapClick.php?lat=42.2834300&lon=-71.3495000&FcstType=json');
humidity = str2double(natickWeather.currentobservation.Relh)
3 个评论
frank odonnell
2019-6-5
Hans Scharler
2019-6-6
True. This a United States government feed. I do not know of any one that covers the world. What locations do you need covered?
frank odonnell
2019-6-6
社区
更多回答在 ThingSpeak Community
类别
在 帮助中心 和 File Exchange 中查找有关 ThingSpeak 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!