OK Thanks.
So here is what I have now:
while (Program.IsEnabled)
{
var scheduleOff = "00,02 1,3 * * *"; // shut off lights that should be off at 1:00, 1:02 and 3:00 and 3:02
if (Scheduler.IsScheduling(scheduleOff))
{
Program.Notify("Reseting the House", "Now");
Program.ApiCall("HomeAutomation.X10/B/Control.AllLightsOff");
Program.ApiCall("HomeAutomation.X10/E/Control.AllLightsOff");
}
//return false;
var pause = (60 - DateTime.Now.Second); // dont keep repeating this over and over for the entire minute
Pause(pause);
};
The question I have is this: Some programs I see end with a Program.GoBackground() command... can you comment on what this does and when one needs to use it?
Thanks!