ultrabug / py3status

py3status is an extensible i3status wrapper written in python
https://ultrabug.github.io/py3status/
BSD 3-Clause "New" or "Revised" License
883 stars 259 forks source link

weather_owm module: switch to 3.0 API endpoint as 2.5 is deprecated #2249

Closed ultrabug closed 1 month ago

ultrabug commented 1 month ago

closes #2246

ultrabug commented 1 month ago

@mlmatlock hi, I'd appreciate a last check please

mlmatlock commented 1 month ago

@mlmatlock hi, I'd appreciate a last check please

@ultrabug works fine with the old (2.5) API key. Trying with a 3.0 (generated 10 May 2024) key gives an "Error 401".

If I try calling the 2.5 API (from a browser) with the 3.0 key,

https://api.openweathermap.org/data/2.5/onecall?lat=33.44&lon=-94.04&appid=,<3.0 key redacted>

the resulting error message is:

{"cod":401, "message": "Invalid API key. Please see https://openweathermap.org/faq#error401 for more info."}

ultrabug commented 1 month ago

Ok thanks @mlmatlock there's nothing more this PR can do about that.

I added a comment on the module, will merge when CI is green!

ultrabug commented 1 month ago

released in 3.58!