Mark F
February 1st, 2005, 08:26 AM
As some of you may have noticed, I have not been able to find time to devote to doing things with Girder. Last year, Mike C and I started collaborating on an event scheduler based on the timers in WinLUAEx, some event processing in LUAEvents, lots of LUA code (some stolen from other posts here :) ) and the IE object for the UI. (This requires Girder version 3.3.x to get the UI to work)
I am attaching the latest version of the code and UI here to allow others to test it, provide feedback and, possibly, add extra stuff to this project. There is no documentation but there are "simple" examples in the included .GML.
What is it?
Windows includes a task scheduler that lets you start a task at a specific time and date in the future. Some people use this to schedule the Event.exe program to cause a Girder Event at a specific time and date. This code causes a Girder Event at a specific time and date but with a UI that is defined inside Girder itself.
Since this is written in LUA, all the interfaces for adding and removing events can be called by other LUA code in Girder.
What is missing?
I haven't completed the save/restore functionality for events other than the Sunrise/Sunset so every time you stop Girder, you lose all the other scheduled events. There are routines provided that access a specifc location in the registry. This should allow all the extensions to use the same main node of the tree while providing the capability to build sub-nodes.
There is no documentation. Maybe the UI is self-explainitory? Probably not. :(
Installation
Download the .zip file. Unzip it (maintaining paths/subdirectories!!!!) into the same directory that contains Girder.exe. All the files will be placed in the /lua directory and deeper subdirectories. If you don't have them, download and enable the WinLUAEx and LUAEvents plugins. When you next start Girder, the scheduler will load itself and the extensions.
When the Sunrise/Sunset extension first runs, it will ask for you to provide a lattitude and longitude. If you don't know your lattitude and longitude, press cancel. If you know your lattitude and longitude, enter it, press apply and it will be saved in the registry for next time. You can use GPS coordinates instead of the single number, if you know those.
I hope someone will pick this up and help move it forward.
I am attaching the latest version of the code and UI here to allow others to test it, provide feedback and, possibly, add extra stuff to this project. There is no documentation but there are "simple" examples in the included .GML.
What is it?
Windows includes a task scheduler that lets you start a task at a specific time and date in the future. Some people use this to schedule the Event.exe program to cause a Girder Event at a specific time and date. This code causes a Girder Event at a specific time and date but with a UI that is defined inside Girder itself.
Since this is written in LUA, all the interfaces for adding and removing events can be called by other LUA code in Girder.
What is missing?
I haven't completed the save/restore functionality for events other than the Sunrise/Sunset so every time you stop Girder, you lose all the other scheduled events. There are routines provided that access a specifc location in the registry. This should allow all the extensions to use the same main node of the tree while providing the capability to build sub-nodes.
There is no documentation. Maybe the UI is self-explainitory? Probably not. :(
Installation
Download the .zip file. Unzip it (maintaining paths/subdirectories!!!!) into the same directory that contains Girder.exe. All the files will be placed in the /lua directory and deeper subdirectories. If you don't have them, download and enable the WinLUAEx and LUAEvents plugins. When you next start Girder, the scheduler will load itself and the extensions.
When the Sunrise/Sunset extension first runs, it will ask for you to provide a lattitude and longitude. If you don't know your lattitude and longitude, press cancel. If you know your lattitude and longitude, enter it, press apply and it will be saved in the registry for next time. You can use GPS coordinates instead of the single number, if you know those.
I hope someone will pick this up and help move it forward.