Make things happen at sunrise/sunset
This page was written by Pluto and imported with their permission when LinuxMCE branched off in February, 2007. In general any information should apply to LinuxMCE. However, this page should be edited to reflect changes to LinuxMCE and remove old references to Pluto. |
How to set it up
Needs to know your longitude and latitude in order to fire the sunrise and sunset events. In Pluto admin, choose a wizard, basic info, installation. Our database has the longitude and latitude information for approximately 30,000 cities worldwide. Just choose your city from the list. In the unlikely event that you are not near any of those cities in the list, then you'll need to provide your longitude and latitude yourself. Note that any changes you make on that page will take effect after the next reboot or quick reload router.
At each sunrise and sunset Pluto will fire a sunrise/sunset event. In Pluto admin, choose a wizard, events, respond to events. Type or logical description for your event, such as "turn on lights at sunrise". Then choose sunrise or sunset from the list, click add, and then specify the command you want to be executed. Note that you can create as many event handlers for each type of event is you want. So you can have "turn on lights at sunrise" and "start watering lawn at sunrise" which both respond to the same event.
How to use it
Programmer's guide
The logic is in Event_Plugin.