SecUSo/privacy-friendly-weather

API key not accepted

Opened this issue · 6 comments

I registered for a free API key with OpenWeather and entered it into the app. When I try to refresh the forecast a message briefly appears, "The API key was not accepted." It has been nearly a day since I registered, so the key should be active by now. Possibly this is related to #201?

my latest version of RadarWeather supports OneCall API 3.0

https://f-droid.org/de/packages/org.woheller69.weather/

But besides the free subscription you also need to subscribe to OneCallAPI 3.0
If you set the limit to 1000 calls per day it is free but will still require credit card data...

What about using Open-Meteo in place of OpenWeather? It's completely free for open source applications, no API key required.

Maybe open-meteo could offer a compatible API?
open-meteo/open-meteo#116

Same here, I have waited a whole week already.

GET request works fine with:

https://api.openweathermap.org/data/2.5/weather?id=524901&appid=my_api_key_here

.../weather... API is not sufficient.
You need:

https://api.openweathermap.org/data/3.0/onecall?lat={lat}&lon={lon}&exclude={part}&appid=[{API key}](https://home.openweathermap.org/api_keys)

And you need RadarWeather, PrivacyFriendlyWeather from which I derived my app a few years ago only supports OneCall API 1.0 which is no longer available for new users

I built a similar app using open-meteo instead of OpenWeatherMap.
No API key needed. Maybe someone wants to try...

https://github.com/woheller69/omweather