Your Universal Remote Control Center
RemoteCentral.com
Lighting & Home Control Forum - View Post
Up level
Up level
The following page was printed from RemoteCentral.com:

Login:
Pass:
 
 

Original thread:
Post 26 made on Tuesday September 21, 1999 at 13:44
Roland S
Historic Forum Post
I have a correction in my previous GARAGE.SCR

old script
-------------------
IF TIME(less-than)DUSK THEN END ; if not dusk yet, stop script
IF TIME>0400 THEN END ; if after 4 am, stop script

It so happened that, according to the way the original script was written, 11pm (2300) was after dusk, but 11pm was also after 4am (0400), causing the script to END.

This new GARAGE.SCR corrects for that mistake and allows to detect after midnight (0000 to 0400) too.

NEW GARAGE.SCR
---------------------
CHIME.WAV
IF TIME>DUSK THEN GOTO &CheckLights ELSE GOTO &CheckMorning
&CheckMorning
IF TIME(less than)DAWN THEN GOTO &CheckLights ELSE END
&CheckLights
IF B2>0 THEN END
IF B3>0 THEN END
IF B4>0 THEN END
IM_HOME.SCR

I tried this out last night and it seemed to work. If you find a bug in this code, let me know.

Thanks,
Roland


...and by the way Simon, i tried the HCA software. I too thought it was better than ActiveHome, but Commander-X is more flexible.


Hosting Services by ipHouse