From: Daniel N. <cj...@ma...> - 2003-12-31 06:50:43
|
Hi all, I am trying to have misterhouse notice when a closet light is turned on. Then set a timer for the light to turn off after 5 minutes, but if someone manually turns off the light, for the timer to stop. That way, misterhouse can monitor those lights (like a closet) that needn't be left on for long periods of time. Being very new to Perl, I was wondering if someone could help me along with the code for this. Also, what is the best way to test my little snippets of code. Right now, I right a code.pl file and put it in my code directory, when misterhouse tries to load it, I can tell if there are errors....but I'm sure there is a better way. -Daniel |