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.
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
Re: Scheduler plugin
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!
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
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
New web design....
My released plugins
https://drive.google.com/drive/folders/ ... y01eVBKeHM
https://drive.google.com/drive/folders/ ... y01eVBKeHM
Re: Scheduler plugin
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?
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
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....
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....
My released plugins
https://drive.google.com/drive/folders/ ... y01eVBKeHM
https://drive.google.com/drive/folders/ ... y01eVBKeHM
Re: Scheduler plugin
I installed it, and it hasn't happened since. Thanks for this extremely quick support!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....
-
krambriw
- Plugin Developer
- Posts: 2570
- Joined: Sat Jun 30, 2007 2:51 pm
- Location: Stockholm, Sweden
- Contact:
Re: Scheduler plugin
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
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
My released plugins
https://drive.google.com/drive/folders/ ... y01eVBKeHM
https://drive.google.com/drive/folders/ ... y01eVBKeHM
-
krambriw
- Plugin Developer
- Posts: 2570
- Joined: Sat Jun 30, 2007 2:51 pm
- Location: Stockholm, Sweden
- Contact:
Re: Scheduler plugin
EventGhost 0.4.0 update
I have updated the plugin with the mandatory GUID entry
I have updated the plugin with the mandatory GUID entry
My released plugins
https://drive.google.com/drive/folders/ ... y01eVBKeHM
https://drive.google.com/drive/folders/ ... y01eVBKeHM
Re: Scheduler
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 !
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.
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
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
New version in the first post. Upgrade should not cause any problems, just unzip and replace & restart EG
Best regards, Walter
My released plugins
https://drive.google.com/drive/folders/ ... y01eVBKeHM
https://drive.google.com/drive/folders/ ... y01eVBKeHM
Re: Scheduler
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
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
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.
TCP Events : A Better Network Event Sender/Receiver Plugin.
The Network Event Sender/Receiver in C#
Get events in EG from Google Calendar.
Re: Scheduler
yeah ok that's great
can someone walk me through that process please?
thanls
can someone walk me through that process please?
thanls
Re: Scheduler
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 !
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.
TCP Events : A Better Network Event Sender/Receiver Plugin.
The Network Event Sender/Receiver in C#
Get events in EG from Google Calendar.