Page 1 of 1
Error: OpenWeather: Error getting http data!
Posted: Sunday 02 April 2023 8:10
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?
Re: Error: OpenWeather: Error getting http data!
Posted: Sunday 02 April 2023 14:16
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
Re: Error: OpenWeather: Error getting http data!
Posted: Sunday 02 April 2023 17:55
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.
Re: Error: OpenWeather: Error getting http data!
Posted: Sunday 02 April 2023 18:49
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!
Re: Error: OpenWeather: Error getting http data!
Posted: Monday 03 April 2023 16:49
by HM31
It's clearly not at this time.
Using an old api key works, using a newly created api key dosn't
Re: Error: OpenWeather: Error getting http data!
Posted: Monday 03 April 2023 17:03
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.
Re: Error: OpenWeather: Error getting http data!
Posted: Monday 03 April 2023 17:34
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...
Re: Error: OpenWeather: Error getting http data!
Posted: Monday 03 April 2023 17:38
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.
Re: Error: OpenWeather: Error getting http data!
Posted: Monday 03 April 2023 18:51
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.
Re: Error: OpenWeather: Error getting http data!
Posted: Sunday 14 May 2023 18:54
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)