PHP: Sensor Monitoring

 
After recently moving the servers up in to the loft, I needed a way to monitor the temperatures in there in case of overheating. I wrote a PHP script to poll and check the sensors every five minutes (via cron) and report back to my desktop via growl, to send an email if temperatures reach unsafe (mobile phone pager) and to also echo out too.

You can view the code here, and the growl output is the image on the right.

July 17th, 2008

Comments

No users have commented on this post yet.