Open Weather Map API migration Topic is solved

Moderator: leecollings

User avatar
madpatrick
Posts: 645
Joined: Monday 26 December 2016 12:17
Target OS: Linux
Domoticz version: 2024.7
Location: Netherlands
Contact:

Re: Open Weather Map API migration

Post by madpatrick »

Hi
Still not working
I've a valid OMW3 subscription.
Tested it with https://api.openweathermap.org/data/3.0 ... id=[APIKEY]
still not working within Dashticz

--------- UPDATE ---------
I've it working now

added this in the bloks

Code: Select all

	apikey: 'key',
	provider: 'owm3',
and changed owm_city from city number to city name

Code: Select all

config['owm_city'] = 'cityname';
-= HP server GEN8 Xeon(R) E3-1220L_V2 -=- OZW -=- Toon2 (rooted) -=- Domoticz v2024.7 -=- Dashticz v3.12b on Tab8" =-
meal
Posts: 106
Joined: Monday 04 March 2019 14:59
Target OS: Raspberry Pi / ODroid
Domoticz version: 2024.7
Location: France
Contact:

Re: Open Weather Map API migration

Post by meal »

Hello,

Context of my application :
Version: 2024.7 (build 16453)
Build Hash: 9e3192374
Compile Date: 2025-01-11 15:44:31
dzVents Version: 3.1.8
Python Version: 3.9.2 (default, Dec 1 2024, 12:12:57) [GCC 10.2.1 20210110]

Installation of Dashticz beta version V3 on 26/01/2025

Issue:
The weather block using openweathermap api V3 is not operational.
The root cause is a use of http access instead of https to get the coordinates of the city
http://api.openweathermap.org/geo/1.0/d ... d=MYAPIKEY

Fix:
The issue is fixed by changing the http to https access in line 213 of the file:/home/pi/dashticz/js/components/weather.js
var url = 'https://api.openweathermap.org/geo/1.0/direct?q=' + // switch from http to https

BR
meal
Lokonli
Posts: 2271
Joined: Monday 29 August 2016 22:40
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Open Weather Map API migration

Post by Lokonli »

meal wrote: Sunday 26 January 2025 19:11 Hello,

Context of my application :
Version: 2024.7 (build 16453)
Build Hash: 9e3192374
Compile Date: 2025-01-11 15:44:31
dzVents Version: 3.1.8
Python Version: 3.9.2 (default, Dec 1 2024, 12:12:57) [GCC 10.2.1 20210110]

Installation of Dashticz beta version V3 on 26/01/2025

Issue:
The weather block using openweathermap api V3 is not operational.
The root cause is a use of http access instead of https to get the coordinates of the city
http://api.openweathermap.org/geo/1.0/d ... d=MYAPIKEY

Fix:
The issue is fixed by changing the http to https access in line 213 of the file:/home/pi/dashticz/js/components/weather.js
var url = 'https://api.openweathermap.org/geo/1.0/direct?q=' + // switch from http to https

BR
Thanks! Fixed in latest Dashticz beta.
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest