Plugin SMS
Re: Plugin SMS
merci pour la piste, mais l'exemple ne dit pas où est stockée l'info de la partie configuration.
je vais tout de même fouiller dans la table (sans prendre de risque)
je vais tout de même fouiller dans la table (sans prendre de risque)
Re: Plugin SMS
Ben non, puisqu'il s'agissait de la version du firmware de la station météo Netatmo.
Je regarde ce soir, aussi, si je trouve ton info dans une des tables de la base de données Jeedom.
Je regarde ce soir, aussi, si je trouve ton info dans une des tables de la base de données Jeedom.
Re: Plugin SMS
oui oui, je sais (pour Netatmo).
j'ai cherché pas mal dans la BDD, y compris en cherchant en texte directement dans un dump de cette dernière (sur les termes 'signal', 'Orange') sans succès.
j'ai cherché pas mal dans la BDD, y compris en cherchant en texte directement dans un dump de cette dernière (sur les termes 'signal', 'Orange') sans succès.
Re: Plugin SMS
Si tu historises la commande signal, tu auras sa valeur dans la table history.
Il faudra extraire de la table la dernière valeur connue.
EDIT :
[strike]Le plus simple serait de faire une modification du plugin, surtout que la commande existe déjà. Il suffit, juste, qu'elle soit mise à disposition pour les scénarios. Mais là, je ne suis pas compétent pour t'apporter de l'aide.[/strike]
J'ai mal regardé, la commande signal est bien disponible dans les scénarios. La recherche dans la base de données n'est pas nécessaire.
Il faudra extraire de la table la dernière valeur connue.
EDIT :
[strike]Le plus simple serait de faire une modification du plugin, surtout que la commande existe déjà. Il suffit, juste, qu'elle soit mise à disposition pour les scénarios. Mais là, je ne suis pas compétent pour t'apporter de l'aide.[/strike]
J'ai mal regardé, la commande signal est bien disponible dans les scénarios. La recherche dans la base de données n'est pas nécessaire.
Dernière édition par Jeandhom le 24 oct. 2017, 18:13, édité 2 fois.
Re: Plugin SMS
Merci !
en fait, c'est tout bête, mais j'avais zappé le fait que l'info existait dans la partie 'équipement'. Je m'étais concentré sur la partie configuration du plugin (là où on redémarre le daemon, on règle le port, etc).
d'ailleurs, j'étais tout aussi intéressé par la récupération du nom du réseau (ex, aujourd'hui 'Orange F', alors que je suis chez 'Free')
à suivre
en fait, c'est tout bête, mais j'avais zappé le fait que l'info existait dans la partie 'équipement'. Je m'étais concentré sur la partie configuration du plugin (là où on redémarre le daemon, on règle le port, etc).
d'ailleurs, j'étais tout aussi intéressé par la récupération du nom du réseau (ex, aujourd'hui 'Orange F', alors que je suis chez 'Free')
à suivre
Re: Plugin SMS
Oui il faut récupérer l'info Signal des équipements que tu as rentré dans le plugin SMS.
Re: Plugin SMS
Requête SQL pour obtenir la valeur "Réseaux".
Code : Tout sélectionner
select value as MonChamp from `config` where (`plugin` like "sms" and `key` like "network_name")
Re: Plugin SMS
Bonjour à tous,
J'essaye depuis des jours de faire marcher ma clé 3G sur mon jeedom
J'ai une clé HSDPA 7.2MBPS 3G Wireless que j'ai vu comme compatible avec le plugin sur la doc.
Quand je la branche apparait trois nouvelles lignes de port dans la conf de mon plugin
Qualcomm__Incorporated Qualcomm_CDMA_Technologies_MSM
Qualcomm__Incorporated Qualcomm_CDMA_Technologies_MSM 2
Qualcomm__Incorporated Qualcomm_CDMA_Technologies_MSM 3
Ne sachant pas laquelle utilisé j'ai testé les trois .. aucun port ne marche ..
Ci dessous les logs. A priori le numéro de clé est bien reconnu.
Ma conf: Jeedom a jour stable sur Rpi3 debian Strech.
La clé est branché sur un hub alimenté
J'ai mis une carte free avec Pin testé a coté "1234"
Si quelqu'un pouvait m'aider ca serait chouette
J'essaye depuis des jours de faire marcher ma clé 3G sur mon jeedom
J'ai une clé HSDPA 7.2MBPS 3G Wireless que j'ai vu comme compatible avec le plugin sur la doc.
Quand je la branche apparait trois nouvelles lignes de port dans la conf de mon plugin
Qualcomm__Incorporated Qualcomm_CDMA_Technologies_MSM
Qualcomm__Incorporated Qualcomm_CDMA_Technologies_MSM 2
Qualcomm__Incorporated Qualcomm_CDMA_Technologies_MSM 3
Ne sachant pas laquelle utilisé j'ai testé les trois .. aucun port ne marche ..
Ci dessous les logs. A priori le numéro de clé est bien reconnu.
Ma conf: Jeedom a jour stable sur Rpi3 debian Strech.
La clé est branché sur un hub alimenté
J'ai mis une carte free avec Pin testé a coté "1234"
Si quelqu'un pouvait m'aider ca serait chouette
Code : Tout sélectionner
[2017-11-02 13:01:21][INFO] : Log level : debug
[2017-11-02 13:01:21][INFO] : Socket port : 55002
[2017-11-02 13:01:21][INFO] : Socket host : 127.0.0.1
[2017-11-02 13:01:21][INFO] : PID file : /tmp/jeedom/sms/deamon.pid
[2017-11-02 13:01:21][INFO] : Device : /dev/ttyUSB1
[2017-11-02 13:01:21][INFO] : Apikey : XXXX
[2017-11-02 13:01:21][INFO] : Callback : http://127.0.0.1:80/plugins/sms/core/php/jeeSMS.php
[2017-11-02 13:01:21][INFO] : Cycle : 30.0
[2017-11-02 13:01:21][INFO] : Serial rate : 115200
[2017-11-02 13:01:21][INFO] : Pin : 1234
[2017-11-02 13:01:21][INFO] : Text mode : yes
[2017-11-02 13:01:21][INFO] : SMSC : +33695000695
[2017-11-02 13:01:21][DEBUG] : Writing PID 10979 to /tmp/jeedom/sms/deamon.pid
[2017-11-02 13:01:21][DEBUG] : Init request module v2.12.4
[2017-11-02 13:01:21][DEBUG] : Starting new HTTP connection (1): 127.0.0.1
[2017-11-02 13:01:21][DEBUG] : http://127.0.0.1:80 "GET /plugins/sms/core/php/jeeSMS.php?apikey=XXXX HTTP/1.1" 200 0
[2017-11-02 13:01:21][DEBUG] : Socket interface started
[2017-11-02 13:01:21][DEBUG] : LoopNetServer Thread started
[2017-11-02 13:01:21][DEBUG] : Start listening...
[2017-11-02 13:01:21][DEBUG] : Listening on: [127.0.0.1:55002]
[2017-11-02 13:01:21][DEBUG] : Connecting to GSM Modem...
[2017-11-02 13:01:21][DEBUG] : Text mode true
[2017-11-02 13:01:21][DEBUG] : Enter pin code : 1234
[2017-11-02 13:01:21][INFO] : Connecting to modem on port /dev/ttyUSB1 at 115200bps
[2017-11-02 13:01:21][DEBUG] : write: ATZ
[2017-11-02 13:01:21][DEBUG] : response: ['OK']
[2017-11-02 13:01:21][DEBUG] : write: ATE0
[2017-11-02 13:01:21][DEBUG] : response: ['ATE0
', 'OK']
[2017-11-02 13:01:21][DEBUG] : write: AT+CFUN?
[2017-11-02 13:01:21][DEBUG] : response: ['+CFUN: 1', 'OK']
[2017-11-02 13:01:21][DEBUG] : write: AT+CMEE=1
[2017-11-02 13:01:21][DEBUG] : response: ['OK']
[2017-11-02 13:01:21][DEBUG] : write: AT+CPIN?
[2017-11-02 13:01:21][DEBUG] : response: ['+CPIN: READY', 'OK']
[2017-11-02 13:01:21][DEBUG] : write: AT+CLAC
[2017-11-02 13:01:21][DEBUG] : response: ['ERROR']
[2017-11-02 13:01:21][DEBUG] : write: AT+WIND?
[2017-11-02 13:01:21][DEBUG] : response: ['ERROR']
[2017-11-02 13:01:21][DEBUG] : write: AT+CGMI
[2017-11-02 13:01:21][DEBUG] : response: ['QUALCOMM INCORPORATED', 'OK']
[2017-11-02 13:01:21][DEBUG] : write: AT+ZPAS?
[2017-11-02 13:01:21][DEBUG] : response: ['+BEARTYPE: "UMTS","PS_ONLY"', 'OK']
[2017-11-02 13:01:21][INFO] : Loading ZTE call state update table
[2017-11-02 13:01:21][DEBUG] : write: AT+COPS=3,0
[2017-11-02 13:01:21][DEBUG] : response: ['OK']
[2017-11-02 13:01:21][DEBUG] : write: AT+CMGF=1
[2017-11-02 13:01:21][DEBUG] : response: ['OK']
[2017-11-02 13:01:21][DEBUG] : write: AT+CSCA?
[2017-11-02 13:01:21][DEBUG] : response: ['+CSCA: "+33695000695",145', 'OK']
[2017-11-02 13:01:21][DEBUG] : write: AT+CSMP=49,167,0,0
[2017-11-02 13:01:21][DEBUG] : response: ['OK']
[2017-11-02 13:01:21][DEBUG] : write: AT+CSCA?
[2017-11-02 13:01:22][DEBUG] : response: ['+CSCA: "+",145', 'OK']
[2017-11-02 13:01:22][DEBUG] : write: AT+CSCA="+33695000695"
[2017-11-02 13:01:22][DEBUG] : response: ['OK']
[2017-11-02 13:01:22][DEBUG] : write: AT+CPMS=?
[2017-11-02 13:01:22][DEBUG] : response: ['+CPMS: ("ME","MT","SM","SR"),("ME","MT","SM","SR"),("ME","MT","SM","SR")', 'OK']
[2017-11-02 13:01:22][DEBUG] : write: AT+CPMS="ME","ME","ME"
[2017-11-02 13:01:22][DEBUG] : response: ['+CPMS: 0,100,0,100,0,100', 'OK']
[2017-11-02 13:01:22][DEBUG] : write: AT+CNMI=2,1,0,2
[2017-11-02 13:01:22][DEBUG] : response: ['OK']
[2017-11-02 13:01:22][DEBUG] : write: AT+CLIP=1
[2017-11-02 13:01:22][DEBUG] : response: ['OK']
[2017-11-02 13:01:22][DEBUG] : write: AT+CRC=1
[2017-11-02 13:01:22][DEBUG] : response: ['OK']
[2017-11-02 13:01:22][DEBUG] : write: AT+CVHU=0
[2017-11-02 13:01:22][DEBUG] : response: ['OK']
[2017-11-02 13:01:22][DEBUG] : Configure smsc : +33695000695
[2017-11-02 13:01:22][DEBUG] : write: AT+CSCA="+33695000695"
[2017-11-02 13:01:22][DEBUG] : response: ['OK']
[2017-11-02 13:01:22][DEBUG] : Waiting for network...
[2017-11-02 13:01:22][DEBUG] : write: AT+CREG?
[2017-11-02 13:01:22][DEBUG] : response: ['+CREG: 0,3', 'OK']
[2017-11-02 13:01:22][ERROR] : Exception: Network registration denied
[2017-11-02 13:01:22][ERROR] : Exit 1 because this exeption is fatal
[2017-11-02 13:01:22][DEBUG] : Shutdown
[2017-11-02 13:01:22][DEBUG] : Send to jeedom : {'message': 'Network registration denied', 'number': 'none'}
[2017-11-02 13:01:22][DEBUG] : Removing PID file /tmp/jeedom/sms/deamon.pid
[2017-11-02 13:01:22][DEBUG] : Starting new HTTP connection (1): 127.0.0.1
[2017-11-02 13:01:22][DEBUG] : http://127.0.0.1:80 "POST /plugins/sms/core/php/jeeSMS.php?apikey=XXXX HTTP/1.1" 200 0
[2017-11-02 13:01:22][DEBUG] : LoopNetServer Thread stopped
[2017-11-02 13:01:22][DEBUG] : Exit 0
[2017-11-02 14:01:56][INFO] : Lancement démon sms : /usr/bin/python /var/www/html/plugins/sms/resources/smsd/smsd.py --device /dev/ttyUSB2 --loglevel debug --socketport 55002 --serialrate 115200 --pin 1234 --textmode yes --smsc +33695000695 --cycle 30 --callback http://127.0.0.1:80/plugins/sms/core/php/jeeSMS.php --apikey XXXX --pid /tmp/jeedom/sms/deamon.pid
[2017-11-02 13:01:58][INFO] : Start smsd
[2017-11-02 13:01:58][INFO] : Log level : debug
[2017-11-02 13:01:58][INFO] : Socket port : 55002
[2017-11-02 13:01:58][INFO] : Socket host : 127.0.0.1
[2017-11-02 13:01:58][INFO] : PID file : /tmp/jeedom/sms/deamon.pid
[2017-11-02 13:01:58][INFO] : Device : /dev/ttyUSB2
[2017-11-02 13:01:58][INFO] : Apikey : XXXX
[2017-11-02 13:01:58][INFO] : Callback : http://127.0.0.1:80/plugins/sms/core/php/jeeSMS.php
[2017-11-02 13:01:58][INFO] : Cycle : 30.0
[2017-11-02 13:01:58][INFO] : Serial rate : 115200
[2017-11-02 13:01:58][INFO] : Pin : 1234
[2017-11-02 13:01:58][INFO] : Text mode : yes
[2017-11-02 13:01:58][INFO] : SMSC : +33695000695
[2017-11-02 13:01:58][DEBUG] : Writing PID 12110 to /tmp/jeedom/sms/deamon.pid
[2017-11-02 13:01:58][DEBUG] : Init request module v2.12.4
[2017-11-02 13:01:58][DEBUG] : Starting new HTTP connection (1): 127.0.0.1
[2017-11-02 13:01:58][DEBUG] : http://127.0.0.1:80 "GET /plugins/sms/core/php/jeeSMS.php?apikey=XXXX HTTP/1.1" 200 0
[2017-11-02 13:01:58][DEBUG] : Socket interface started
[2017-11-02 13:01:58][DEBUG] : LoopNetServer Thread started
[2017-11-02 13:01:58][DEBUG] : Start listening...
[2017-11-02 13:01:58][DEBUG] : Listening on: [127.0.0.1:55002]
[2017-11-02 13:01:58][DEBUG] : Connecting to GSM Modem...
[2017-11-02 13:01:58][DEBUG] : Text mode true
[2017-11-02 13:01:58][DEBUG] : Enter pin code : 1234
[2017-11-02 13:01:58][INFO] : Connecting to modem on port /dev/ttyUSB2 at 115200bps
[2017-11-02 13:01:58][DEBUG] : write: ATZ
[2017-11-02 13:02:03][ERROR] : Exception: None
[2017-11-02 13:02:03][ERROR] : Exit 1 because this exeption is fatal
[2017-11-02 13:02:03][DEBUG] : Shutdown
[2017-11-02 13:02:03][DEBUG] : Removing PID file /tmp/jeedom/sms/deamon.pid
[2017-11-02 13:02:03][DEBUG] : Send to jeedom : {'message': 'None', 'number': 'none'}
[2017-11-02 13:02:03][DEBUG] : Starting new HTTP connection (1): 127.0.0.1
[2017-11-02 13:02:03][DEBUG] : http://127.0.0.1:80 "POST /plugins/sms/core/php/jeeSMS.php?apikey=XXXX HTTP/1.1" 200 0
[2017-11-02 13:02:03][DEBUG] : LoopNetServer Thread stopped
[2017-11-02 13:02:03][DEBUG] : Exit 0
[2017-11-02 14:02:10][INFO] : Lancement démon sms : /usr/bin/python /var/www/html/plugins/sms/resources/smsd/smsd.py --device /dev/ttyUSB3 --loglevel debug --socketport 55002 --serialrate 115200 --pin 1234 --textmode yes --smsc +33695000695 --cycle 30 --callback http://127.0.0.1:80/plugins/sms/core/php/jeeSMS.php --apikey XXXX --pid /tmp/jeedom/sms/deamon.pid
[2017-11-02 13:02:12][INFO] : Start smsd
[2017-11-02 13:02:12][INFO] : Log level : debug
[2017-11-02 13:02:12][INFO] : Socket port : 55002
[2017-11-02 13:02:12][INFO] : Socket host : 127.0.0.1
[2017-11-02 13:02:12][INFO] : PID file : /tmp/jeedom/sms/deamon.pid
[2017-11-02 13:02:12][INFO] : Device : /dev/ttyUSB3
[2017-11-02 13:02:12][INFO] : Apikey : XXXX
[2017-11-02 13:02:12][INFO] : Callback : http://127.0.0.1:80/plugins/sms/core/php/jeeSMS.php
[2017-11-02 13:02:12][INFO] : Cycle : 30.0
[2017-11-02 13:02:12][INFO] : Serial rate : 115200
[2017-11-02 13:02:12][INFO] : Pin : 1234
[2017-11-02 13:02:12][INFO] : Text mode : yes
[2017-11-02 13:02:12][INFO] : SMSC : +33695000695
[2017-11-02 13:02:12][DEBUG] : Writing PID 12682 to /tmp/jeedom/sms/deamon.pid
[2017-11-02 13:02:12][DEBUG] : Init request module v2.12.4
[2017-11-02 13:02:12][DEBUG] : Starting new HTTP connection (1): 127.0.0.1
[2017-11-02 13:02:12][DEBUG] : http://127.0.0.1:80 "GET /plugins/sms/core/php/jeeSMS.php?apikey=XXXX HTTP/1.1" 200 0
[2017-11-02 13:02:12][DEBUG] : Socket interface started
[2017-11-02 13:02:12][DEBUG] : LoopNetServer Thread started
[2017-11-02 13:02:12][DEBUG] : Start listening...
[2017-11-02 13:02:12][DEBUG] : Listening on: [127.0.0.1:55002]
[2017-11-02 13:02:12][DEBUG] : Connecting to GSM Modem...
[2017-11-02 13:02:12][DEBUG] : Text mode true
[2017-11-02 13:02:12][DEBUG] : Enter pin code : 1234
[2017-11-02 13:02:12][INFO] : Connecting to modem on port /dev/ttyUSB3 at 115200bps
[2017-11-02 13:02:12][DEBUG] : write: ATZ
[2017-11-02 13:02:12][DEBUG] : response: ['OK']
[2017-11-02 13:02:12][DEBUG] : write: ATE0
[2017-11-02 13:02:12][DEBUG] : response: ['ATE0
', 'OK']
[2017-11-02 13:02:12][DEBUG] : write: AT+CFUN?
[2017-11-02 13:02:12][DEBUG] : response: ['+CFUN: 1', 'OK']
[2017-11-02 13:02:12][DEBUG] : write: AT+CMEE=1
[2017-11-02 13:02:12][DEBUG] : response: ['OK']
[2017-11-02 13:02:13][DEBUG] : write: AT+CPIN?
[2017-11-02 13:02:13][DEBUG] : response: ['+CPIN: READY', 'OK']
[2017-11-02 13:02:13][DEBUG] : write: AT+CLAC
[2017-11-02 13:02:13][DEBUG] : response: ['ERROR']
[2017-11-02 13:02:13][DEBUG] : write: AT+WIND?
[2017-11-02 13:02:13][DEBUG] : response: ['ERROR']
[2017-11-02 13:02:13][DEBUG] : write: AT+CGMI
[2017-11-02 13:02:13][DEBUG] : response: ['QUALCOMM INCORPORATED', 'OK']
[2017-11-02 13:02:13][DEBUG] : write: AT+ZPAS?
[2017-11-02 13:02:13][DEBUG] : response: ['+BEARTYPE: "UMTS","PS_ONLY"', 'OK']
[2017-11-02 13:02:13][INFO] : Loading ZTE call state update table
[2017-11-02 13:02:13][DEBUG] : write: AT+COPS=3,0
[2017-11-02 13:02:13][DEBUG] : response: ['OK']
[2017-11-02 13:02:13][DEBUG] : write: AT+CMGF=1
[2017-11-02 13:02:13][DEBUG] : response: ['OK']
[2017-11-02 13:02:13][DEBUG] : write: AT+CSCA?
[2017-11-02 13:02:13][DEBUG] : response: ['+CSCA: "+33695000695",145', 'OK']
[2017-11-02 13:02:13][DEBUG] : write: AT+CSMP=49,167,0,0
[2017-11-02 13:02:13][DEBUG] : response: ['OK']
[2017-11-02 13:02:13][DEBUG] : write: AT+CSCA?
[2017-11-02 13:02:13][DEBUG] : response: ['+CSCA: "+",145', 'OK']
[2017-11-02 13:02:13][DEBUG] : write: AT+CSCA="+33695000695"
[2017-11-02 13:02:13][DEBUG] : response: ['OK']
[2017-11-02 13:02:13][DEBUG] : write: AT+CPMS=?
[2017-11-02 13:02:13][DEBUG] : response: ['+CPMS: ("ME","MT","SM","SR"),("ME","MT","SM","SR"),("ME","MT","SM","SR")', 'OK']
[2017-11-02 13:02:13][DEBUG] : write: AT+CPMS="ME","ME","ME"
[2017-11-02 13:02:13][DEBUG] : response: ['+CPMS: 0,100,0,100,0,100', 'OK']
[2017-11-02 13:02:13][DEBUG] : write: AT+CNMI=2,1,0,2
[2017-11-02 13:02:13][DEBUG] : response: ['OK']
[2017-11-02 13:02:13][DEBUG] : write: AT+CLIP=1
[2017-11-02 13:02:13][DEBUG] : response: ['OK']
[2017-11-02 13:02:13][DEBUG] : write: AT+CRC=1
[2017-11-02 13:02:13][DEBUG] : response: ['OK']
[2017-11-02 13:02:13][DEBUG] : write: AT+CVHU=0
[2017-11-02 13:02:13][DEBUG] : response: ['OK']
[2017-11-02 13:02:13][DEBUG] : Configure smsc : +33695000695
[2017-11-02 13:02:13][DEBUG] : write: AT+CSCA="+33695000695"
[2017-11-02 13:02:13][DEBUG] : response: ['OK']
[2017-11-02 13:02:13][DEBUG] : Waiting for network...
[2017-11-02 13:02:13][DEBUG] : write: AT+CREG?
[2017-11-02 13:02:13][DEBUG] : response: ['+CREG: 0,3', 'OK']
[2017-11-02 13:02:13][ERROR] : Exception: Network registration denied
[2017-11-02 13:02:13][ERROR] : Exit 1 because this exeption is fatal
[2017-11-02 13:02:13][DEBUG] : Send to jeedom : {'message': 'Network registration denied', 'number': 'none'}
[2017-11-02 13:02:13][DEBUG] : Shutdown
[2017-11-02 13:02:13][DEBUG] : Removing PID file /tmp/jeedom/sms/deamon.pid
[2017-11-02 13:02:13][DEBUG] : Starting new HTTP connection (1): 127.0.0.1
[2017-11-02 13:02:13][DEBUG] : http://127.0.0.1:80 "POST /plugins/sms/core/php/jeeSMS.php?apikey=XXXX HTTP/1.1" 200 0
[2017-11-02 13:02:13][DEBUG] : LoopNetServer Thread stopped
[2017-11-02 13:02:13][DEBUG] : Exit 0
[2017-11-02 14:02:25][INFO] : Lancement démon sms : /usr/bin/python /var/www/html/plugins/sms/resources/smsd/smsd.py --device /dev/ttyUSB3 --loglevel debug --socketport 55002 --serialrate 115200 --pin 1234 --textmode yes --smsc +33695000695 --cycle 30 --callback http://127.0.0.1:80/plugins/sms/core/php/jeeSMS.php --apikey XXXX --pid /tmp/jeedom/sms/deamon.pid
[2017-11-02 13:02:27][INFO] : Start smsd
[2017-11-02 13:02:27][INFO] : Log level : debug
[2017-11-02 13:02:27][INFO] : Socket port : 55002
[2017-11-02 13:02:27][INFO] : Socket host : 127.0.0.1
[2017-11-02 13:02:27][INFO] : PID file : /tmp/jeedom/sms/deamon.pid
[2017-11-02 13:02:27][INFO] : Device : /dev/ttyUSB3
[2017-11-02 13:02:27][INFO] : Apikey : XXXXXXXXXXXXXXX
[2017-11-02 13:02:27][INFO] : Callback : http://127.0.0.1:80/plugins/sms/core/php/jeeSMS.php
[2017-11-02 13:02:27][INFO] : Cycle : 30.0
[2017-11-02 13:02:27][INFO] : Serial rate : 115200
[2017-11-02 13:02:27][INFO] : Pin : 1234
[2017-11-02 13:02:27][INFO] : Text mode : yes
[2017-11-02 13:02:27][INFO] : SMSC : +33695000695
[2017-11-02 13:02:27][DEBUG] : Writing PID 13204 to /tmp/jeedom/sms/deamon.pid
[2017-11-02 13:02:27][DEBUG] : Init request module v2.12.4
[2017-11-02 13:02:27][DEBUG] : Starting new HTTP connection (1): 127.0.0.1
[2017-11-02 13:02:27][DEBUG] : http://127.0.0.1:80 "GET /plugins/sms/core/php/jeeSMS.php?apikey=XXXXXXXXXXX HTTP/1.1" 200 0
[2017-11-02 13:02:27][DEBUG] : Socket interface started
[2017-11-02 13:02:27][DEBUG] : LoopNetServer Thread started
[2017-11-02 13:02:27][DEBUG] : Start listening...
[2017-11-02 13:02:27][DEBUG] : Listening on: [127.0.0.1:55002]
[2017-11-02 13:02:27][DEBUG] : Connecting to GSM Modem...
[2017-11-02 13:02:27][DEBUG] : Text mode true
[2017-11-02 13:02:27][DEBUG] : Enter pin code : 1234
[2017-11-02 13:02:27][INFO] : Connecting to modem on port /dev/ttyUSB3 at 115200bps
[2017-11-02 13:02:27][DEBUG] : write: ATZ
[2017-11-02 13:02:27][DEBUG] : response: ['OK']
[2017-11-02 13:02:27][DEBUG] : write: ATE0
[2017-11-02 13:02:27][DEBUG] : response: ['ATE0
', 'OK']
[2017-11-02 13:02:27][DEBUG] : write: AT+CFUN?
[2017-11-02 13:02:27][DEBUG] : response: ['+CFUN: 1', 'OK']
[2017-11-02 13:02:27][DEBUG] : write: AT+CMEE=1
[2017-11-02 13:02:27][DEBUG] : response: ['OK']
[2017-11-02 13:02:27][DEBUG] : write: AT+CPIN?
[2017-11-02 13:02:27][DEBUG] : response: ['+CPIN: READY', 'OK']
[2017-11-02 13:02:27][DEBUG] : write: AT+CLAC
[2017-11-02 13:02:27][DEBUG] : response: ['ERROR']
[2017-11-02 13:02:27][DEBUG] : write: AT+WIND?
[2017-11-02 13:02:27][DEBUG] : response: ['ERROR']
[2017-11-02 13:02:27][DEBUG] : write: AT+CGMI
[2017-11-02 13:02:27][DEBUG] : response: ['QUALCOMM INCORPORATED', 'OK']
[2017-11-02 13:02:27][DEBUG] : write: AT+ZPAS?
[2017-11-02 13:02:27][DEBUG] : response: ['+BEARTYPE: "UMTS","PS_ONLY"', 'OK']
[2017-11-02 13:02:27][INFO] : Loading ZTE call state update table
[2017-11-02 13:02:27][DEBUG] : write: AT+COPS=3,0
[2017-11-02 13:02:27][DEBUG] : response: ['OK']
[2017-11-02 13:02:27][DEBUG] : write: AT+CMGF=1
[2017-11-02 13:02:27][DEBUG] : response: ['OK']
[2017-11-02 13:02:27][DEBUG] : write: AT+CSCA?
[2017-11-02 13:02:27][DEBUG] : response: ['+CSCA: "+33695000695",145', 'OK']
[2017-11-02 13:02:27][DEBUG] : write: AT+CSMP=49,167,0,0
[2017-11-02 13:02:27][DEBUG] : response: ['OK']
[2017-11-02 13:02:27][DEBUG] : write: AT+CSCA?
[2017-11-02 13:02:27][DEBUG] : response: ['+CSCA: "+",145', 'OK']
[2017-11-02 13:02:27][DEBUG] : write: AT+CSCA="+33695000695"
[2017-11-02 13:02:27][DEBUG] : response: ['OK']
[2017-11-02 13:02:27][DEBUG] : write: AT+CPMS=?
[2017-11-02 13:02:27][DEBUG] : response: ['+CPMS: ("ME","MT","SM","SR"),("ME","MT","SM","SR"),("ME","MT","SM","SR")', 'OK']
[2017-11-02 13:02:27][DEBUG] : write: AT+CPMS="ME","ME","ME"
[2017-11-02 13:02:27][DEBUG] : response: ['+CPMS: 0,100,0,100,0,100', 'OK']
[2017-11-02 13:02:27][DEBUG] : write: AT+CNMI=2,1,0,2
[2017-11-02 13:02:27][DEBUG] : response: ['OK']
[2017-11-02 13:02:27][DEBUG] : write: AT+CLIP=1
[2017-11-02 13:02:27][DEBUG] : response: ['OK']
[2017-11-02 13:02:27][DEBUG] : write: AT+CRC=1
[2017-11-02 13:02:27][DEBUG] : response: ['OK']
[2017-11-02 13:02:27][DEBUG] : write: AT+CVHU=0
[2017-11-02 13:02:27][DEBUG] : response: ['OK']
[2017-11-02 13:02:27][DEBUG] : Configure smsc : +33695000695
[2017-11-02 13:02:27][DEBUG] : write: AT+CSCA="+33695000695"
[2017-11-02 13:02:27][DEBUG] : response: ['OK']
[2017-11-02 13:02:27][DEBUG] : Waiting for network...
[2017-11-02 13:02:27][DEBUG] : write: AT+CREG?
[2017-11-02 13:02:27][DEBUG] : response: ['+CREG: 0,3', 'OK']
[2017-11-02 13:02:27][ERROR] : Exception: Network registration denied
[2017-11-02 13:02:27][ERROR] : Exit 1 because this exeption is fatal
[2017-11-02 13:02:27][DEBUG] : Send to jeedom : {'message': 'Network registration denied', 'number': 'none'}
[2017-11-02 13:02:27][DEBUG] : Shutdown
[2017-11-02 13:02:27][DEBUG] : Removing PID file /tmp/jeedom/sms/deamon.pid
[2017-11-02 13:02:27][DEBUG] : Starting new HTTP connection (1): 127.0.0.1
[2017-11-02 13:02:27][DEBUG] : http://127.0.0.1:80 "POST /plugins/sms/core/php/jeeSMS.php?apikey=XXXXXXXXXXXXXX HTTP/1.1" 200 0
[2017-11-02 13:02:27][DEBUG] : LoopNetServer Thread stopped
[2017-11-02 13:02:27][DEBUG] : Exit 0
[2017-11-02 14:02:30][INFO] : Lancement démon sms : /usr/bin/python /var/www/html/plugins/sms/resources/smsd/smsd.py --device /dev/ttyUSB3 --loglevel debug --socketport 55002 --serialrate 115200 --pin 1234 --textmode yes --smsc +33695000695 --cycle 30 --callback http://127.0.0.1:80/plugins/sms/core/php/jeeSMS.php --apikey XXXX --pid /tmp/jeedom/sms/deamon.pid
[2017-11-02 13:02:32][INFO] : Start smsd
[2017-11-02 13:02:32][INFO] : Log level : debug
[2017-11-02 13:02:32][INFO] : Socket port : 55002
[2017-11-02 13:02:32][INFO] : Socket host : 127.0.0.1
[2017-11-02 13:02:32][INFO] : PID file : /tmp/jeedom/sms/deamon.pid
[2017-11-02 13:02:32][INFO] : Device : /dev/ttyUSB3
[2017-11-02 13:02:32][INFO] : Apikey : XXXXXXXXXXXXX
[2017-11-02 13:02:32][INFO] : Callback : http://127.0.0.1:80/plugins/sms/core/php/jeeSMS.php
[2017-11-02 13:02:32][INFO] : Cycle : 30.0
[2017-11-02 13:02:32][INFO] : Serial rate : 115200
[2017-11-02 13:02:32][INFO] : Pin : 1234
[2017-11-02 13:02:32][INFO] : Text mode : yes
[2017-11-02 13:02:32][INFO] : SMSC : +33695000695
[2017-11-02 13:02:32][DEBUG] : Writing PID 13476 to /tmp/jeedom/sms/deamon.pid
[2017-11-02 13:02:32][DEBUG] : Init request module v2.12.4
[2017-11-02 13:02:33][DEBUG] : Starting new HTTP connection (1): 127.0.0.1
[2017-11-02 13:02:33][DEBUG] : http://127.0.0.1:80 "GET /plugins/sms/core/php/jeeSMS.php?apikey=XXXXXXXXXXXXXXXX HTTP/1.1" 200 0
[2017-11-02 13:02:33][DEBUG] : Socket interface started
[2017-11-02 13:02:33][DEBUG] : LoopNetServer Thread started
[2017-11-02 13:02:33][DEBUG] : Start listening...
[2017-11-02 13:02:33][DEBUG] : Listening on: [127.0.0.1:55002]
[2017-11-02 13:02:33][DEBUG] : Connecting to GSM Modem...
[2017-11-02 13:02:33][DEBUG] : Text mode true
[2017-11-02 13:02:33][DEBUG] : Enter pin code : 1234
[2017-11-02 13:02:33][INFO] : Connecting to modem on port /dev/ttyUSB3 at 115200bps
[2017-11-02 13:02:33][DEBUG] : write: ATZ
[2017-11-02 13:02:33][DEBUG] : response: ['OK']
[2017-11-02 13:02:33][DEBUG] : write: ATE0
[2017-11-02 13:02:33][DEBUG] : response: ['ATE0
', 'OK']
[2017-11-02 13:02:33][DEBUG] : write: AT+CFUN?
[2017-11-02 13:02:33][DEBUG] : response: ['+CFUN: 1', 'OK']
[2017-11-02 13:02:33][DEBUG] : write: AT+CMEE=1
[2017-11-02 13:02:33][DEBUG] : response: ['OK']
[2017-11-02 13:02:33][DEBUG] : write: AT+CPIN?
[2017-11-02 13:02:33][DEBUG] : response: ['+CPIN: READY', 'OK']
[2017-11-02 13:02:33][DEBUG] : write: AT+CLAC
[2017-11-02 13:02:33][DEBUG] : response: ['ERROR']
[2017-11-02 13:02:33][DEBUG] : write: AT+WIND?
[2017-11-02 13:02:33][DEBUG] : response: ['ERROR']
[2017-11-02 13:02:33][DEBUG] : write: AT+CGMI
[2017-11-02 13:02:33][DEBUG] : response: ['QUALCOMM INCORPORATED', 'OK']
[2017-11-02 13:02:33][DEBUG] : write: AT+ZPAS?
[2017-11-02 13:02:33][DEBUG] : response: ['+BEARTYPE: "UMTS","PS_ONLY"', 'OK']
[2017-11-02 13:02:33][INFO] : Loading ZTE call state update table
[2017-11-02 13:02:33][DEBUG] : write: AT+COPS=3,0
[2017-11-02 13:02:33][DEBUG] : response: ['OK']
[2017-11-02 13:02:33][DEBUG] : write: AT+CMGF=1
[2017-11-02 13:02:33][DEBUG] : response: ['OK']
[2017-11-02 13:02:33][DEBUG] : write: AT+CSCA?
[2017-11-02 13:02:33][DEBUG] : response: ['+CSCA: "+33695000695",145', 'OK']
[2017-11-02 13:02:33][DEBUG] : write: AT+CSMP=49,167,0,0
[2017-11-02 13:02:33][DEBUG] : response: ['OK']
[2017-11-02 13:02:33][DEBUG] : write: AT+CSCA?
[2017-11-02 13:02:33][DEBUG] : response: ['+CSCA: "+",145', 'OK']
[2017-11-02 13:02:33][DEBUG] : write: AT+CSCA="+33695000695"
[2017-11-02 13:02:33][DEBUG] : response: ['OK']
[2017-11-02 13:02:33][DEBUG] : write: AT+CPMS=?
[2017-11-02 13:02:33][DEBUG] : response: ['+CPMS: ("ME","MT","SM","SR"),("ME","MT","SM","SR"),("ME","MT","SM","SR")', 'OK']
[2017-11-02 13:02:33][DEBUG] : write: AT+CPMS="ME","ME","ME"
[2017-11-02 13:02:33][DEBUG] : response: ['+CPMS: 0,100,0,100,0,100', 'OK']
[2017-11-02 13:02:33][DEBUG] : write: AT+CNMI=2,1,0,2
[2017-11-02 13:02:33][DEBUG] : response: ['OK']
[2017-11-02 13:02:33][DEBUG] : write: AT+CLIP=1
[2017-11-02 13:02:33][DEBUG] : response: ['OK']
[2017-11-02 13:02:33][DEBUG] : write: AT+CRC=1
[2017-11-02 13:02:33][DEBUG] : response: ['OK']
[2017-11-02 13:02:33][DEBUG] : write: AT+CVHU=0
[2017-11-02 13:02:33][DEBUG] : response: ['OK']
[2017-11-02 13:02:33][DEBUG] : Configure smsc : +33695000695
[2017-11-02 13:02:33][DEBUG] : write: AT+CSCA="+33695000695"
[2017-11-02 13:02:33][DEBUG] : response: ['OK']
[2017-11-02 13:02:33][DEBUG] : Waiting for network...
[2017-11-02 13:02:33][DEBUG] : write: AT+CREG?
[2017-11-02 13:02:33][DEBUG] : response: ['+CREG: 0,3', 'OK']
[2017-11-02 13:02:33][ERROR] : Exception: Network registration denied
[2017-11-02 13:02:33][ERROR] : Exit 1 because this exeption is fatal
[2017-11-02 13:02:33][DEBUG] : Send to jeedom : {'message': 'Network registration denied', 'number': 'none'}
[2017-11-02 13:02:33][DEBUG] : Shutdown
[2017-11-02 13:02:33][DEBUG] : Removing PID file /tmp/jeedom/sms/deamon.pid
[2017-11-02 13:02:33][DEBUG] : Starting new HTTP connection (1): 127.0.0.1
[2017-11-02 13:02:33][DEBUG] : http://127.0.0.1:80 "POST /plugins/sms/core/php/jeeSMS.php?apikey=XXXXXXXXXXXXXXXXXXXXXXXXXXX HTTP/1.1" 200 0
[2017-11-02 13:02:33][DEBUG] : LoopNetServer Thread stopped
[2017-11-02 13:02:33][DEBUG] : Exit 0
Si ca marche .. c'est que ca peut faire plus !!
Merci à toute la communauté pour le boulot !
Merci à toute la communauté pour le boulot !
Re: Plugin SMS
Hello, tu as la réponse dans les logs 'Exception: Network registration denied'
est ce que ta clé fonctionne sur ton ordi (je veux dire hors jeedom). arrives-tu à l'utiliser, à envoyer & recevoir des SMS ?
moi, la même clé fonctionne, mais avec le plugin GAMMU
est ce que ta clé fonctionne sur ton ordi (je veux dire hors jeedom). arrives-tu à l'utiliser, à envoyer & recevoir des SMS ?
moi, la même clé fonctionne, mais avec le plugin GAMMU
Re: Plugin SMS
La clé fonctionne sur un téléphone portable.
Si ca marche .. c'est que ca peut faire plus !!
Merci à toute la communauté pour le boulot !
Merci à toute la communauté pour le boulot !
Re: Plugin SMS
La clé sur un téléphone portable ?
Re: Plugin SMS
ah non pardon ^^
la carte
Gammu met aucune erreur mais rien reçu ..
Si ca marche .. c'est que ca peut faire plus !!
Merci à toute la communauté pour le boulot !
Merci à toute la communauté pour le boulot !
Re: Plugin SMS
Ma question est : est ce que la clé (+ la carte) branchée sur ton ordi est utilisable ?
Re: Plugin SMS
Désolé j'avais mal compris.
Il faut que je regarde ca jamais penché sur le sujet
Il faut que je regarde ca jamais penché sur le sujet
Si ca marche .. c'est que ca peut faire plus !!
Merci à toute la communauté pour le boulot !
Merci à toute la communauté pour le boulot !
Re: Plugin SMS
A priori non ..
Quel autre modèle est le plus reconnu ?
Quel autre modèle est le plus reconnu ?
Si ca marche .. c'est que ca peut faire plus !!
Merci à toute la communauté pour le boulot !
Merci à toute la communauté pour le boulot !
Re: Plugin SMS
Non ça ne fonctionne pas sur ton pc (sous Windows ?)
Tu as installé les drivers et le soft associé ?
Tu as installé les drivers et le soft associé ?
Re: Plugin SMS
oui j'installle. le soft (qui est en autorun) se lance et me demande le pin (apres plusieurs brancher/débrancher ..)
je le met il me dit ok, il m'affiche l'opérateur tout .. et quand je tente un sms il met très longtemps et puis rien ..
je le met il me dit ok, il m'affiche l'opérateur tout .. et quand je tente un sms il met très longtemps et puis rien ..
Si ca marche .. c'est que ca peut faire plus !!
Merci à toute la communauté pour le boulot !
Merci à toute la communauté pour le boulot !
Re: Plugin SMS
salut tout le monde, j'ai un petit souci sur le plugins SMS, j'ai ce message là
sh: 1: sudo: not found
je ne peux plus lancer les dépendances donc l'application marche plus.
A savoir aussi c'est que je ne peux plus faire de sauvegarde j'ai aussi ce message
merci la team jeedom pour votre aide
sh: 1: sudo: not found
je ne peux plus lancer les dépendances donc l'application marche plus.
A savoir aussi c'est que je ne peux plus faire de sauvegarde j'ai aussi ce message
merci la team jeedom pour votre aide
Re: Plugin SMS
Il te dit que Sudo ( admin sur ta machine n'est pas ou plus la )..Maximo44 a écrit : ↑09 nov. 2017, 18:57salut tout le monde, j'ai un petit souci sur le plugins SMS, j'ai ce message là
sh: 1: sudo: not found
je ne peux plus lancer les dépendances donc l'application marche plus.
A savoir aussi c'est que je ne peux plus faire de sauvegarde j'ai aussi ce message
merci la team jeedom pour votre aide
plus de détail de ta machine ? , une sauvegarde sur un autre équipement ? avant de faire un , arrêt / Marche de ta machine
Re: Plugin SMS
Salut sylar, c’est bon le problème est résolu. J’ai dû formater complètement mon Jeedom et restauré une ancienne sauvegarde. Merci de l’info.
Qui est en ligne ?
Utilisateurs parcourant ce forum : Aucun utilisateur inscrit et 7 invités