----------------------------------------------------------------------------------------------

 

 

 

 

 

 

 

 

#Every 5 minutes (but not on the hour!!) check if the python script has crashed, if it has then restart
5,10,15,20,25,30,35,40,45,50,55 * * * * pgrep python3 || (python3 /home/atlasmon/mon/readTemp.py)
#Every 12 hours, 2 minutes before the scripts get killed, plot them
58 23,11 * * * python3 /home/atlasmon/mon/quickPlot.py
#Every 12 hours, on the hour, run teh script to push file to google drive and email
0 0,12 * * * source /home/atlasmon/mon/uploadToDrive.sh
0 0,12 * * * python3 /home/atlasmon/mon/sendEmail.py
#Every 12 hours, 2 min the hour, kill any mon script still running
2 0,12 * * * pgrep python3 && ( kill $(pgrep python3) ) 
#Every 12 hours, 3 minute after the hour, restart the python script
3 0,12 * * * python3 /home/atlasmon/mon/readTemp.py

 

 

The output log created by the script has the following format:

unixTime	RoomTempThermOut	 ColdTherm1	ColdTherm2	ColdTher3	Avg(ColdTherm1,ColdTherm3)

 

 

 

 

 

Reads all ADC thermistor inputs once and discplays their measured temp, the raw voltage readings, the temp without CJC, and the CJC temp. Can be run to quickly debug but wil crash if another monitoring script is already accessing labJack at the same time.

  • No labels