pip install flask
pip install git+https://github.com/pmarti/python-messaging.git
Set username and password as environment variables.
export SMS_GATEWAY_USER=username
export SMS_GATEWAY_PASS=yourpassword
Add following to /etc/rc.local
file.
nohup python /home/pi/projects/sms-gateway/server.py >/home/pi/sms.log 2>&1 &