M5PaperWeather icon indicating copy to clipboard operation
M5PaperWeather copied to clipboard

Changes with new openweathermap accounts

Open drewsed opened this issue 2 years ago • 1 comments

Vers nice work, thanks for that. unfortunately my display is full of errors and weather is not properly displayed.

I found that

uri += "/data/2.5/onecall";

onecall is not free anymore with new accounts. We need two requests now and only get the current weather and a 5d forecast with 3h timestamps.

uri += "/data/2.5/weather";
uri += "/data/2.5/forecast";

Do you consider an update on this?

drewsed avatar Dec 04 '22 13:12 drewsed

I was able to get this working by creating a OneCall 3.0 subscription. As long as you keep the requests under 1000 per day you won't incur any billing charges. I modified the uri in the data.h file to:

uri += "/data/3.0/onecall";

jdbaluch avatar Dec 28 '23 00:12 jdbaluch