HomeGenie Forum

Development => Bug reporting => Topic started by: HGexperimenter on June 27, 2016, 03:00:01 AM

Title: Scheduled On/Off: new error and stops working Rev 525
Post by: HGexperimenter on June 27, 2016, 03:00:01 AM
After starting, runs OK then this error:
Runtime.Error = "CR: Collection was modified; enumeration operation may not execute."

Nothing changed on my config other than the new revision from 5524 to r525

Title: Re: Scheduled On/Off: new error and stops working Rev 525
Post by: wouter on June 27, 2016, 09:53:55 PM
On rev 525 my scheduling options are gone. Jkutils solar altitude is gone and there are no scheduling options at my modules
Title: Re: Scheduled On/Off: new error and stops working Rev 525
Post by: Gene on June 28, 2016, 10:40:36 AM
Read this:

http://www.homegenie.it/forum/index.php?topic=1587.msg10073#msg10073 (http://www.homegenie.it/forum/index.php?topic=1587.msg10073#msg10073)

g.
Title: Re: Scheduled On/Off: new error and stops working Rev 525
Post by: HGexperimenter on July 01, 2016, 10:28:16 PM
Thanks Gene,
I stopped the Scheduler On/Off program and added a new event in the Scheduler.

Question: Can you please point me to the docs for the new scheduler?

Title: Re: Scheduled On/Off: new error and stops working Rev 525
Post by: Gene on July 02, 2016, 08:16:50 PM
Well docs are still a work in progress... I did put some info here:

http://genielabs.github.io/HomeGenie/scheduler.html (http://genielabs.github.io/HomeGenie/scheduler.html)

This only actually refers to how to write cron expressions (the new syntax).
But the new scheduler also have a powerful "wizard" that let you create time expressions using the mouse (see picture).
After you define what the schedule is, you can select the modules that will be affected by this schedule.
And finally you can enter a "Script" that will be executed at every occurrence of the schedule and that will be handling the previously selected modules.
The script use Javascript language and there are already a few examples included in the wizard.

I'll let you know when the documentation will be in a "readable" state. Also have a look at this:

http://genielabs.github.io/HomeGenie/walkthrough.html (http://genielabs.github.io/HomeGenie/walkthrough.html)

Suggestions are welcome.

Title: Re: Scheduled On/Off: new error and stops working Rev 525
Post by: HGexperimenter on July 06, 2016, 12:57:33 AM
Gene,

Just to be clear:
Should I stop the program (PID 501) "Solar Altitude" from running because it is inside the new Scheduler?

When I did my update the program was still there in the "Weather and Environment" group.

Thank you!  I very much appreciate the progress you are making!

(PS: I suppose I could look at the source code too  :)   )

*******************
Bump: Does anyone have information on Sunrise/Sunset with the new scheduler without (PID 501) "Solar Altitude" running?


Title: Re: Scheduled On/Off: new error and stops working Rev 525
Post by: bkenobi on July 14, 2016, 05:03:05 PM
I'm sticking with r519 for now as I know it's stable.  When I hear that the new scheduler is solid, I'll update.  My wife wasn't too pleased the last couple times I updated and grenaded the whole system.   :o
Title: Re: Scheduled On/Off: new error and stops working Rev 525
Post by: danlewis on August 23, 2016, 07:36:22 PM
Use @SolarTimes.Sunrise and @SolarTimes.Sunset.
Title: Re: Scheduled On/Off: new error and stops working Rev 525
Post by: HGexperimenter on August 24, 2016, 02:05:39 AM
 @SolarTimes.Sunrise and @SolarTimes.Sunset works.
No need for the old program (PID 501) "Solar Altitude" to run.

New scheduler:
Also the ability to create time math such as: "(@SolarTimes.Sunset +60)" is great!