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.
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
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.