Skip to content
This repository has been archived by the owner on Mar 28, 2023. It is now read-only.

joneug/sms-gateway

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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