Newbee questions on getting Open Weather Map working

I have Hubitat Elevation® Platform Version 2.3.0.124 Hardware Version Rev C-7
When pasting the API key from Open Weather website do you need to paste the API custom assigned name, in my case, "Hubitat: xxxxx" or just the numeric key "xxxxx"?
First way gives a log error "OpenWeatherMap - getWeather() execption groovyx.net.http.HttpResponseException: status code: 401, reason phrase: Unauthorized"
Second way, without the API name, gives a log error "OpenWeatherMap - getWeather() execption groovyx.net.http.HttpResponseException: status code: 400, reason phrase: Bad Request"
Needless to say, I have been waiting for days for any weather response from Open Weather.
I should also ask does Open Weather work with HE?
Any help is appreciated!

OpenWeather works fine for me but I haven't touched the device in a year at least... it worked and keeps on working, no reason to touch it. Data is polled every 30 min and displayed on a Dashboard, that I almost never look at. :slight_smile:

1 Like

Works well for me I use this driver. The built driver should use same key.

Should just be the API key you get after registering . From here

1 Like

The stock Hubitat HE device/driver code did not work for me.
I installed the "user" driver * Copyright : Ⓒ 2021 Matthew (scottma61) and never looked back.
Just pasting "only" the numerical API key (not the API name: xxxx") will do the job!
Where do I send my wheelbarrow full of bitcoins to for this invaluable Hubitat technical help? :grinning:
BTW ... Thanks terminal3 !!!!

1 Like

I'm sorry it didn't work for you, although I cannot understand why. I don't use OpenWeatherMap with Hubitat, but have an API key, so I just created a new device with the built-in device driver that refreshed at 5 minute intervals. Seems to have worked fine.

1 Like

I was able to replicate the problem you have experienced by generating a new key that I also named: "Hubitat". If I use the new key I get the same errors, if I use the default key it works as expected. So if you'd like to use the built-in driver, I recommend using the default API key, as it looks like they have an issue with newly created keys.

1 Like

FYIO ... My "Default" API key went to my "Homeseer hub" and it works.
Tried generating new keys from this default key does not work for Hubitat HE?
Tried using the default API key with Hubitat stock HE does not work for me.
Open Weather customer service provided me a new key which ONLY works with the new user driver by **Copyright : Ⓒ 2021 Matthew (scottma61). and NOT HE stock device/driver.
That is why I switched to the user driver and never looked back. :grinning:

I am running into this issue as well.

OpenWeatherMap - getWeather() execption groovyx.net.http.HttpResponseException: status code: 401, reason phrase: Unauthorized

However, I just created my Openweather account and verified it. I am on a free plan. I wonder if the API needs a few minutes to go live or start responding?