Edit check.py and set your worker name, wallet address, email info, and google app password.
Make it executable
chmod +x check.py
Setup root's crontab (root needed to reboot)
sudo crontab -e
Set to run every 5 minutes
*/5 * * * * /home/user/check.py