Comme annoncé, ce forum est passé en lecture seule au 1er janvier 2020. Désormais nous vous invitons à vous rendre sur notre nouvelle page communauté :
Image

A très bientôt !

Plugin SMS

nou
Actif
Messages : 557
Inscription : 17 mai 2015, 00:17

Re: Plugin SMS

Message par nou » 24 oct. 2017, 11:07

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)

Avatar de l’utilisateur
Jeandhom
Actif
Messages : 1386
Inscription : 20 oct. 2015, 17:32

Re: Plugin SMS

Message par Jeandhom » 24 oct. 2017, 13:06

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.

nou
Actif
Messages : 557
Inscription : 17 mai 2015, 00:17

Re: Plugin SMS

Message par nou » 24 oct. 2017, 15:12

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.

Avatar de l’utilisateur
Jeandhom
Actif
Messages : 1386
Inscription : 20 oct. 2015, 17:32

Re: Plugin SMS

Message par Jeandhom » 24 oct. 2017, 16:57

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.
Dernière édition par Jeandhom le 24 oct. 2017, 18:13, édité 2 fois.

nou
Actif
Messages : 557
Inscription : 17 mai 2015, 00:17

Re: Plugin SMS

Message par nou » 24 oct. 2017, 17:15

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

drs
Actif
Messages : 1534
Inscription : 04 nov. 2016, 10:44

Re: Plugin SMS

Message par drs » 24 oct. 2017, 17:49

nou a écrit :
24 oct. 2017, 10:38
Bonjour,
j'essaye de récupérer la force du signal (affichée dans la partie configuration) dans un scénario (via du code bien entendu)
j'ai cherché, mais sans trouver la solution.
quelqu'un y serait déjà arrivé ?

Merci
Oui il faut récupérer l'info Signal des équipements que tu as rentré dans le plugin SMS.

Avatar de l’utilisateur
Jeandhom
Actif
Messages : 1386
Inscription : 20 oct. 2015, 17:32

Re: Plugin SMS

Message par Jeandhom » 24 oct. 2017, 18:36

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")

Avatar de l’utilisateur
BaaTuuC
Actif
Messages : 802
Inscription : 19 oct. 2015, 19:48

Re: Plugin SMS

Message par BaaTuuC » 02 nov. 2017, 14:09

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 :)

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 !

nou
Actif
Messages : 557
Inscription : 17 mai 2015, 00:17

Re: Plugin SMS

Message par nou » 02 nov. 2017, 14:15

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

Avatar de l’utilisateur
BaaTuuC
Actif
Messages : 802
Inscription : 19 oct. 2015, 19:48

Re: Plugin SMS

Message par BaaTuuC » 02 nov. 2017, 15:28

nou a écrit :
02 nov. 2017, 14:15
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
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 !

nou
Actif
Messages : 557
Inscription : 17 mai 2015, 00:17

Re: Plugin SMS

Message par nou » 02 nov. 2017, 15:29

La clé sur un téléphone portable ?

Avatar de l’utilisateur
BaaTuuC
Actif
Messages : 802
Inscription : 19 oct. 2015, 19:48

Re: Plugin SMS

Message par BaaTuuC » 02 nov. 2017, 15:42

nou a écrit :
02 nov. 2017, 15:29
La clé sur un téléphone portable ?
ah non pardon ^^
la carte :)

Gammu met aucune erreur mais rien reçu .. :lol:
Si ca marche .. c'est que ca peut faire plus !!

Merci à toute la communauté pour le boulot !

nou
Actif
Messages : 557
Inscription : 17 mai 2015, 00:17

Re: Plugin SMS

Message par nou » 02 nov. 2017, 16:17

Ma question est : est ce que la clé (+ la carte) branchée sur ton ordi est utilisable ?

Avatar de l’utilisateur
BaaTuuC
Actif
Messages : 802
Inscription : 19 oct. 2015, 19:48

Re: Plugin SMS

Message par BaaTuuC » 02 nov. 2017, 18:50

Désolé j'avais mal compris.
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 !

Avatar de l’utilisateur
BaaTuuC
Actif
Messages : 802
Inscription : 19 oct. 2015, 19:48

Re: Plugin SMS

Message par BaaTuuC » 02 nov. 2017, 18:53

A priori non ..
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 !

nou
Actif
Messages : 557
Inscription : 17 mai 2015, 00:17

Re: Plugin SMS

Message par nou » 02 nov. 2017, 20:26

Non ça ne fonctionne pas sur ton pc (sous Windows ?)
Tu as installé les drivers et le soft associé ?

Avatar de l’utilisateur
BaaTuuC
Actif
Messages : 802
Inscription : 19 oct. 2015, 19:48

Re: Plugin SMS

Message par BaaTuuC » 02 nov. 2017, 23:19

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 ..
Si ca marche .. c'est que ca peut faire plus !!

Merci à toute la communauté pour le boulot !

Maximo44
Timide
Messages : 19
Inscription : 12 mars 2017, 17:26

Re: Plugin SMS

Message par Maximo44 » 09 nov. 2017, 18:57

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

Avatar de l’utilisateur
Sylar
Actif
Messages : 501
Inscription : 02 mars 2016, 09:34
Contact :

Re: Plugin SMS

Message par Sylar » 09 nov. 2017, 20:51

Maximo44 a écrit :
09 nov. 2017, 18:57
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
Il te dit que Sudo ( admin sur ta machine n'est pas ou plus la )..

plus de détail de ta machine ? , une sauvegarde sur un autre équipement ? avant de faire un , arrêt / Marche de ta machine

Maximo44
Timide
Messages : 19
Inscription : 12 mars 2017, 17:26

Re: Plugin SMS

Message par Maximo44 » 10 nov. 2017, 20:45

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.

Répondre

Revenir vers « [Plugin Officiel] SMS »

Qui est en ligne ?

Utilisateurs parcourant ce forum : Aucun utilisateur inscrit et 1 invité