nzahasan / gsm-modem-sms-receiver

Simple python program that receives sms using a GSM modem and sends to a server. An alternate of SMS Enabler.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

SMS Reciever

This python program receives sms from a gsm modem using at command and sends it to a server via post request.

Dependency

These external python library was used in this program

pip install -r requirements.txt -t ./

Usage

To use this first you need to edit config.ini. Place the right port , and baudrate. If you need to send message to a server in server section set send: true and put the address of the server.

[Device]
Port: /dev/ttyUSB0
Baud_Rate: 115200
[Server]
Send: true
Address: http://localhost/receive.php  

If you dont know what is your port use dmesg | grep tty command to find the port address of your USB serial device. Then make the program executable using sudo chmod +x receive.py. To execute the program use sudo ./receive.py

About

Simple python program that receives sms using a GSM modem and sends to a server. An alternate of SMS Enabler.

License:GNU General Public License v3.0


Languages

Language:Python 100.0%