ebaauw / homebridge-ws

Homebridege plugin for virtual weather station
Apache License 2.0
108 stars 4 forks source link

"http status 401 Unauthorized" ? #37

Closed m0kum closed 3 years ago

m0kum commented 3 years ago

Hi,

I'm getting the follow errors in my log... The API Key as been requested 24h ago, so it should be active by now. Any idea how to solve this?

Thanks!

[8/2/2021, 6:31:34 AM] [Weather] openweathermap request 1: GET weather?q=Amsterdam
[8/2/2021, 6:31:34 AM] [Weather] warning: openweathermap request 1: http status 401 Unauthorized
[8/2/2021, 6:31:34 AM] [Weather] warning: Amsterdam: ignore unknown location
[8/2/2021, 6:31:34 AM] [Weather] openweathermap request 2: GET weather?id=2759794
[8/2/2021, 6:31:34 AM] [Weather] warning: openweathermap request 2: http status 401 Unauthorized
[8/2/2021, 6:31:34 AM] [Weather] warning: 2759794: ignore unknown city id
m0kum commented 3 years ago

It seems the auto generated email contained an invalid key... copying it from the website directly solved it.