"if" ?
Phil Pedersen
philip.pedersen at speakeasy.org
Fri Aug 19 23:58:19 PDT 2005
A way that has worked very well for me is to use the Sunrise and
Sunset scripts to block and unblock the lights. That way, I don't
have to test the daylight condition when a motion sensor detects
movement; the script is always the same. If it's daytime, the light
is blocked and if it's night the light comes on.
For me, this just seems to be simpler and it's only two places to go
to set up the blocks/unblocks.
Phil
At 9:11 PM -0500 8/18/05, Randal T Long wrote:
>Hi Charlie,
>I am not sure but you might try reversing the script language.
>Like -
>>
>>if "Sunset" is false then
>> block "Driveway Spotlight"
>>end if
>
>
>On Aug 18, 2005, at 8:05 PM, Charlie Pendleton wrote:
>
>>I created a pseudo called "Sunset" that I turn off and on with the
>>Sunset and Sunrise scripts.
>>
>>The on scripts for the motion detector has:
>>
>>if "Sunset" is true then
>> unblock "Driveway Spotlight"
>>end if
>>
>>then the "Try" routine comes next.
>>
>>The if statement doesn't do boo. I see the "on" for the motion
>>enter the DB, but the blocked spotlight does not unblock. If I
>>comment out the "if" portion the unblock works. What am i doing
>>wrong? Should I be incorporating the "if" within the "try" routine?
More information about the XTensionlist
mailing list