Open Brown-onion opened 9 months ago
It's the OpenWeatherMap...
files in the src
folder at https://github.com/ThingPulse/esp8266-weather-station/tree/master/src.
I thought it may have been in there but looked in OpenWeatherMapOneCall.h and OpenWeatherMapOneCall.cpp but couldn't find a http link to change. The serial print in the sketch reads '[HTTP] Requesting resource at http://api.openweathermap.org:80/data/2.5/onecall?appid........ Then my API key and other parameters in the program.
I'll keep looking anyway.
UPDATE: Line 42 of OpenWeatherMapCurrent.cpp the 2.5 needs to be changed to 3.0. But I don't believe that 2.5 works anymore so this library could use a version update to maintain it as current.
Feel free to close this as complete when updated.
CHEERS!
The API request for 2.5 seems to not be supported by OpenWeatherOneCall anymore. I believe 3.0 is but haven't figured out how to change the URL in the library to test it. the library calls http://api.openweathermap.org:80/data/2.5/onecall And I believe it needs to call http://api.openweathermap.org:80/data/3.0/onecall This should be an easy fix, but I can't find the library file that contains it.
Cheers