Hi
The 401 error that OWM Weather reports comes from openweathermap.com. Either the API key is not yet active or is misspelled in the options. I assume it’s not activated though.
You could try without the key (which uses a built-in key from a dummy account) for a day or two and then try your newly generated key again.
Come to find out that OpenWeatherMap now requires new users to sign up for the OneCall API after creating the API key. Unfortunately, this requires a credit card but they still provide 1,000 free API calls. Users who created their API key before this change are still able to use the OneCall API without this additional signup.
Here’s how to get the 1,000 free calls without overrunning:
– Go to https://home.openweathermap.org/subscriptions/billing_info/onecall_30/base?key=base&service=onecall_30
– Follow the instructions to complete the subscription.
– Go to https://home.openweathermap.org/subscriptions and set the “Calls per day (no more than)” to 1,000. This ensures you will never overrun the free calls.
Hope this helps.
Hi
That did the trick. Thanks.
Thanks for your confirmation. I am going to update the installation documentation next.