Probleme accès http://domoticz_ip:domoticz_port/json.htm?type=devices&filter=all&used=true&order=Name

Forum pour tous les autres protocoles : Enocean, X10, les cartes piface.razberry ...
Pour les questions concernant le choix de protocoles, merci d'utiliser le forum Les autres objets.
drabo
Messages : 47
Inscription : 17 oct. 2015, 14:15
Localisation : Fiji
Contact :

Probleme accès http://domoticz_ip:domoticz_port/json.htm?type=devices&filter=all&used=true&order=Name

Message par drabo »

Bonjour
Suite à la dernière mise à jour beta (16401) je n'ai plus accès à l'urel
curl http://domoticz_ip:domoticz_port/json.htm?type=devices&filter=all&used=true&order=Name
que j'utilise pour mydomoathome et emperihome.
Je suis redescendu en version 16381 pour l'avoir à nouveau

Quelq'un sait me dire si c'est une erreur ou si cela risque de revenir ?

Merci
boum
Messages : 233
Inscription : 18 janv. 2019, 11:34
Localisation : France

Re: Probleme accès http://domoticz_ip:domoticz_port/json.htm?type=devices&filter=all&used=true&order=Name

Message par boum »

bah ça fait plus d’un an et deux versions stables que la commande génère un avertissement dans les logs quand même
https://wiki.domoticz.com/Domoticz_API/ ... and_newer)

==> http://domoticz_ip:domoticz_port/json.htm?type=command&param=getdevices&filter=all&used=true&order=Name
Domoticz v2022.2 sur linux-mint / Z-Wave-JS / RFXCom / Zigbee2MQTT
drabo
Messages : 47
Inscription : 17 oct. 2015, 14:15
Localisation : Fiji
Contact :

Re: Probleme accès http://domoticz_ip:domoticz_port/json.htm?type=devices&filter=all&used=true&order=Name

Message par drabo »

Mince en effet je l'avais vu epuis longtemps mais je n'y pensais plus...

le problème c'est que c'est mdah (mydomoathome) qui force ça ...

comment faire ?
boum
Messages : 233
Inscription : 18 janv. 2019, 11:34
Localisation : France

Re: Probleme accès http://domoticz_ip:domoticz_port/json.htm?type=devices&filter=all&used=true&order=Name

Message par boum »

Il faut contacter l’auteur. Les corrections sont présentes depuis un an mais la version 0.3.7 n’a pas l’air d’être disponible par les méthodes d’installation sur le site.
Domoticz v2022.2 sur linux-mint / Z-Wave-JS / RFXCom / Zigbee2MQTT
drabo
Messages : 47
Inscription : 17 oct. 2015, 14:15
Localisation : Fiji
Contact :

Re: Probleme accès http://domoticz_ip:domoticz_port/json.htm?type=devices&filter=all&used=true&order=Name

Message par drabo »

Merci pour ton aide... De quel site tu parles ?
boum
Messages : 233
Inscription : 18 janv. 2019, 11:34
Localisation : France

Re: Probleme accès http://domoticz_ip:domoticz_port/json.htm?type=devices&filter=all&used=true&order=Name

Message par boum »

https://github.com/empierre/MyDomoAtHome

Il y a un tag où la requête semble corrigée, mais pas de release :
https://github.com/empierre/MyDomoAtHom ... tag/v0.3.7
Domoticz v2022.2 sur linux-mint / Z-Wave-JS / RFXCom / Zigbee2MQTT
drabo
Messages : 47
Inscription : 17 oct. 2015, 14:15
Localisation : Fiji
Contact :

Re: Probleme accès http://domoticz_ip:domoticz_port/json.htm?type=devices&filter=all&used=true&order=Name

Message par drabo »

Bonjour
Pour information, j'ai modifié le fichier mdah.js qui se trouve dans le répertoire /usr/share/mydomoathome/app pour mettre à niveau tous les appels API.
Cela fonctionne... cela s'est débloqué. J'espère que cela va être bon partout
Répondre