Thursday, February 6, 2014

Pi to Human Communication

If you have a Pi set up to monitor sensors then you will want to notify someone when things go (potentially) wrong. Assuming your Pi has Internet access (DSL, cable, cellular 3G/4G hotspot modem) you can program it to send out alerts from the Linux Shell, like so:

echo "Warning: Temp below 35F" | mail -s Temp

SMS (text message):
echo "Warning: Temp below 35F" | mail

To get the text message to work you have to know what carrier serves the phone number. There's a list at--

Note: In terms of speed, both the e-mail and the text got to me in under 60 seconds. But people are probably more alert to texts.

No comments:

Post a Comment