Page 1 of 1

System variables "dark" and "isdaylight"

PostPosted: Fri Dec 20, 2019 8:44 pm
by mintzps
I am trying to find how the system variables "dark" and "isdaylight" are defined. Is there a place in the documentation where this is described? When does "dark" become true?

Re: System variables "dark" and "isdaylight"

PostPosted: Sat Dec 21, 2019 1:55 am
by autolog
It is determined by the sunrise / sunset times at your location.

At sunrise, it becomes isdaylight and at sunset it becomes dark.

Check the Sunset & Sunrise tab in the main Indigo Preferences... menu. :)

Re: System variables "dark" and "isdaylight"

PostPosted: Sat Dec 21, 2019 7:42 am
by FlyingDiver
"isDaylight" is a system variable. "dark" is not.

"isDaylight" is set as autolog says. Based on your location.

Re: System variables "dark" and "isdaylight"

PostPosted: Sat Dec 21, 2019 4:03 pm
by mintzps
"dark" is a "condition" that can be used in the logic. Does "dark" become true at sunset?

Re: System variables "dark" and "isdaylight"

PostPosted: Sat Dec 21, 2019 4:05 pm
by FlyingDiver
mintzps wrote:
"dark" is a "condition" that can be used in the logic. Does "dark" become true at sunset?


I forgot about the condition. Yes, the condition changes when the variable changes, at sunset.