get local temperature into thingspeak
4 views (last 30 days)
Show older comments
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
0 Comments
Answers (1)
Hans Scharler
on 5 Jun 2019
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)
Communities
More Answers in the ThingSpeak Community
See Also
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!