Notice: This forum has been recovered from an old backup, so some content, links, and dates may be outdated. The forum is currently read-only while we restore sign-in and registration functionality. Details

If you find this forum valuable and would like to help keep it online, donations to help cover hosting and domain costs are greatly appreciated, but never expected. You can support the forum through Buy Me a Coffee or Ko-fi. Thank you for helping preserve the EventGhost community.

SchedulGhost

Questions and comments specific to a particular plugin should go here.
Post Reply
kkl
Experienced User
Posts: 317
Joined: Wed May 04, 2011 9:32 pm

Re: SchedulGhost

Post 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:
Capture2.PNG
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:
Image

Thanks again Pako for creating this plug-in and helping me understand its use.
Sem;colon
Plugin Developer
Posts: 625
Joined: Sat Feb 18, 2012 10:51 am
Location: Germany

Re: SchedulGhost

Post 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.
If you like my work, Image me a drink :wink:
User avatar
Pako
Plugin Developer
Posts: 2294
Joined: Sat Nov 11, 2006 1:31 pm
Location: Czech Republic
Contact:

Re: SchedulGhost

Post 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
You know flattr ? You can Image
Sem;colon
Plugin Developer
Posts: 625
Joined: Sat Feb 18, 2012 10:51 am
Location: Germany

Re: SchedulGhost

Post by Sem;colon »

My English is not better, I guess :)
Let's show it to you with pictures!
1.PNG
2.PNG
3.PNG
3.PNG (1.32 KiB) Viewed 8425 times
If you like my work, Image me a drink :wink:
User avatar
Pako
Plugin Developer
Posts: 2294
Joined: Sat Nov 11, 2006 1:31 pm
Location: Czech Republic
Contact:

Re: SchedulGhost

Post 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 ... :oops:
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.
You know flattr ? You can Image
Navi
Posts: 11
Joined: Wed Mar 19, 2014 11:32 pm

Re: SchedulGhost

Post 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...
User avatar
Pako
Plugin Developer
Posts: 2294
Joined: Sat Nov 11, 2006 1:31 pm
Location: Czech Republic
Contact:

Re: SchedulGhost

Post 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
You know flattr ? You can Image
krambriw
Plugin Developer
Posts: 2570
Joined: Sat Jun 30, 2007 2:51 pm
Location: Stockholm, Sweden
Contact:

Re: SchedulGhost

Post 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:

Code: Select all

eg.scheduler.__dict__.items()
It will give you a list of currently scheduled tasks in the eg.scheduler

BR
User avatar
Pako
Plugin Developer
Posts: 2294
Joined: Sat Nov 11, 2006 1:31 pm
Location: Czech Republic
Contact:

Re: SchedulGhost

Post 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
You know flattr ? You can Image
User avatar
Pako
Plugin Developer
Posts: 2294
Joined: Sat Nov 11, 2006 1:31 pm
Location: Czech Republic
Contact:

Re: SchedulGhost

Post by Pako »

New version (0.1.9) released.
Added option to abort egg-timer by name.

Pako
You know flattr ? You can Image
Sem;colon
Plugin Developer
Posts: 625
Joined: Sat Feb 18, 2012 10:51 am
Location: Germany

Re: SchedulGhost

Post 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.
If you like my work, Image me a drink :wink:
User avatar
Pako
Plugin Developer
Posts: 2294
Joined: Sat Nov 11, 2006 1:31 pm
Location: Czech Republic
Contact:

Re: SchedulGhost

Post by Pako »

Try the new version 0.1.10.
Added action Force to run schedule immediately.

Pako
You know flattr ? You can Image
Sem;colon
Plugin Developer
Posts: 625
Joined: Sat Feb 18, 2012 10:51 am
Location: Germany

Re: SchedulGhost

Post 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! :D
If you like my work, Image me a drink :wink:
TRIROG1
Posts: 45
Joined: Fri Aug 08, 2014 10:07 pm

Re: SchedulGhost

Post 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!
Sem;colon
Plugin Developer
Posts: 625
Joined: Sat Feb 18, 2012 10:51 am
Location: Germany

Re: SchedulGhost

Post 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
If you like my work, Image me a drink :wink:
Post Reply