Format for time code to add offset to sunrise

General HouseBot discussion. Any issues that don't fit into any of the other topics belong here.
Post Reply
tuggybear
Member
Posts: 9
Joined: Thu Jan 01, 2009 10:30 pm

Format for time code to add offset to sunrise

Post by tuggybear »

Trying to add an offset to sunrise/ sunset and having errors in script.

Thnks in advance
Richard Naninck
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

Post by Richard Naninck »

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"
Post Reply