Error: OpenWeather: Error getting http data!

Moderator: leecollings

Post Reply
clafa
Posts: 9
Joined: Tuesday 16 July 2013 8:45
Target OS: -
Domoticz version:
Contact:

Error: OpenWeather: Error getting http data!

Post by clafa »

I keep getting Error: OpenWeather: Error getting http data! in the logs and I can't find any openWeather devices.

If I try

Code: Select all

https://api.openweathermap.org/data/2.5/weather?q=lund,se&APPID=APIKEY 
it returns data with proper location.

Anyone seen this?
User avatar
elythomaslumber
Posts: 56
Joined: Friday 12 July 2013 13:29
Target OS: Raspberry Pi / ODroid
Domoticz version: 2023.1
Location: Solingen; Germany
Contact:

Re: Error: OpenWeather: Error getting http data!

Post by elythomaslumber »

This service has ended 1st of April.
Goto SETUP/HARDWARE and setup a new type:
Meteorologisk institutt Norway (Weather Lookup)
insert your geographic coordinates like 51.12345,6.5463
Enable it
Add it

I did also a SETUP/SETTINGS -> allow new hardware devices for 5min (don't know if it is neccessary).
After some minutes I found 5 new devices unused -> set them to use and you will find them in the GUI
User avatar
kiddigital
Posts: 438
Joined: Thursday 10 August 2017 6:52
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Location: Netherlands
Contact:

Re: Error: OpenWeather: Error getting http data!

Post by kiddigital »

elythomaslumber wrote:This service has ended 1st of April.
Can you point us to the source of that information?

Works here without problems.

Known issue though is that new API users get an API for OneCall 3.0 while the module uses 2.5 for existing users.
One RPi with Domoticz, RFX433e, aeon labs z-wave plus stick GEN5, ha-bridge 5.4.0 for Alexa, Philips Hue Bridge, Pimoroni Automation Hat
One RPi with Pi foundation standard touch screen to display Dashticz
lost
Posts: 660
Joined: Thursday 10 November 2016 9:30
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Error: OpenWeather: Error getting http data!

Post by lost »

kiddigital wrote: Sunday 02 April 2023 17:55 Known issue though is that new API users get an API for OneCall 3.0 while the module uses 2.5 for existing users.
Looks 3.0 vs2.5 is not so different. Some info added, but a 3.0 instead of a 2.5 in the url would probably be compatible!
HM31
Posts: 56
Joined: Friday 04 August 2017 16:13
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Error: OpenWeather: Error getting http data!

Post by HM31 »

It's clearly not at this time.
Using an old api key works, using a newly created api key dosn't
mgugu
Posts: 218
Joined: Friday 04 November 2016 12:33
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Location: France
Contact:

Re: Error: OpenWeather: Error getting http data!

Post by mgugu »

That's right. But, as proposed above, using "Meteorologisk institutt Norway" plugin seems to be a good alternative to OWM. In addition, anonymous access is allowed then no key is necessary.
lost
Posts: 660
Joined: Thursday 10 November 2016 9:30
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Error: OpenWeather: Error getting http data!

Post by lost »

mgugu wrote: Monday 03 April 2023 17:03 "Meteorologisk institutt Norway" plugin seems to be a good alternative to OWM.
Does it work for coordinates outside Norway? I think I tried this one but did not get any devices showing up...
lost
Posts: 660
Joined: Thursday 10 November 2016 9:30
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Error: OpenWeather: Error getting http data!

Post by lost »

HM31 wrote: Monday 03 April 2023 16:49 It's clearly not at this time.
True. But if the URL for OWP was configurable looks 2.5 data match 3.0 that looks to be a superset.
Problem for immediate support of 3.0 in 2.5 compatible mode is url is hardcoded in domoticz IMO.
mgugu
Posts: 218
Joined: Friday 04 November 2016 12:33
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Location: France
Contact:

Re: Error: OpenWeather: Error getting http data!

Post by mgugu »

lost wrote: Monday 03 April 2023 17:34
mgugu wrote: Monday 03 April 2023 17:03 "Meteorologisk institutt Norway" plugin seems to be a good alternative to OWM.
Does it work for coordinates outside Norway? I think I tried this one but did not get any devices showing up...
By default, devices are not enabled. You have to do it in devices list tab.
User avatar
habahabahaba
Posts: 233
Joined: Saturday 18 March 2023 14:44
Target OS: Windows
Domoticz version: 2024.4
Contact:

Re: Error: OpenWeather: Error getting http data!

Post by habahabahaba »

try this
https://api.openweathermap.org/data/2.5 ... &lat=<YOUR LATITUDE>&lon=<YOU LONGITUDE>&appid=<YOUR API KEY>


In script it looks like:

domoticz.openURL({
url = 'url above',
method = 'GET',
callback = 'OpenWeathertrigger', -- see httpResponses above.
}).afterSec(5)
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest