Hi guys,
I need your help for testing new HG r339 which is available from:
https://sourceforge.net/projects/homegenie/files/testing/Basically HG has now got a Scheduler.
Sunrise/Sunet program has been deprecated because now there is another way to achieve that using features from "Scheduled ON/OFF" program.
See attacched pictures.
In the scheduler can be added a schedule by using standard cron expressions.
Anyway there is also a simple page for generating them:
http://www.generateit.net/cron-job/ .
Optionally can be specified a program to execute, but this is not always needed.
A cron expression can contain comma separated values which stand for "OR" operator. Using a semicolon will stand for "AND".
For example, in the picture we see:
@Sunrise,00 23 * * *;@Weekdays
this means every week day "at sunrise" OR at 23.00 .
If the light is turned on after 23, it will be turned off anyway after sunrise.
See the "Scheduled ON/OFF" and "Weather Underground" source code for an example about using the SchedulerHelper in a program.
The weather underground program will take care of updating "Sunrise" and "Sunset" values in the system scheduler.
Cheers,
g.