[Resolu]Ecriture scipt Minicom- Tuto COMMUNIQUER PAR SMS AVEC DOMOTICZ VIA UN MODEM USB 3G

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 <\>.
balajol
Messages : 864
Inscription : 13 nov. 2015, 18:54
Localisation : 62

[Resolu]Ecriture scipt Minicom- Tuto COMMUNIQUER PAR SMS AVEC DOMOTICZ VIA UN MODEM USB 3G

Message par balajol »

Bonjour,
J'ai suivi le Tuto de DEENNOO sur DomoAttitude pour communiquer par SMS avec Domoticz.
J'en profite pour le remercier :)
Fonctionnement ok avec un Lecteur de SIM800L et une Sim 2€ free.
Je bloque à la création du script pour Minicom modem_reset.minicom
Puis-je créer ce script avec nano ? et ou doit il être placé ?
Peut être sans certitude /etc/minicom/ ..
Merci par avance pour tout aide éventuelle, présent récemment dans le monde de Raspbian et du raspberry, je galère pas mal :oops:
Cdt
Bertrand
Dernière modification par balajol le 26 janv. 2021, 16:12, modifié 1 fois.
2024.6 PC Windows10 ; 2ème DEBIAN 10;DANFOSS LC13, Topp; Senseurs univ FIBARO FGBS001, Flood Sensor, ZMNHBD1 Flush 2 Relays ; FIBARO FGS222-FGS212;RFXCOM-RFXtrx433 USB 433.92MHz , Prises Phénix, Prises et Eclairage DI-O, SOMFY RTS,Sonoff ..
Keros
Messages : 6638
Inscription : 23 juil. 2019, 20:57

Re: Ecriture scipt Minicom- Tuto COMMUNIQUER PAR SMS AVEC DOMOTICZ VIA UN MODEM USB 3G

Message par Keros »

Tu peux nous mettre le lien vers le tuto que tu as suivi ? Cela permettrait de comprendre ce qu'il y a à faire.

Normalement pour écrire un script, t'as juste besoin d'un éditeur de texte : celui par défaut ou Geany par exemple. Nano fait le boulot mais n'est pas super convivial.
Comment bien utiliser le forum : Poser une question, Mettre un script, un fichier, une image ou des logs
Mes petits guides : Débuter en programmation, Le débogage, Le choix de matériel, Les sauvegardes
Ma présentation - Mes Tutos
balajol
Messages : 864
Inscription : 13 nov. 2015, 18:54
Localisation : 62

Re: Ecriture scipt Minicom- Tuto COMMUNIQUER PAR SMS AVEC DOMOTICZ VIA UN MODEM USB 3G

Message par balajol »

Bonsoir,
Le tuto: http://domo-attitude.fr/communiquer-sms ... em-usb-3g/


Pour écrire le script l'utilisation de nano me convient, la seule information sont j ai besoin est le dossier dans lequel je dois mettre ce script: modem_reset.minicom


Cdt
Bertrand
2024.6 PC Windows10 ; 2ème DEBIAN 10;DANFOSS LC13, Topp; Senseurs univ FIBARO FGBS001, Flood Sensor, ZMNHBD1 Flush 2 Relays ; FIBARO FGS222-FGS212;RFXCOM-RFXtrx433 USB 433.92MHz , Prises Phénix, Prises et Eclairage DI-O, SOMFY RTS,Sonoff ..
Keros
Messages : 6638
Inscription : 23 juil. 2019, 20:57

Re: Ecriture scipt Minicom- Tuto COMMUNIQUER PAR SMS AVEC DOMOTICZ VIA UN MODEM USB 3G

Message par Keros »

La réponse est dans le script modem_reset car il appelle modem_reset.minicom à la ligne : /usr/bin/minicom -D /dev/ttyUSB31 -S /root/modem_reset.minicom.
Comment bien utiliser le forum : Poser une question, Mettre un script, un fichier, une image ou des logs
Mes petits guides : Débuter en programmation, Le débogage, Le choix de matériel, Les sauvegardes
Ma présentation - Mes Tutos
balajol
Messages : 864
Inscription : 13 nov. 2015, 18:54
Localisation : 62

Re: Ecriture scipt Minicom- Tuto COMMUNIQUER PAR SMS AVEC DOMOTICZ VIA UN MODEM USB 3G

Message par balajol »

Bonjour Keros,
Merci de ton retour, j'étais passé à côté de ta réponse.
Je creuse et reviens pour la suite :)
Cdt
Bertrand
2024.6 PC Windows10 ; 2ème DEBIAN 10;DANFOSS LC13, Topp; Senseurs univ FIBARO FGBS001, Flood Sensor, ZMNHBD1 Flush 2 Relays ; FIBARO FGS222-FGS212;RFXCOM-RFXtrx433 USB 433.92MHz , Prises Phénix, Prises et Eclairage DI-O, SOMFY RTS,Sonoff ..
balajol
Messages : 864
Inscription : 13 nov. 2015, 18:54
Localisation : 62

Re: Ecriture scipt Minicom- Tuto COMMUNIQUER PAR SMS AVEC DOMOTICZ VIA UN MODEM USB 3G

Message par balajol »

Re,
A priori Ok Merci encore ;)
cdt
Bertrand
2024.6 PC Windows10 ; 2ème DEBIAN 10;DANFOSS LC13, Topp; Senseurs univ FIBARO FGBS001, Flood Sensor, ZMNHBD1 Flush 2 Relays ; FIBARO FGS222-FGS212;RFXCOM-RFXtrx433 USB 433.92MHz , Prises Phénix, Prises et Eclairage DI-O, SOMFY RTS,Sonoff ..
Keros
Messages : 6638
Inscription : 23 juil. 2019, 20:57

Re: [Resolu]Ecriture scipt Minicom- Tuto COMMUNIQUER PAR SMS AVEC DOMOTICZ VIA UN MODEM USB 3G

Message par Keros »

De rien ;)

Ton topic tombe bien, j'ai acheté un modem il n'y a longtemps pour fiabiliser mon système de sms et j'ai noté le tuto dans un coin :mrgreen:
Comment bien utiliser le forum : Poser une question, Mettre un script, un fichier, une image ou des logs
Mes petits guides : Débuter en programmation, Le débogage, Le choix de matériel, Les sauvegardes
Ma présentation - Mes Tutos
balajol
Messages : 864
Inscription : 13 nov. 2015, 18:54
Localisation : 62

Re: [Resolu]Ecriture scipt Minicom- Tuto COMMUNIQUER PAR SMS AVEC DOMOTICZ VIA UN MODEM USB 3G

Message par balajol »

Tout Fonctionne impec avec le lecteur SIM 800L attention selon la couleur des circuits imprimés, les connexions ne sont pas les mêmes .
Cdt
Bertrand
2024.6 PC Windows10 ; 2ème DEBIAN 10;DANFOSS LC13, Topp; Senseurs univ FIBARO FGBS001, Flood Sensor, ZMNHBD1 Flush 2 Relays ; FIBARO FGS222-FGS212;RFXCOM-RFXtrx433 USB 433.92MHz , Prises Phénix, Prises et Eclairage DI-O, SOMFY RTS,Sonoff ..
Répondre