judge2005 / EleksTubeIPS

A replacement firmware for v1 of the EleksTubeIPS clock
MIT License
9 stars 4 forks source link

Version 2.5 of OpenWeatherMap API has been closed. #16

Open wsmmsh opened 2 weeks ago

wsmmsh commented 2 weeks ago

OpenWeatherMap API 2.5 has been closed in June 2024. Now I found EleksTubeIPS weather doesn't work. If the OpenWeatherMap module uses API 2.5 as if it does, it won't be working much longer. Could you get it upgraded? Thanks verymuch.

judge2005 commented 1 week ago

I don’t see anywhere it says that, in fact the web site still promotes 2.5 along with 3.0. Do you have a link?

wsmmsh commented 1 week ago

I don’t see anywhere it says that, in fact the web site still promotes 2.5 along with 3.0. Do you have a link?

Look here https://openweathermap.org/api/one-call-api I can't apply the version 2.5 of their API now.

judge2005 commented 1 week ago

I don't use the 2.5 onecall API. in their examples they have:

https://api.openweathermap.org/data/2.5/onecall?lat={lat}&lon={lon}&exclude={part}&appid={APIkey}

I checked a call that I use and it still works (note the word onecall is not in the URL). i.e

https://api.openweathermap.org/data/2.5/weather?lat=43&lon=-72&appid={appid}&units=imperial

Their migration page explicitly says:

"Please note that no other products are affected by this change, including other APIs that have ‘/2.5/’ section in their URL."

judge2005 commented 1 week ago

This is the forecast API I use:

https://openweathermap.org/api/hourly-forecast

This is the current API I use:

https://openweathermap.org/current

wsmmsh commented 1 week ago

Sorry, I didn't read the website carefully. I have fixed the problem now. Thanks very much.