Skip to content

esteed/tempalert

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 

Repository files navigation

tempalert

check_temp.sh:

You will need to substitute the email address(es) in the "engineers" variable that you want to receive the emails. I've included

an example of what multiple email addresses looks like, or you can just use one.

Also, depending on how you set up your mail relay, you will need to change the From: address in the script

so that your email won't be rejected due to invalid sender domain. It's best to test the email command before

implementing it into an automated script so you know the alerts are coming through.

get_temp.py:

I'm using a DS18B20 temperature sensor connected to a raspberry pi zero to take my readings. You can substitute

whatever script or program that is responsible for sampling the temperature in your situation. Just make sure the

output consists of an integer. My check_temp.sh script strips off anything after the decimal point.

I forgot to include this in the original setup instructions- shame on me!

OS requirements:

add to end of /etc/modprobe:

w1-gpio w1-therm

add to /boot/config.txt:

Add 1wire support for DS18B20 temperature sensor

dtoverlay=w1-gpio

reboot

Enjoy!

Eric Steed

About

monitor temperature and send alert email if above threshold

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors