PDA

View Full Version : Scheduler UI Beta Release



JohnHind
March 24th, 2006, 01:55 AM
SCHEDULER UI - Beta 3

This is now in the latest Girder development builds from Girder 4.0.4.4 onward.

Purpose: To make Girder Schedulers much easier to use compared to the current Actions or Lua. Girder Schedulers generate Girder Events at specified times and dates in the future.

Use: Bring up the settings/preferences dialog and click on "Scheduler" on the "Automation" task box. There are four tabs, "Event Scheduler" is used to create, view and edit schedules and "Trigger List" displays the time and date of the last and/or the next occurrence of each event. "Sunlight Events" and "Light Zones" have been moved from the old "Ambient Lighting" Automation Icon and renamed for brevity.

To add a scheduler: On the "Event Scheduler" Tab, Type the desired eventstring and press "Add Scheduler". Highlight the new schedule and press "Tasks". Use the dropdown at top left of the lower panel to select the type of task you want to add. Fill in the desired settings and press "Add". Note that "Not Before" and "Not After" are *constraints* which are added to tasks, while all the others in the dropdown are Tasks which are added to Schedules.

To start the schedule: Highlight the schedule and press the "Start" button.

To view the schedule trigger times: Switch to the "Trigger List" tab and press the "Date and Time" button. To sort by eventstring rather than date and time, press the "Eventstring" button. The list shows past triggers (marked with "P") that have happened during the current Girder session, and future triggers (marked with "F").

Bugs: Should you see any problems, please bring up the Lua Interactive Console and report the error messages.

Beta 2 Changes: Persistence is now automatic.
The events are now generated on device 10031 which enables the eventstrings you define to be picked from the Event dropdown - The device shows up as "Lua: Scheduler". By default, only these events are now shown on the Event Scheduler tab, but you can use the "Show All" tickbox to show other schedulers as before.
The persistence format is changed, so you'll have to re-enter any schedulers persisted from B1. Importing schedules from other apps is supported by running all Lua files in the "schedulers" directory on startup. These can return a string, either containing XML directly or the full name and path of another file containing the XML. Examine the persistence files created by the UI to get the XML format.
New functions scheduler.LoadFromXML([string]) creates a scheduler from XML string or file and scheduler.SaveToXML([sched],[string]) saves a scheduler to an XML file (the first parameter can be a scheduler object or ID and the second is the file path and name.

Promixis
March 24th, 2006, 02:51 AM
So far, looks great. Between you and I, we have done a lot of doing stuff. :D

The bottom line of labels have no values associated with them on my computer.

JohnHind
March 24th, 2006, 03:59 AM
Yea, Ron's wonderful Dynamic UI does rather encourage the doing of stuff. 8)

As for the labels, try changing the task type in the drop-down. Perhaps it was lazy of me not to hide the labels as well as the controls! I really wanted to disable the controls rather than hide them, but the disabled state was not sufficiently visually distinct, at least with the silver XP skin.

danward79
March 26th, 2006, 12:47 PM
Hey John,

I had a quick look at your UI, it looks excellent. I hope to have a further play tomorrow, if not when I get back.

quixote
March 31st, 2006, 02:39 PM
I like this a lot.
Forgive me if I'm wrong, though, but the scheduled events that happen daily do not appear in the trigger list. I can see my "night mode" which occurs at 11pm every night in the schedule list, but not the trigger list.

JohnHind
April 3rd, 2006, 02:51 AM
Thanks Q (and Dan).

I cannot duplicate the daily task issue - I tried adding a daily task for 23:00 and it showed up in the trigger list fine. Note that both lists require manually updating for any external changes - trigger list updates when you press either of the sort buttons and schedule list updates when you press the Tasks/Schedules button. Also note that the trigger list only shows the next occurrance of a task, not any subsequent repeats.

quixote
April 3rd, 2006, 04:11 AM
I will eliminate my old scheduler action for the "Night Mode" and create it with the new scheduler. I was just a bit confused because all of my other events showed up. No big deal, just thought I'd mention it an err on the side of caution. Thanks.

JohnHind
April 7th, 2006, 07:42 AM
Beta 2 now available - see the head post. This is now feature complete and contains a number of improvements and bug fixes.

danward79
April 14th, 2006, 12:44 AM
FYI - I have now moved all of my schedules that I previously had as lua scripts and girder actions for simple ones to your ui.

Will feedback if I encounter any issues

danward79
April 15th, 2006, 04:00 AM
Hi,

I have a problem! The schedulers do not seem to be loading on girder restart or reset.

I have tried it a few times, all the lua ones are showing but not the ones I moved to the scheduler ui.

I have attached a zip with all the scheduler files in it.

One think I noticed is that I have 2 folders, Schedulers and schedules any difference? the latter is empty.

danward79
April 21st, 2006, 08:08 AM
Hi John,

Have you managed to have a look at this? Any thoughts?

JohnHind
April 24th, 2006, 02:03 AM
You are right - there was a bad bug that slipped through. :oops:

The attached fix should work (applies to Girder 4.0.4.4 - 4.0.4.6).

The "Schedules" directory is a hangover from the beta version of the scheduler - it is not created for fresh installs and can be safely deleted.

danward79
April 24th, 2006, 08:36 AM
Thanks Jon,

They all show up now. Will let you know if I find anything else.

bigbus01
June 24th, 2006, 05:30 PM
John,

I just upgraded (from a few versions ago) and have just replaced all of my schedules to the new version. None of them seem to trigger my events. I get the red flash of the icon but nothing happens. I went through the help and I think I did it right, I just don't get the triggers.

Any ideas? Should I do a fresh install?

Bigbus

bigbus01
June 24th, 2006, 05:47 PM
John,

Fixed it. I had all of the events as RAW: Scheduler and changed them to lua: scheduler and it worked.

Bigbus