Sunset

Top  Previous  Next

clip0029

The ‘Out’ output is set to True when the current time on the controller is passed the calculated time for sunset + the 'Offset' value and before the calculated time for sunrise. The 'Offset' is in minutes and can be a positive number (i.e so many minutes after sunset) or can be a negative number (i.e. so many minutes before sunset). Note that if the 'Offset' is long enough to get passed the calculated sunrise time then the output will be set to False.

The RealTimeClock must be properly configured with Time Zone and geo location using a RealTimeClock programming block. If not the block output will always be False.

 

Inputs



 

 

Slots

Type

Default

Description

 

Offset

Integer

0 minutes

Offset can be a positive or negative number (minutes)

 

Enable

Digital

True

When True, enables the block calculation.

When False, the output ‘Out’ will be set to False.

 

Outputs


 

Slots

Type

Description

 

Out

Digital

Will be set to True when the current time on the controller is passed the calculated time for sunset plus the Offset and before sunrise.