Comfort Automation/ Security System Forums

Full Version: Sunset/Sunrise Seting Flag
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
On a System Restart I wanted to query the Sunrise/Sunset Times to the current time and set a flag which would be used in other responses to determine if it is day or night.

How might this be accomplished? 

Comfort has a Night Time Flag that is automatically set at Sunset and cleared at Sunrise, so you do not need to manipulate flags

In the Response you can check the Night Time Flag eg

If NightTime <> 0 Then
    Do Response x
Else
    Do Response y
End If
Thanks, exactly what I was after.