Page 2 of 4

Re: Scheduler plugin

Posted: Fri Apr 17, 2009 12:40 am
by wmatreje
Ok. I think I answered my own question. After looking at the script I saw:
if (trigTime > dt1
and dt1 != "0000"
and (trigTime < dt2
or dt2 == "0000")
):
bFlag = True

if bFlag:
for i in range(self.iNbrOfBurstsON):
eg.TriggerEvent(self.eventNameOn)
time.sleep(self.cmdDelay)

Which means, for every pass (read minute) through the code, while the current time is between dt1 (start time) and dt2 (end time), trigger the event. I merely have to set the same time in the plugin's Action Item Settings form for both ON and OFF, and only one event will be triggered.

Great! We're in business. This plugin is really neat now that i understand it. Thanks for creating it!

Re: Scheduler plugin

Posted: Sun May 03, 2009 10:50 am
by prostetnic
Same here as for here as for the suntracker files. The link to the last to versions are broken.

Re: Scheduler plugin

Posted: Sun May 03, 2009 7:40 pm
by krambriw
New web design....

16.04.2009_Scheduler.zip
(11.48 KiB) Downloaded 358 times

Re: Scheduler plugin

Posted: Thu Jul 16, 2009 9:43 pm
by manjh
I've been using scheduler now for some time, and today I get these error lines after a fresh start of EG:
23:40:01 Exception in thread Vloerverwarming:
23:40:01 Traceback (most recent call last):
23:40:01 File "threading.pyc", line 522, in __bootstrap_inner
23:40:01 File "C:\Program Files\EventGhost\plugins\Scheduler\__init__.py", line 342, in run
23:40:01 File "C:\Program Files\EventGhost\plugins\Scheduler\__init__.py", line 198, in GetDayOfWeek
23:40:01 AttributeError: _strptime_time
23:40:01
Using EG 3.7.851, in a WinXP system.
What can be wrong?

Re: Scheduler plugin

Posted: Fri Jul 17, 2009 5:45 am
by krambriw
Something goes wrong when checking for the current day of the week

I have also noticed this on very rare occasions and thought it was something I caused myself (most of the time when I played with EG configurations and added some new plug-in or so)

Anyway, I'm looking for another way to check the current day of the week using the python built-in calendar module instead

Hope to have a new version a bit later today (will also affect the SunTracker that I will update accordingly)

Best regards, Walter




New updated version. It works here for me, lets hope....
17.07.2009_Scheduler.zip
(11.5 KiB) Downloaded 421 times

Re: Scheduler plugin

Posted: Sun Jul 19, 2009 9:41 am
by manjh
krambriw wrote:Something goes wrong when checking for the current day of the week

I have also noticed this on very rare occasions and thought it was something I caused myself (most of the time when I played with EG configurations and added some new plug-in or so)

Anyway, I'm looking for another way to check the current day of the week using the python built-in calendar module instead

Hope to have a new version a bit later today (will also affect the SunTracker that I will update accordingly)

Best regards, Walter




New updated version. It works here for me, lets hope....
17.07.2009_Scheduler.zip
I installed it, and it hasn't happened since. Thanks for this extremely quick support!

Re: Scheduler plugin

Posted: Fri Dec 04, 2009 11:17 am
by krambriw
I have updated the Scheduler with a small modification to how the threads are executed

The modification to the thread execution was made because I often had problems when multiple threads was hitting the same hardware device (in this case the USB-UIRT)

I therefore introduced a random delay between the thread executions. This did not solve the problem completely but it improved

To install, close EG, just copy the file in the zip to the Scheduler folder. then re-start EG again


Best regards, Walter
__init__.zip
(9.87 KiB) Downloaded 359 times

Re: Scheduler plugin

Posted: Mon Dec 21, 2009 10:20 am
by krambriw
EventGhost 0.4.0 update

I have updated the plugin with the mandatory GUID entry

Re: Scheduler

Posted: Mon Feb 15, 2010 1:56 pm
by miljbee
Hello,

I have a request !

let's say we are on monday, and that the first entry of that day is at 10am and fires an event called sched1_ON.
I also have an entry scheduled on Sunday at 11pm which fires the sched1_OFF event.

If I start eg at 9am on Monday, I would like to get immediately the sched1_OFF event.

Do you think you could add this feature ?

Otherwise, the plugin is great. I can control all my electric heaters with it. Thanks !

Re: Scheduler

Posted: Thu Feb 18, 2010 3:33 pm
by krambriw
Working on it...DONE!

New version in the first post. Upgrade should not cause any problems, just unzip and replace & restart EG

Best regards, Walter

Re: Scheduler

Posted: Sat Feb 20, 2010 11:50 am
by krambriw
OK Updated

Re: Scheduler

Posted: Thu Mar 18, 2010 2:22 am
by ibseventh
Hello All
I need urgent help with this:
We have EG installed and we defined an action to transmit a specific remote control comand and it works great manually. Now we tried out best to create a running schedule to have that command issued every 5 minutes, and could not figure out how to do it with EG, UNtil we founf the sceduler plugin. we isntalled it succesfully but we still cannot figure out how to schedule this task to run every 5 minutes, we cant even add scheduler under a macro
can someone please list out a step by step outline of how to achieve this/
Thank you

Re: Scheduler

Posted: Thu Mar 18, 2010 8:28 am
by miljbee
use the timer plugin instead !

Re: Scheduler

Posted: Thu Mar 18, 2010 9:43 am
by ibseventh
yeah ok that's great
can someone walk me through that process please?
thanls

Re: Scheduler

Posted: Thu Mar 18, 2010 9:54 am
by miljbee
Add the timer plugin in the autostart macro
Add a timer action in the autostart macro that generates an event every 5 minutes forever
Right clic this new action and execute
Create a new macro
Add the action you want to repeat every 5 minutes in this new macro
wait for the event generated by the timer plugin. It will appear in the log frame
Drag/drop this event to your new macro

that's all !