forelleblau / iobroker.gsmsms Goto Github PK
View Code? Open in Web Editor NEWioBroker Adapter to send and recieve SMS with GSM hardware
License: MIT License
ioBroker Adapter to send and recieve SMS with GSM hardware
License: MIT License
Version: stable=0.0.4 (290 days old) => latest=0.0.5 (15 days old)
Installs: stable=46 (83.64%), latest=8 (14.55%), total=55
Click to use developer portal
Click to edit
Note: This is an automatically generated message and not personally authored by bluefox!
Signalstärke und ähnliches periodisch abfragen oder über Log verfügbar machen. Ev. mit LogTransporter
https://github.com/ioBroker/ioBroker.docs/blob/master/docs/en/dev/logging.md
Alert - Option über alle Sendemöglichkeiten verfügbar machen
`
Error setting GSM-Modem mode - Error: timeout: {"_events":{},"_eventsCount":1,"_maxListeners":100,"command":"AT+CMGF=0","add_time":"2023-05-11T07:22:14.934Z","id":6,"timeout":30000,"inProgress":true,"execute_time":"2023-05-11T07:22:14.940Z"}
I have setup a new IOBroker System.
Everything works fine with my backup, only gsmsms v0.0.4 didn't work correct.
I set the right USB Port but the SMS only comes if I restart the adapter.
Set the "Abrufintervall (s)" to 5 seconds, but it didn't help.
Version: stable=0.0.4 (319 days old) => latest=0.0.6 (15 days old)
Installs: stable=49 (83.05%), latest=5 (8.47%), total=59
Click to use developer portal
Click to edit
Note: This is an automatically generated message and not personally authored by bluefox!
Delete all ersetzen mit gezieltem Löschen.
Kommt bei "new message" keine ID mit die man
gezieht löschen kann? Will sagen "was ist wenn zeitnah zwei messages reinkommen?
Ich glaube delete geht wenn du das msg Objekt wieder übergibst, dann
löscht er genau die.
Also soweit ich weiss kannst du die message die du gelesen hast beim delete übergeben ... dann nimmt er die ID da raus.
State für Incomming Calls.
Ev auch Anrufen einbauen (ausgehend)
Warum hast Du
https://github.com/forelleblau/ioBroker.gsmsms/blob/main/main.js#L339
auskommentiert? wäre nicht ne Idee nen State zu haben der getriggert
wird mit der anrufenden nummer? :-)Ansonsten wäre cool noch ein "sendCall" für einen Anruf :-) Hier mal
ein mitschnitt von "smstools" was man senden müsste :-) Kann ich aber
auch erst in die Library einbauen oder nen PR machen? ;-))Das macht anruf und wenn abgenommen sendet DTMF töne (ob das zweite
geht hängt vom model ab ... aber why not)2019-04-25 18:12:08,6, GSM1: I have to make a voice call to
4915153859448, with (3 times) DTMF 123
2019-04-25 18:12:08,7, GSM1: -> ATD+49xxx;
2019-04-25 18:12:08,7, GSM1: Command is sent, waiting for the answer
2019-04-25 18:12:08,7, GSM1: <- OK
2019-04-25 18:12:09,7, GSM1: -> AT+CLCC
2019-04-25 18:12:09,7, GSM1: Command is sent, waiting for the answer
2019-04-25 18:12:09,7, GSM1: <- +CLCC: 1,0,2,0,0,"+49xxx",145
OK
2019-04-25 18:12:10,7, GSM1: -> AT+CLCC
2019-04-25 18:12:10,7, GSM1: Command is sent, waiting for the answer
2019-04-25 18:12:10,7, GSM1: <- +CLCC: 1,0,2,0,0,"+49xxx",145
OK
2019-04-25 18:12:11,7, GSM1: -> AT+CLCC
2019-04-25 18:12:11,7, GSM1: Command is sent, waiting for the answer
2019-04-25 18:12:11,7, GSM1: <- +CLCC: 1,0,2,0,0,"+49xxx",145
OK
2019-04-25 18:12:11,7, GSM1: -> AT+CLCC
2019-04-25 18:12:11,7, GSM1: Command is sent, waiting for the answer
2019-04-25 18:12:12,7, GSM1: <- +CLCC: 1,0,2,0,0,"+49xxx",145
OK
2019-04-25 18:12:12,7, GSM1: -> AT+CLCC
2019-04-25 18:12:12,7, GSM1: Command is sent, waiting for the answer
2019-04-25 18:12:12,7, GSM1: <- +CLCC: 1,0,3,0,0,"+49xxx",145
OK
2019-04-25 18:12:13,7, GSM1: -> AT+CLCC
2019-04-25 18:12:13,7, GSM1: Command is sent, waiting for the answer
2019-04-25 18:12:13,7, GSM1: <- +CLCC: 1,0,3,0,0,"+49xxx",145
OK
2019-04-25 18:12:14,7, GSM1: -> AT+CLCC
2019-04-25 18:12:14,7, GSM1: Command is sent, waiting for the answer
2019-04-25 18:12:14,7, GSM1: <- +CLCC: 1,0,3,0,0,"+49xxx",145
OK
2019-04-25 18:12:14,7, GSM1: -> AT+CLCC
2019-04-25 18:12:14,7, GSM1: Command is sent, waiting for the answer
2019-04-25 18:12:15,7, GSM1: <- +CLCC: 1,0,3,0,0,"+49xxx",145
OK
2019-04-25 18:12:15,7, GSM1: -> AT+CLCC
2019-04-25 18:12:15,7, GSM1: Command is sent, waiting for the answer
2019-04-25 18:12:16,7, GSM1: <- +CLCC: 1,0,3,0,0,"+49xxx",145
OK
2019-04-25 18:12:16,7, GSM1: -> AT+CLCC
2019-04-25 18:12:16,7, GSM1: Command is sent, waiting for the answer
2019-04-25 18:12:16,7, GSM1: <- +CLCC: 1,0,3,0,0,"+49xxx",145
OK
2019-04-25 18:12:17,7, GSM1: -> AT+CLCC
2019-04-25 18:12:17,7, GSM1: Command is sent, waiting for the answer
2019-04-25 18:12:17,7, GSM1: <- +CLCC: 1,0,0,0,0,"+49xxx",145
OK
2019-04-25 18:12:21,7, GSM1: -> AT+VTS=1;+VTS=2;+VTS=3
2019-04-25 18:12:21,7, GSM1: Command is sent, waiting for the answer
2019-04-25 18:12:31,7, GSM1: put_command expected (OK)|(NO
CARRIER)|(BUSY)|(NO ANSWER)|(ERROR)|(DELAYED), timeout occurred. 1.
2019-04-25 18:12:31,7, GSM1: <- COMMAND NOT SUPPORT
2019-04-25 18:12:34,7, GSM1: -> AT+VTS=1;+VTS=2;+VTS=3
2019-04-25 18:12:34,7, GSM1: Command is sent, waiting for the answer
2019-04-25 18:12:37,5, smsd: Moved file
/var/spool/sms/outgoing/voicecalltest to /var/spool/sms/checked/vC3vLX
2019-04-25 18:12:44,7, GSM1: put_command expected (OK)|(NO
CARRIER)|(BUSY)|(NO ANSWER)|(ERROR)|(DELAYED), timeout occurred. 2.
2019-04-25 18:12:44,7, GSM1: <- COMMAND NOT SUPPORT
2019-04-25 18:12:47,7, GSM1: -> AT+VTS=1;+VTS=2;+VTS=3
2019-04-25 18:12:47,7, GSM1: Command is sent, waiting for the answer
2019-04-25 18:12:58,7, GSM1: put_command expected (OK)|(NO
CARRIER)|(BUSY)|(NO ANSWER)|(ERROR)|(DELAYED), timeout occurred. 3.
2019-04-25 18:12:58,7, GSM1: <- COMMAND NOT SUPPORT
2019-04-25 18:12:59,7, GSM1: -> AT+CHUP
2019-04-25 18:12:59,7, GSM1: Command is sent, waiting for the answer
2019-04-25 18:12:59,7, GSM1: <- OK
e have a new Notification adapter to centralize notification sending.
I would love that this adapter also supports this.
you "just" need to add a message and flag support in io-package :-) ... and a bit parsing the data correctly ...
https://github.com/foxriver76/ioBroker.notification-manager#requirements-for-messaging-adapters
also email and telegram already supprts it ... maybe the "how to parse the dsta into a "string to send" could be taken from there as "blueprint"
I found logs when starting the latest version:
2023-03-03 10:44:24.765 - info: gsmsms.0 (3996) Your number: undefined, your name: undefined
2023-03-03 10:44:24.765 - info: gsmsms.0 (3996) undefined is not a valid state value for id "gsmsms.0.info.ownNumber"
2023-03-03 10:44:24.766 - info: gsmsms.0 (3996) undefined is not a valid state value for id "gsmsms.0.info.ownName"
2023-03-03 10:44:24.766 - info: gsmsms.0 (3996) undefined is not a valid state value for id "gsmsms.0.admin.ownNumber"
2023-03-03 10:44:24.766 - info: gsmsms.0 (3996) undefined is not a valid state value for id "gsmsms.0.admin.ownName"
Please check the values before setting them
Hallo.
Leider finde ich im Forum keine weiteren Einträge zum Adapter. Ich habe eine Störung seit dem Update auf js-controller: 5.0.16.
Auch das Update des Adapter von v0.0.4 auf v0.0.6 brachte keine Änderung.
Beim Starten des Adapter bekomme ich folgende Meldungen:
gsmsms.0
2023-12-09 20:46:05.465 info starting. Version 0.0.6 in /opt/iobroker/node_modules/iobroker.gsmsms, node: v18.17.1, js-controller: 5.0.16
gsmsms.0
2023-12-09 20:46:05.530 info Modem opened successfully, Port: "/dev/ttyUSB0" Status: "Online"
gsmsms.0
2023-12-09 20:46:05.588 info "Modem Successfully Initialized"
gsmsms.0
2023-12-09 20:46:05.744 info Your number: undefined, your name: undefined
gsmsms.0
2023-12-09 20:46:06.150 info No saved messages to process
Beim Senden einer Testmail kommt dann der Error.
gsmsms.0
2023-12-09 20:47:22.988 info Event Sending Message: {"status":"Sending SMS","request":"sendingSMS","data":{"messageId":"62TQHegv6S17gwWf2AfsHnIG3","message":"GSM Test","recipient":"0160xxxxxxx","response":"Message Currently Sending"}}
gsmsms.0
2023-12-09 20:47:22.993 warn Error sending message: {"status":"fail","request":"SendSMS","data":{"messageId":"62TQHegv6S17gwWf2AfsHnIG3","message":"GSM Test","recipient":"0160xxxxxxx","response":"Message Failed +CMS ERROR: 500"}}
Hat einer eine Idee was ich ändern kann/muss?
Danke.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.