Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Sunset/Sunrise Seting Flag
#1
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? 

Reply

#2
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
Reply

#3
Thanks, exactly what I was after.
Reply



Forum Jump:


Users browsing this thread:
1 Guest(s)

Powered By MyBB, © 2002-2026 Melroy van den Berg.