Problem with openweather

i have put my indyvidual api to virtual switch but still i have got this kind of error:

OpenWeatherMap - getWeather() execption Unauthorized

could You please tell me why? :slight_smile:


I would double check the API key. Do they require any kind of account verification? It would appear your connection is "unauthorized" so it looks like it is directly related to the api key.

If I will paste API code to broworser I can see all weather data for my city , so it's very strange.

1 Like

Same problem here. Started 11/24/2019 sometime in evening.

apixu also not working ... :confused:

my OpenWeather device worked fine 5 seconds ago when I clicked Refresh.

dev:147 2019-11-25 07:24:16.044 am debug OW: event: [name:weather, value:clear sky]
dev:147 2019-11-25 07:24:16.041 am debug OW: event: [name:weatherIcons, value:01d]
dev:147 2019-11-25 07:24:16.026 am debug OW: event: [name:cloudiness, value:1, unit:%]
dev:147 2019-11-25 07:24:16.025 am debug OW: event: [name:country, value:US]
dev:147 2019-11-25 07:24:16.024 am debug OW: event: [name:city, value:Los Angeles]
dev:147 2019-11-25 07:24:16.009 am debug OW: event: [name:windDirection, value:137, unit:degrees]
dev:147 2019-11-25 07:24:16.008 am debug OW: event: [name:humidity, value:54, unit:%]
dev:147 2019-11-25 07:24:16.006 am debug openweathermapResponse: [coord:[lon:-118.25, lat:33.97], weather:[[id:800, main:Clear, description:clear sky, icon:01d]], base:stations, main:[temp:48.33, pressure:1014, humidity:54, temp_min:41, temp_max:55.4], visibility:16093, wind:[speed:4.34, deg:137], clouds:[all:1], dt:1574695459, sys:[type:1, id:3694, country:US, sunrise:1574692495, sunset:1574729125], timezone:-28800, id:0, name:Los Angeles, cod:200]
dev:147 2019-11-25 07:24:15.990 am debug OW: event: [name:pressure, value:1014, unit:hPa]
dev:147 2019-11-25 07:24:15.965 am debug OW: event: [name:windSpeed, value:4.34, unit:MPH]
dev:147 2019-11-25 07:24:15.953 am debug OW: event: [name:temperature, value:48, unit:Β°F]
dev:147 2019-11-25 07:24:15.476 am info  refresh...
dev:147 2019-11-25 07:24:05.713 am warn  description logging is: false
dev:147 2019-11-25 07:24:05.705 am warn  debug logging is: true
dev:147 2019-11-25 07:24:05.704 am info  updated...

So what I'm doing wrong ?:confused:

what link do you use ?
like********* ????

Mine is now working. Wasn't working an hour ago...

What link do you have ? Can you paste it here , of course without api.
Do you have free plan ?

with apixu i have got error:

http call failed for ApiXU weather api: Forbidden

for openweather:

OpenWeatherMap - getWeather() execption Unauthorized

could somebody help me ???

If you've only just created an account you need to wait a while. When I originally signed up it took about an hour before I could make API calls.

im waiting about 24 h now :slight_smile:

maybe someone will provide me api that for sure work ? and i will check it on my hub ??

Just to be sure, you created an Open Weather Map account, obtained an API Key, and then simply added a Virtual Device using the OpenWeatherMap driver, and pasted in your API Key as shown below?

1 Like

we are talking about api from ?

its working ! :DDDDDDDD


Glad that helped. It sounded like you were maybe using a URL instead of just the API Key. That’s why I thought a picture might help explain it better than words ever could! :wink:

1 Like

Yes I was pasting all URL because else settings like location or geography coordnes are marked as optional :grin: never done combo like just API and coordinates :grin: