more G-Labs products

Author Topic: Scheduled On/Off: new error and stops working Rev 525  (Read 2150 times)

June 27, 2016, 03:00:01 AM
Read 2150 times

HGexperimenter

  • **
  • Information
  • Jr. Member
  • Posts: 42
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


June 27, 2016, 09:53:55 PM
Reply #1

wouter

  • *
  • Information
  • Newbie
  • Posts: 10
On rev 525 my scheduling options are gone. Jkutils solar altitude is gone and there are no scheduling options at my modules

June 28, 2016, 10:40:36 AM
Reply #2

Gene

  • *****
  • Information
  • Administrator
  • Posts: 1472
  • Tangible is the future!
    • Yet Another Programmer

July 01, 2016, 10:28:16 PM
Reply #3

HGexperimenter

  • **
  • Information
  • Jr. Member
  • Posts: 42
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?


July 02, 2016, 08:16:50 PM
Reply #4

Gene

  • *****
  • Information
  • Administrator
  • Posts: 1472
  • Tangible is the future!
    • Yet Another Programmer
Well docs are still a work in progress... I did put some info here:

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

Suggestions are welcome.


July 06, 2016, 12:57:33 AM
Reply #5

HGexperimenter

  • **
  • Information
  • Jr. Member
  • Posts: 42
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?


« Last Edit: July 13, 2016, 05:46:17 AM by HGexperimenter »

July 14, 2016, 05:03:05 PM
Reply #6

bkenobi

  • *****
  • Information
  • Global Moderator
  • Posts: 1525
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

August 23, 2016, 07:36:22 PM
Reply #7

danlewis

  • *
  • Information
  • Newbie
  • Posts: 4
Use @SolarTimes.Sunrise and @SolarTimes.Sunset.

August 24, 2016, 02:05:39 AM
Reply #8

HGexperimenter

  • **
  • Information
  • Jr. Member
  • Posts: 42
 @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!