Skip to main content

Forwards messages via SMS from and to instant messengers

Project description

SMSGateway

This project is in Alpha stage, so expect bugs. Pull requests welcome!

The following instructions apply to a Raspberry PI running Ubuntu, but it should work similarly on other Linux distributions and platforms. Some commands might require to be invoked with sudo.

See SMSGateway-Android for an Android client.

Configuration

git clone https://github.com/Craeckie/SMSGateway.git

Copy smsgateway/config.example.py to smsgateway/config.py and adapt it, then install it:

python3 setup.py install

Logging

mkdir /var/log/smsgateway/ && chown -R smsd:smsd /var/log/smsgateway/

SMS Tools

Install smstools:

apt install smstools

Edit /etc/smsd.conf, see Confiuration/smsd.conf for an example configuration.

Handle SMS messages

Copy Scripts/smshandler to /usr/local/bin/ and make executable: chmod +x /usr/local/bin/smshandler

Permission to control systemctl, shutdown, etc.

Copy Configuration/010_smsd-nopasswd to /etc/sudoers.d/

Make sure that the file is correct, otherwise you might lock yourself out! If you're unsure, run visudo -f /etc/sudoers.d/010_smsd-nopasswd, enter the contents in the editor and save it.

Telegram

Uses Telethon.

Run python3 -m smsgateway.sources.telegram to authorize for receiving messages, similarly run python3 -m smsgateway.sources.commands.send_telegram to authorize for sending messages.

Facebook

Uses fbchat, see documentation

sudo apt install python3-dev libxml2-dev libxslt-dev
sudo pip install fbchat

Signal

Uses signal-cli

sudo apt install openjdk-8-jre-headless
wget https://github.com/AsamK/signal-cli/releases/download/v0.5.6/signal-cli-0.5.6.tar.gz
sudo tar xvf signal-cli-*.tar.gz -C /opt
sudo ln -svf /opt/signal-cli-"${VERSION}"/bin/signal-cli /usr/local/bin/
signal-cli link

WhatsApp

Uses Yowsup

sudo pip install yowsup
# 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

SMSGateway-0.5.0.0.dev0.tar.gz (17.7 kB view details)

Uploaded Source

File details

Details for the file SMSGateway-0.5.0.0.dev0.tar.gz.

File metadata

  • Download URL: SMSGateway-0.5.0.0.dev0.tar.gz
  • Upload date:
  • Size: 17.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.18.4 setuptools/40.2.0 requests-toolbelt/0.8.0 tqdm/4.24.0 CPython/3.7.0

File hashes

Hashes for SMSGateway-0.5.0.0.dev0.tar.gz
Algorithm Hash digest
SHA256 a652facefb867d3c6bada3154f9052dab9aaa0baf93e92b2943d2460dd2aa18b
MD5 a0e5fba0cfb4e7b327685b6d8b469b29
BLAKE2b-256 e2e8cf92f7f4ae9b609db3105c5d4e5dec4d3ec89241cd37b7eb62209c8cbf68

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page