Difference between revisions of "JavaScript Callback Functions API"
Jump to navigation
Jump to search
Line 9: | Line 9: | ||
'''Parameters:''' | '''Parameters:''' | ||
* day: boolean - true at sunrise, false at sunset. | * day: boolean - true at sunrise, false at sunset. | ||
+ | |||
=== haActiveEvent(active) === | === haActiveEvent(active) === | ||
+ | |||
+ | Triggered by the change of state of an HSYCO server in a master/slave high availability configuration. | ||
+ | |||
+ | '''Parameters:''' | ||
+ | * active: boolean - true if the server is active, false if not active. | ||
+ | |||
=== PowerEvent === | === PowerEvent === |
Revision as of 18:37, 30 January 2014
Contents
Callback Functions
System Functions
DaylightEvent(day)
Called at sunrise and sunset, according to the latitude and longitude values set in hsyco.ini, and the optional SunriseOffsetMinutes and SunsetOffsetMinutes parameters.
Parameters:
- day: boolean - true at sunrise, false at sunset.
haActiveEvent(active)
Triggered by the change of state of an HSYCO server in a master/slave high availability configuration.
Parameters:
- active: boolean - true if the server is active, false if not active.