RPi3 Auto Email New Public IP If Changed (Python3)
Step
sudo wget https://raw.github.com/carry0987/Raspberry-Pi-Repo/master/Auto-Report-IP/report-ip.py
sudo chmod +x report-ip.py
sudo vim report-ip.pysudo mv report-ip.py /usr/local/bin
sudo vim /etc/systemd/system/report-ip.service
[Unit] Description=IP Reporter After=network-online.target Wants=network-online.target [Service] ExecStart=/usr/bin/python3 /usr/local/bin/report-ip.py [Install] WantedBy=multi-user.target
sudo systemctl enable report-ip
sudo systemctl start report-ip
sudo systemctl status report-ip
sudo vim /etc/crontab
* * * * * root /usr/bin/python3 /usr/local/bin/report-ip.py
sudo service cron restart
Last updated
