Echec pour avoir les données 'Open Weather Map'
Publié : 09 sept. 2022, 21:23
Hello,
Version : 2022.1 build 14477
Platform Windows 10
J’ai commencé récemment avec Domoticz.
J’essaie de configurer une entrée matériel pour ‘Open Weather Map’ (OWM).
J’ai ouvert un compte et j’ai obtenu une clé API.
Pour la configuration, voir fichier ci-joint
Echec au démarrage , voici le log :
2022-09-06 10:01:42.394 Status: Meteo_Local: Using Domoticz home location (Lon 4.988987, Lat 50.7001)!
2022-09-06 10:01:42.523 Status: Meteo_Local: Using specified location (Lon 4.988987, Lat 50.7001) Unable to find nearest City!
2022-09-06 10:01:42.524 Status: Meteo_Local: Started
2022-09-06 10:01:42.523 Error: Meteo_Local: Error getting http data!
J’ai construit l’appel manuellement comme documenté chez OWM, et j’utilise chrome.
https://api.openweathermap.org/data/2.5 ... ic&lang=en
Cela fonctionne très bien et j’obtiens le fichier JSON.
Bien que n’étant pas expert C++, j’ai regardé dans le module ‘OpenWeatherMap.cpp’.
Il me semble que l’appel OWM est construit correctement.
Ensuite il y a appel à ‘HTTPClient::GET’ qui retourne ‘false’
Pour ce code mon expérience C++ est trop légère.
Une idée pour l’appel échoue ?
Merci
Version : 2022.1 build 14477
Platform Windows 10
J’ai commencé récemment avec Domoticz.
J’essaie de configurer une entrée matériel pour ‘Open Weather Map’ (OWM).
J’ai ouvert un compte et j’ai obtenu une clé API.
Pour la configuration, voir fichier ci-joint
Echec au démarrage , voici le log :
2022-09-06 10:01:42.394 Status: Meteo_Local: Using Domoticz home location (Lon 4.988987, Lat 50.7001)!
2022-09-06 10:01:42.523 Status: Meteo_Local: Using specified location (Lon 4.988987, Lat 50.7001) Unable to find nearest City!
2022-09-06 10:01:42.524 Status: Meteo_Local: Started
2022-09-06 10:01:42.523 Error: Meteo_Local: Error getting http data!
J’ai construit l’appel manuellement comme documenté chez OWM, et j’utilise chrome.
https://api.openweathermap.org/data/2.5 ... ic&lang=en
Cela fonctionne très bien et j’obtiens le fichier JSON.
Bien que n’étant pas expert C++, j’ai regardé dans le module ‘OpenWeatherMap.cpp’.
Il me semble que l’appel OWM est construit correctement.
Ensuite il y a appel à ‘HTTPClient::GET’ qui retourne ‘false’
Pour ce code mon expérience C++ est trop légère.
Une idée pour l’appel échoue ?
Merci