Temperature & Humidity Log
The aim of this project started out with then need to know current temperature and humidity in my house and expanded into a little bit more. It started out as just one perl script to locally log the temperature and humidity but soon expanded to a log aggregator and a dynamic webpage that can be accessed from anywhere. Finally it was integrated as a page on a WordPress blog being used as a CMS for my homepage.
Hardware
The setup is based on five wireless temperature and humidity sensors, four S-300-TH units which are used indoors in the kitchen, living room, bedroom and bathroom and one special weather proof ASH-2200 unit, which is placed outdoors. The five sensors all connect to a USB-WDE1 receiver unit connected to a computer by USB.
S-300-TH
indoor sensor ASH-2200
outdoor sensor USB-WDE1
receiver
Software
Although off-the-shelf software is available (LogView) functionality was limited to only logging every minute. To enable extra functionality, and as a bit of a geek challenge, a custom software solution was created. This consist of the following parts:
None of these scripts is particularly pretty, nor efficient, but they work. As reading a serial interface and reporting results via a web interface was something I thought I would never be able to achieve with my basic programming knowledge I thought I would share this to encourage others to try such things. Although setup for Mac OS X 10.6 scripts should also work under Linux with appropriate modification. Note that PHP is not enabled by default in Mac OS X 10.6, PHP. To do this make a backup of the original http.conf file:
sudo cp /etc/apache2/httpd.conf /etc/apache2/httpd.conf.original
Then enabled PHP by editing the http.conf file:
sudo nano /etc/apache2/httpd.conf
and un-commenting the following line in /etc/apache2/httpd.conf and restarting the web server:
#LoadModule php5_module libexec/apache2/libphp5.so
Revision History
Over time a number of new features have been added: