Howto: Log toilet visits in Database using Homesee
Posted: Tue Mar 04, 2008 3:16 pm
I have created this VB Script that can be used to count the number of times people go into your toilet (if they turn on the light)
HomeSeer event: if Lamp 'A5' (example) is turned on (in my case by a motion sensor or S10 wall switch), this script is executed and writes a record in an Access DB (.mdb).
-Copy .VB script in Homeseers Script directory
-Create an MS Access DB according to the instructions in the .VB file
-Change configuration like .MDB path
-Create HS event that runs this VB script
-Check the HS logs and the Access DB.
Future post: I also have some asp files that retreive this information from the DB. Also have a beta asp that uses chartdirector to create graphs based on data that's in the database. If you want (supportless) copies of these extremely dangerous files just send me a message.
Have fun!
DJ
<b>Download Attachment:</b> [img]images/icon_paperclip.gif[/img] Toilet_visit.zip<br />2.15 KB
HomeSeer event: if Lamp 'A5' (example) is turned on (in my case by a motion sensor or S10 wall switch), this script is executed and writes a record in an Access DB (.mdb).
-Copy .VB script in Homeseers Script directory
-Create an MS Access DB according to the instructions in the .VB file
-Change configuration like .MDB path
-Create HS event that runs this VB script
-Check the HS logs and the Access DB.
Future post: I also have some asp files that retreive this information from the DB. Also have a beta asp that uses chartdirector to create graphs based on data that's in the database. If you want (supportless) copies of these extremely dangerous files just send me a message.
Have fun!
DJ
<b>Download Attachment:</b> [img]images/icon_paperclip.gif[/img] Toilet_visit.zip<br />2.15 KB