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.

Scheduler

Questions and comments specific to a particular plugin should go here.
wmatreje
Posts: 2
Joined: Thu Apr 16, 2009 6:17 pm

Re: Scheduler plugin

Post 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!
prostetnic
Posts: 28
Joined: Fri Apr 18, 2008 6:52 pm
Location: Sweden

Re: Scheduler plugin

Post by prostetnic »

Same here as for here as for the suntracker files. The link to the last to versions are broken.
krambriw
Plugin Developer
Posts: 2570
Joined: Sat Jun 30, 2007 2:51 pm
Location: Stockholm, Sweden
Contact:

Re: Scheduler plugin

Post by krambriw »

New web design....

16.04.2009_Scheduler.zip
(11.48 KiB) Downloaded 357 times
manjh
Posts: 41
Joined: Thu Mar 12, 2009 11:14 am

Re: Scheduler plugin

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

Re: Scheduler plugin

Post 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 420 times
manjh
Posts: 41
Joined: Thu Mar 12, 2009 11:14 am

Re: Scheduler plugin

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

Re: Scheduler plugin

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

Re: Scheduler plugin

Post by krambriw »

EventGhost 0.4.0 update

I have updated the plugin with the mandatory GUID entry
miljbee
Experienced User
Posts: 146
Joined: Fri Mar 27, 2009 1:29 pm
Location: Orl├®ans, France

Re: Scheduler

Post 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 !
miljbee
TCP Events : A Better Network Event Sender/Receiver Plugin.
The Network Event Sender/Receiver in C#
Get events in EG from Google Calendar.
krambriw
Plugin Developer
Posts: 2570
Joined: Sat Jun 30, 2007 2:51 pm
Location: Stockholm, Sweden
Contact:

Re: Scheduler

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

Re: Scheduler

Post by krambriw »

OK Updated
ibseventh
Posts: 3
Joined: Thu Mar 18, 2010 1:45 am

Re: Scheduler

Post 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
miljbee
Experienced User
Posts: 146
Joined: Fri Mar 27, 2009 1:29 pm
Location: Orl├®ans, France

Re: Scheduler

Post by miljbee »

use the timer plugin instead !
miljbee
TCP Events : A Better Network Event Sender/Receiver Plugin.
The Network Event Sender/Receiver in C#
Get events in EG from Google Calendar.
ibseventh
Posts: 3
Joined: Thu Mar 18, 2010 1:45 am

Re: Scheduler

Post by ibseventh »

yeah ok that's great
can someone walk me through that process please?
thanls
miljbee
Experienced User
Posts: 146
Joined: Fri Mar 27, 2009 1:29 pm
Location: Orl├®ans, France

Re: Scheduler

Post 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 !
miljbee
TCP Events : A Better Network Event Sender/Receiver Plugin.
The Network Event Sender/Receiver in C#
Get events in EG from Google Calendar.
Post Reply