Sunrise

Top  Previous  Next

clip0028

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