Bash script to send an email when your Raspberry Pi's temperature surpasses the safe documented limits.
This script depends on the command msmtp
.
To understand how to configure and install this command on your Raspberry refer to this guide.
If you intend to use a gmail account as the sender email then you must configure that account to allow unsafe apps.
./checktemp.sh
The script will send an email with the account you configure when setting up msmtp
if the Raspberry Pi's temperature is currently above the safe documented limits.
To change the recipient of the alert email edit the alert.mail
file and change the To: field accordingly.
You can also edit the contents of alert.mail
to your liking.