Page 6 of 12
Re: SchedulGhost
Posted: Sun Jan 12, 2014 5:05 pm
by kkl
Pako, thanks very much for taking the time to explain. It still took me a few minutes to realize what you were describing. The key point you made that I needed to understand is, "But you'll need one extra schedule." Create the periodic schedule, then add a second schedule that enables and disables the first one at specified times. To paraphrase the process for others, like me, who might need help with the concept:
1. Create a periodic schedule (no span for this one unless you want to trigger a start AND stop at the periodic times).
2. From the SchedulGhost macros that were created when the plug-in was installed, copy the "Enable schedule" and "Disable schedule" macros to a new folder.
3. Configure those macros to control your periodic schedule:
4.
Now create a second schedule in SchedulGhost. This one will be used to enable and disable the first schedule. In my scenario, where I wanted to start and stop at 0800 and 2300, the Start would be 08:00:00 and the Span would be 15:00:00 (HH:MM:SS). The "Start event suffix" will be used to generate an event to enable the first/periodic schedule at 0800 and the "Stop event suffix" to disable it at 2300, similar to Pako's screen cap:
Thanks again Pako for creating this plug-in and helping me understand its use.
Re: SchedulGhost
Posted: Fri Mar 07, 2014 7:53 pm
by Sem;colon
Just a little thing I noticed: In the documentation of schedule Type 3 in the Add schedule function the entry for "first, second, third... (Monday)" is missing.
Re: SchedulGhost
Posted: Sat Mar 08, 2014 6:43 am
by Pako
I'm sorry, but I did not understand it.
Can you please explain it in other words (with regard to my poor English) ?
Thanks, Pako
Re: SchedulGhost
Posted: Sat Mar 08, 2014 8:51 am
by Sem;colon
My English is not better, I guess

Let's show it to you with pictures!

- 3.PNG (1.32 KiB) Viewed 8429 times
Re: SchedulGhost
Posted: Sun Mar 09, 2014 7:47 am
by Pako
Yes, now I see it.
Of course you're right.
Perhaps I am a little excuses, that it was not me, who wrote this part.
The extended description of the action
AddSchedule I have taken over from
EventGhost4ever (see post of
Tue Aug 14, 2012 3:33 pm).
But the truth is that it was my duty to check it ...
In the next version I'll fix it. Thank you for reporting and visual explanation!
Pako
EDIT: The new (corrected) version 0.1.7 is available for download.
Re: SchedulGhost
Posted: Thu Mar 20, 2014 12:03 am
by Navi
is there a way to view all upcoming tasks added with eg.scheduler.AddTask or eg.scheduler.AddTaskAbsolute ?
They don't seem to show up in SchedulGhost...
Re: SchedulGhost
Posted: Thu Mar 20, 2014 7:26 am
by Pako
Navi wrote:is there a way to view all upcoming tasks added with eg.scheduler.AddTask or eg.scheduler.AddTaskAbsolute ?
They don't seem to show up in SchedulGhost...
It seems, that you're suggesting, that SchedulGhost plugin is a kind of frontend for eg.scheduler.
But it is not so!
The instance eg.scheduler is also used by many other plugins, and there's no reason (it is even undesirable) to SchedulGhost somehow interfering with it.
However, of course there is a way to view scheduled tasks:
Code: Select all
print eg.scheduler.__dict__['heap']
Pako
Re: SchedulGhost
Posted: Thu Mar 20, 2014 7:30 am
by krambriw
Dear Pako, I was just typing the below....
The eg.scheduler is a core functionality of EG itself. The SchedulGhost is a plugin that is using this core functionality (like many many other plugins do if they need to schedule certain things). Therefore you do not see eg.scheduler tasks in plugins unless the author of the plugin decides to make it that way. Normally it is enough if the plugin keeps track of tasks it has scheduled itself (so that it can cancel those if necessary like when the plugin is stopped or deleted).
However, if you would like to see what is currently in the eg.scheduler, I have tried this in a python script/command and in the python shell:
It will give you a list of currently scheduled tasks in the eg.scheduler
BR
Re: SchedulGhost
Posted: Thu Mar 20, 2014 9:10 am
by Pako
krambriw wrote:Dear Pako, I was just typing the below....
Dear Walter,
I see it.
Just four minutes after my post !
It is obvious that we have worked on it at the same time ...
Beautiful coincidence.
And I think that we actually wrote both the same thing, only in different words.
Pako
Re: SchedulGhost
Posted: Sat May 17, 2014 4:39 pm
by Pako
New version (0.1.9) released.
Added option to abort egg-timer by name.
Pako
Re: SchedulGhost
Posted: Thu Jun 05, 2014 7:56 pm
by Sem;colon
Hello Pako,
I use SchedulGhost a lot,it's working nicely and offers a great set of possibilities. However, I miss one little function with this plugin:
I need a possibility to trigger a schedule Immediately, regardless if it is enabled or disabled.
As far as I can see, that's not possible at the moment, the schedule can only be triggered if it is also active.
Re: SchedulGhost
Posted: Fri Jun 06, 2014 1:36 pm
by Pako
Try the new version 0.1.10.
Added action Force to run schedule immediately.
Pako
Re: SchedulGhost
Posted: Sat Jun 07, 2014 10:13 pm
by Sem;colon
Pako wrote:Try the new version 0.1.10.
Added action Force to run schedule immediately.
Pako
Cool! Thank you very much!

Re: SchedulGhost
Posted: Sat Aug 09, 2014 5:32 pm
by TRIROG1
Hi!
I can't seem to find a way to set and start an egg timer via python script - for example i would like to start an egg timer with value of 30 seconds.
Thanks!
Re: SchedulGhost
Posted: Sat Aug 09, 2014 10:21 pm
by Sem;colon
Hello TRIROG1,
why do you even want to use the egg timer with a script?
Take a look at "eg.scheduler", I guess that's what you're looking for
http://www.eventghost.org/docs/eg/eg.Scheduler.html