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]
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.
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!
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