Trying to add an offset to sunrise/ sunset and having errors in script.
Thnks in advance
Format for time code to add offset to sunrise
-
- HouseBot Guru Extraordinaire
- Posts: 1121
- Joined: Tue Sep 28, 2004 7:49 am
- Location: The Netherlands
Re: Format for time code to add offset to sunrise
Code: Select all
Option Explicit
Dim OffsetTime
Dim CloseTime
OffsetTime = GetPropertyValue ("Your Device.Offset Time")
SetPropertyValue "Your Device.Close Time", "SUNSET_DATE_AND_TIME + Days=0, Hours=00, Minutes=" + OffsetTime + ", Seconds=00"