Astronomical timer
Astronomical timer setup instructions
The astronomical timer creates schedules and routines based on sunrise and sunset. For example, you may need a schedule that turns outdoor lighting on at sunset and off at dawn.
A simple photocell switch can do this, but it has several drawbacks:
- the light sensor's condition must be monitored (if it becomes dirty, the light stays on during the day)
- stray light on the sensor can prevent the lighting from turning on when required
- the light cannot be turned on earlier\later relative to the light level
The astronomical timer has none of these drawbacks.
The following steps show how to configure this example.
iRidi Server is required to use the astronomical timer.
- The astronomical timer does not require an Internet connection.
Project setup in iRidi pro
- Create a server project or open an existing one.
- In the project settings, enter your coordinates as decimal values in the Latitude and Longitude fields and click Save .

- Add and configure the equipment you will use.
- In the SCHEDULE (schedule setup) section, create a schedule for the lighting devices. Set the event start to sunset (Sunset) and the event finish to sunrise (Sunrise).

- In the ROUTINE section, create rules:
Rule 1:
WHEN → Event start
You can also trigger an event at the required angle of the sun relative to the horizon. To do this, use the system token SolarAtitude :

THEN → send a value to the device channel to turn it on

Rule 2:
WHEN → Event finish
THEN → send a value to the device channel to turn it off
BUT ONLY IF → the device is currently on (Feedback == 1)

Configuration is complete. The server automatically calculates sunrise and sunset times based on your location.