Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 1 commit into from
May 22, 2024

Conversation

ultrabug
Copy link
Owner

closes #2246

py3status/modules/weather_owm.py Show resolved Hide resolved
py3status/modules/weather_owm.py Outdated Show resolved Hide resolved
@ultrabug ultrabug force-pushed the issue_2246 branch 2 times, most recently from b3dc8a8 to d108c5a Compare May 21, 2024 13:16
@ultrabug ultrabug changed the title weather_omw module: switch to 3.0 API endpoint as 2.5 is deprecated weather_owm module: switch to 3.0 API endpoint as 2.5 is deprecated May 21, 2024
@ultrabug
Copy link
Owner Author

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

@mlmatlock
Copy link
Contributor

@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
Copy link
Owner Author

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 ultrabug merged commit 97d536b into master May 22, 2024
12 checks passed
@ultrabug
Copy link
Owner Author

ultrabug commented Jun 1, 2024

released in 3.58!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[weather_owm] API 2.5 is dying in June, 2024
3 participants