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

Antworten (1)

Hans Scharler
Hans Scharler am 5 Jun. 2019

0 Stimmen

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 Kommentare

frank odonnell
frank odonnell am 5 Jun. 2019
Thank you Hans,
Would the code extract be placed in a MATLAB file?
Seems the link only works for USA locations, not including Canada.
Hans Scharler
Hans Scharler am 6 Jun. 2019
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
frank odonnell am 6 Jun. 2019
Canadian cities, for example Calgary, Alberta. If there is a service that allows access to the weather data using Thingspeak or MATLAB?
As you mught guess, I am new at this Thingspeak/Matlab application. I can get my data to display on my channels, and I would like to do some calcs based on changing barometric pressure, outdoor temperature, e.g. for weather changes and for ideal humidity, and to Email/Txt alerts.

Melden Sie sich an, um zu kommentieren.

Communitys

Weitere Antworten in  ThingSpeak Community

Kategorien

Mehr zu ThingSpeak finden Sie in Hilfe-Center und File Exchange

Produkte

Gefragt:

am 3 Jun. 2019

Kommentiert:

am 6 Jun. 2019

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by