Comment récupéréer l'IDX en bash ?

Forum dédié aux problématiques concernant les scripts pour DomoticZ.
Entourez votre code et les logs avec les balises nommées code grâce au bouton <\>.
Warp
Messages : 60
Inscription : 29 mars 2015, 12:35
Localisation : IDF

Comment récupéréer l'IDX en bash ?

Message par Warp »

Comment récupéréer l'IDX par le nom d'un device en bash ?
Raspberry 2B:USB Z-Stick (GEN5):Edimax EW-7811UN:Huawei E220 3G
4xQubino ZMNHCD1
Everspring SE812 & ST812
Mcohome MH-S411, MH-S412 & MH7H
2xAEON LABS ZW-100
2xFibaro FGSD-002:Fibaro FGFS-101:Fibaro FGS-221 & KLF-050
deennoo
Messages : 4036
Inscription : 25 janv. 2015, 02:00

Re: Comment récupéréer l'IDX en bash ?

Message par deennoo »

Bonjour, s'il vous plait merci
De quoi se faire Plaisir et essayer d'aider...
http://www.domo-attitude.fr
rimram31
Messages : 659
Inscription : 04 oct. 2015, 11:22
Localisation : Toulouse

Re: Comment récupéréer l'IDX en bash ?

Message par rimram31 »

deennoo a écrit :Bonjour, s'il vous plait merci
:D

Tu fais un appel curl a l'API pour avoir tous les devices (https://www.domoticz.com/wiki/Domoticz_ ... rtain_type) puis une extraction via jq ça devrait le faire
Raspberry Pi 2 + carte RF pi "maison" + Domoticz
Sonde Oregon + Aliexpress - Prises Chacon (3500W) - 1wire DS18B20
Répondre