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.
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.