Bastelschlumpf / M5PaperWeather

M5Paper project with weather information from openweathermap
120 stars 36 forks source link

Changes with new openweathermap accounts #9

Open drewsed opened 1 year ago

drewsed commented 1 year ago

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?

jdbaluch commented 10 months ago

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";