jclarke0000 / MMM-OpenWeatherForecast

Magic Mirror weather module using OpenWeather API
44 stars 26 forks source link

Request failed with status code 401 #20

Open EM1138 opened 1 year ago

EM1138 commented 1 year ago

I am getting this error in the log. I am running MM 2.21.0 in Windows 10 in sever mode. My OpenWeather API key is working in the default weather app. [MMM-OpenWeatherForecast] 19-Nov-22 19:15 ERROR Error: Request failed with status code 401. Please let me know if I can provide more info to troubleshoot.

networkmaster commented 1 year ago

I hit the same issue yesterday. Make sure you use the API key that they emailed you and allow up to about 4 hours for it to fully flow into their systems. Reboot the device for good measure (Some weird caching? idk it worked after a reboot for me despite killing the npm instance multiple times). After the email key starts working, found the additional API keys created started to work

EM1138 commented 1 year ago

@networkmaster What type of account do you have on OpenWeather.

networkmaster commented 1 year ago

"One Call by Call" subscription plan with a limit of 1000 calls per day so that i don't get charged.

EM1138 commented 1 year ago

Cool. I had the free account initially and then signed up for the One Call by Call and did the same as you. I either missed that in the instructions or something has changed recently where free data has now become subscription data.

steff-lorenz commented 1 year ago

I do get the error 401 as well. I am using the free account and it worked fine for other modules. Honestly, I don't want to sign up for the One Call by Call ... so is there any request or whatever I have to disable to make it work on the free plan?