domochip / sms2mqtt Goto Github PK
View Code? Open in Web Editor NEWGateway to send/receive SMS through MQTT using an USB GSM dongle (gammu)
License: GNU General Public License v3.0
Gateway to send/receive SMS through MQTT using an USB GSM dongle (gammu)
License: GNU General Public License v3.0
Modem - huawei
services:
sms2mqtt:
container_name: sms2mqtt
image: domochip/sms2mqtt
devices:
- /dev/serial/by-id/usb-_Mobile_Connect-if00-port0:/dev/mobile
environment:
- HOST=10.0.0.23
- PORT=1883
- PREFIX=sms2mqtt
- CLIENTID=sms2mqttclid
- USER=user
- PASSWORD=password
restart: always
I have troubles with multipart sms.
11:05:13: Incomplete Multipart SMS (1/12): waiting for parts
11:05:15: Incomplete Multipart SMS (1/4): waiting for parts
11:05:15: Incomplete Multipart SMS (1/12): waiting for parts
11:05:15: Incomplete Multipart SMS (1/12): waiting for parts
11:05:15: Incomplete Multipart SMS (1/12): waiting for parts
11:05:15: Incomplete Multipart SMS (1/12): waiting for parts
11:05:16: Incomplete Multipart SMS (1/4): waiting for parts
11:05:16: Incomplete Multipart SMS (1/12): waiting for parts
11:05:16: Incomplete Multipart SMS (1/12): waiting for parts
11:05:16: Incomplete Multipart SMS (1/12): waiting for parts
11:05:16: Incomplete Multipart SMS (1/12): waiting for parts
11:05:18: Incomplete Multipart SMS (1/4): waiting for parts
11:05:18: Incomplete Multipart SMS (1/12): waiting for parts
11:05:18: Incomplete Multipart SMS (1/12): waiting for parts
11:05:18: Incomplete Multipart SMS (1/12): waiting for parts
11:05:18: Incomplete Multipart SMS (1/12): waiting for parts
11:05:20: Incomplete Multipart SMS (1/4): waiting for parts
11:05:20: Incomplete Multipart SMS (1/12): waiting for parts
11:05:20: Incomplete Multipart SMS (1/12): waiting for parts
11:05:20: Incomplete Multipart SMS (1/12): waiting for parts
11:05:20: Incomplete Multipart SMS (1/12): waiting for parts
11:05:22: Incomplete Multipart SMS (1/4): waiting for parts
11:05:22: Incomplete Multipart SMS (1/12): waiting for parts
11:05:22: Incomplete Multipart SMS (1/12): waiting for parts
11:05:22: Incomplete Multipart SMS (1/12): waiting for parts
11:05:22: Incomplete Multipart SMS (1/12): waiting for parts
11:05:24: Incomplete Multipart SMS (1/4): waiting for parts
11:05:24: Incomplete Multipart SMS (1/12): waiting for parts
11:05:24: Incomplete Multipart SMS (1/12): waiting for parts
11:05:24: Incomplete Multipart SMS (1/12): waiting for parts
This is a constant log state when I send a long sms to this number
As a result, the messages never arrive. When I insert the SIM card into the phone, part of the message ends up in the memory of the SIM card
How can i fix this problem?
Any chance you can provide a docker image for armv6 to run on Raspberry pi? Thanks
sms2mqtt:
container_name: sms2mqtt
image: domochip/sms2mqtt
devices:
- /dev/serial/by-id/usb-Qualcomm__Incorporated_Qualcomm_CDMA_Technologies_MSM_864319031594962-if01-port0:/dev/mobile
environment:
- PIN=1234
- HOST=172.0.0.1
- PORT=1883
- PREFIX=sms2mqtt
- CLIENTID=sms2mqttclid
- USER=USER_mqtt
- PASSWORD=MDP
Hello, i encountered an "IndexError: list index out of range" error while running sms2mqtt. The error seems to be related to the following line in sms2mqtt.py
message = {"datetime":str(sms[0]['DateTime']), "number":sms[0]['Number'], "text":decodedsms['Entries'][0]['Buffer']}
The script was working without any issues for several weeks, but suddenly stopped working.
I can still send SMS using Gammu with the following command:
gammu sendsms TEXT 0600000000 -text "Ceci est un test"
I have also tried different environment variables in my docker-compose configuration, but the problem persists.
sms2mqtt | 19:13:49: ===== sms2mqtt v1.4.6 =====
sms2mqtt | 19:13:53: Gammu runtime: v1.41.0
sms2mqtt | 19:13:53: Python-gammu runtime: v3.2
sms2mqtt | 19:13:53: Manufacturer: Qualcomm
sms2mqtt | 19:13:53: IMEI: **HIDE**
sms2mqtt | 19:13:53: SIMIMSI: +**HIDE**
sms2mqtt | 19:13:53: Gammu initialized
sms2mqtt | Traceback (most recent call last):
sms2mqtt | File "/app/sms2mqtt.py", line 265, in <module>
sms2mqtt | loop_sms_receive()
sms2mqtt | File "/app/sms2mqtt.py", line 116, in loop_sms_receive
sms2mqtt | message = {"datetime":str(sms[0]['DateTime']), "number":sms[0]['Number'], "text":decodedsms['Entries'][0]['Buffer']}
sms2mqtt | IndexError: list index out of range
sms2mqtt exited with code 1
Any idea ? :)
Regards
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.