Open .bashrc
sudo nano ~/.bashrc
At the end of the file add two variables
TWILIO_ACCOUNT_SID=<your_key_here>
TWILIO_AUTH_TOKEN=<your_token_here>
Reload .bashrc
file
source ~/.bashrc
pip install twilio
sudo crontab -e
Paste the following
(make sure the path to the ip.py
scipt matches)
@reboot /bin/sleep 60; /home/pi/scripts/boot/ip.py &