Web App Serving as an SMS Gateway based on Gammu
Project description
SMS Gateway API
This repository contains a Python web application providing an API for sending SMS. The SMS sending is based on python-gammu
. Some concepts used for implementing this application are borrowed from vvanholl/smsgateway-gammu
.
Usage
PIP
First install sms-gateway
using PIP:
$ pip install sms-gateway
Then run the application and provide the device name, the PIN and a token used to authenticate against the API. For further options see Options.
$ sms-gateway --device /dev/ttyUSB1 --pin 1234 --token ABCD1234
Docker
You can also run the web app via Docker:
$ docker run --device=/dev/ttyUSB1:/dev/modem -p 8000:8000 joneug/sms-gateway --pin 1234 --token ABCD1234
Alternatively you can use docker-compose:
version: '3'
services:
sms-gateway:
image: joneug/sms-gateway
environment:
- "SG_PIN=1234"
- "SG_TOKEN=ABCD1234"
devices:
- /dev/ttyUSB1:/dev/modem
Options
TODO
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
sms-gateway-0.1.7.tar.gz
(5.9 kB
view hashes)
Built Distribution
Close
Hashes for sms_gateway-0.1.7-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | fd8b7f2879e1d7bad2bd744bf2ccc3b2dd14f912ad3dba86c51b5620b481d233 |
|
MD5 | dddc50effce61802e5f0fe1347d9cdcc |
|
BLAKE2b-256 | 1a03d01162976b7e2f7a5a6ee68b31f916459c6ca9b7987b9a0e397e1c9d4afc |