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 Telegram-Cli using this patch to fix authorization

apt install libevent-dev libssl-dev libreadline-dev libconfig-dev liblua50-dev libjansson-dev
git clone --depth 1 https://github.com/vysheng/tg.git
cd tg
git clone --recursive https://github.com/a-x-/tgl.git
git checkout --depth 1 patch-1
./configure && make

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.3.7.3.tar.gz (15.2 kB view details)

Uploaded Source

File details

Details for the file SMSGateway-0.3.7.3.tar.gz.

File metadata

  • Download URL: SMSGateway-0.3.7.3.tar.gz
  • Upload date:
  • Size: 15.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for SMSGateway-0.3.7.3.tar.gz
Algorithm Hash digest
SHA256 3e4b1553170fb7aaa5faea8cca39f56f5e28bc05cbb5aa9965b7cd5e42cce114
MD5 8ed356498c0935d0811478394fd1774c
BLAKE2b-256 3d141a88d49500b11fcc309c7999c6409c4d414703c8fb513267191bd175c217

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