Openweathermap not working on stable 2022.2 domoticz with free plan

Moderator: leecollings

Post Reply
kispalsz
Posts: 31
Joined: Friday 13 October 2017 19:56
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Openweathermap not working on stable 2022.2 domoticz with free plan

Post by kispalsz »

Hi!

I want to use the owm free service. But it's not working. I generated the api key, tried it from a cli with wget and browser, it works.

wget:

Code: Select all

wget  "https://api.openweathermap.org/data/2.5/weather?q=Szentes&appid=08fe2YYYYYYYYY&units=metric"                                           
--2023-01-17 09:36:35--  https://api.openweathermap.org/data/2.5/weather?q=Szentes&appid=08fe2YYYYYYYYYYYY&units=metric                                                       
api.openweathermap.org (api.openweathermap.org) feloldása… 37.139.1.159, 82.196.7.246, 188.166.16.132, ...                                                                                   
Csatlakozás a következőhöz: api.openweathermap.org (api.openweathermap.org)[37.139.1.159]:443… kapcsolódva.                                                                                  
HTTP kérés elküldve, várakozás válaszra… 200 OK                                                                                                                                              
Hossz: 510 [application/json]                                                                                                                                                                
Mentés ide: „weather?q=Szentes&appid=08fe2YYYYYYYYYYYYYYYY&units=metric”

weather?q=Szentes&appid=08fe24d218b4b51f0f75bd5 100%[====================================================================================================>]     510  --.-KB/s    idő 0s     

2023-01-17 09:36:35 (57,6 MB/s) -- „weather?q=Szentes&appid=08fe2YYYYYYYYYYYYYYYYY&units=metric” mentve [510/510]
result:

Code: Select all

cat weather\?q\=Szentes\&appid\=08fe2YYYYYYYYYYYYYYY\&units\=metric 
{"coord":{"lon":20.2667,"lat":46.65},"weather":[{"id":803,"main":"Clouds","description":"broken clouds","icon":"04d"}],"base":"stations","main":{"temp":5.65,"feels_like":1.51,"temp_min":5.19,"temp_max":5.65,"pressure":996,"humidity":70,"sea_level":996,"grnd_level":986},"visibility":10000,"wind":{"speed":6.55,"deg":212,"gust":11.17},"clouds":{"all":60},"dt":1673944358,"sys":{"type":2,"id":268793,"country":"HU","sunrise":1673936281,"sunset":1673968758},"timezone":3600,"id":715338,"name":"Szentes","cod":200}

But in Domoticz 2022.2 version, if I configure the plugin, it gives an http error.
owm_config.jpg
owm_config.jpg (75.1 KiB) Viewed 566 times

Code: Select all

2023-01-17 09:44:44.643 Status: OWM: Using specified location (Station ID 715338)!
2023-01-17 09:44:44.877 Status: OWM: City (715338)-> Lat/Long = 46.65,20.2667
2023-01-17 09:44:44.877 Status: OWM: Updating preferences for forecastscreen to use OpenWeatherMap!
2023-01-17 09:44:44.878 Status: OWM: Started
2023-01-17 09:44:48.123 Error: OWM: Error getting http data!
City 715338 is a town Szentes,HU

I would like to stay with the free plan, I do not want to use a paid service. I don't want to enter bank card details.
What do I have to do to make the plugin work with the free plan as well?

Thanks
User avatar
waltervl
Posts: 5905
Joined: Monday 28 January 2019 18:48
Target OS: Linux
Domoticz version: 2024.7
Location: NL
Contact:

Re: Openweathermap not working on stable 2022.2 domoticz with free plan

Post by waltervl »

Perhaps you already found it but perhaps this github issue contains the solution (not an OWM user myself): https://github.com/domoticz/domoticz/issues/5336
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest