Finally got my home automation / security project under way. Bought myself an IP Cam, and wrote a quick php frontend.Now I can monitor my house remotely from work!
It works by using the cams builtin motion capture and ftp abilities and uploads the pics to my trusty ubuntu server filehound. I then have a cam view page where all the pics from that directory gets displayed ( I am using a symlink to have the pics on the ftp dir be accessible by the php process.) The script then reads all files and checks if a thumbnail is available, if not a thumbnail is generated and displayed. This works quite well, but i want to make some improvements, one such improvement, have a corn job do the thumbnail generation, because if the page is not visited regularly then the amount of thumbnails gets to large and the max execution time of the php script (30 seconds) gets exceeded… filehound is not the fastest machine (400mhz cpu and 256mb ram)
So a corn job could handle the thumbnail generation in the background…
So this is the start of hopefully a very nice and complete home automation security project!















Recent Comments