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
it still wont work
I can't manage to move it from the loggger to the configuration area of the macro
I can't manage to move it from the loggger to the configuration area of the macro
-
krambriw
- Plugin Developer
- Posts: 2570
- Joined: Sat Jun 30, 2007 2:51 pm
- Location: Stockholm, Sweden
- Contact:
Re: Scheduler
This is a typical configuration for a timer action that works for me in my test set-up
You need to check carefully that it is really running
Once the event appears in the log, copy & paste it (or drag and drop it with left mouse button) to the macro you decide
Next time the timer event fires, it will trigger the macro and the actions inside
Next time the timer event fires, it will trigger the macro and the actions inside
My released plugins
https://drive.google.com/drive/folders/ ... y01eVBKeHM
https://drive.google.com/drive/folders/ ... y01eVBKeHM
Re: Scheduler
Can it awake the pc from sleep mode?
Re: Scheduler
Hello, I am now using this plugin for time based control of lighting and heating. Next thing is:
How can I enable vacation mode from Python Script?
Hakon
How can I enable vacation mode from Python Script?
Hakon
-
krambriw
- Plugin Developer
- Posts: 2570
- Joined: Sat Jun 30, 2007 2:51 pm
- Location: Stockholm, Sweden
- Contact:
Re: Scheduler
Right now you can't but I am working on an update that allow this. When finished with this I will publish a version here.
Then you could do as follows from a python script to toggle the vacation mode on/off:
Then you could do as follows from a python script to toggle the vacation mode on/off:
Code: Select all
eg.plugins.Scheduler.plugin.vacation_m = TrueCode: Select all
eg.plugins.Scheduler.plugin.vacation_m = FalseMy 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
Here is an updated version that works as described above when I test it. Please note that when you change the state of the vacation mode, it is a runtime function and it is not being saved persistant. It will work as long as EG is running. If you restart EG or your PC, it will default back to the mode it is configured to.
Best R Walter
Best R Walter
My released plugins
https://drive.google.com/drive/folders/ ... y01eVBKeHM
https://drive.google.com/drive/folders/ ... y01eVBKeHM
Re: Scheduler
Thanks!
I'll test it right away (I did not see the reply before today
)
Hakon
Hakon
Re: Scheduler
Thankt you for your update. I have tested it now and if I print the variable after I change it I can confirm that it is changed, but...krambriw wrote:Here is an updated version that works as described above when I test it. Please note that when you change the state of the vacation mode, it is a runtime function and it is not being saved persistant. It will work as long as EG is running. If you restart EG or your PC, it will default back to the mode it is configured to.
Is it correct that the Scheduler plugin panel does not show the correct status of vacation mode using this method?
eg.plugins.Scheduler.plugin.vacation_m = True
print "Vacation mode:" , eg.plugins.Scheduler.plugin.vacation_m
Last edited by haklis on Fri Oct 19, 2012 1:56 pm, edited 1 time in total.
-
krambriw
- Plugin Developer
- Posts: 2570
- Joined: Sat Jun 30, 2007 2:51 pm
- Location: Stockholm, Sweden
- Contact:
Re: Scheduler
It can be discussed. This is done in this way, you can change the status in runtime but the basic configuration setting is not changed.Is it correct that the Scheduler plugin panel does not show the correct status of vacation mode using this method?
Best regards
My released plugins
https://drive.google.com/drive/folders/ ... y01eVBKeHM
https://drive.google.com/drive/folders/ ... y01eVBKeHM
Re: Scheduler
OK. Thanks for the quick response. I now use a NEXA wireless button next to our front door to turn on/off vacation mode. The intention is that if we are leaving the house on a Saturday morning and do not want heating and lights to be on like normal, we just press the button when we leave. When we arrive we turn it off to continue Saturday schedule.
Hakon
Hakon
-
krambriw
- Plugin Developer
- Posts: 2570
- Joined: Sat Jun 30, 2007 2:51 pm
- Location: Stockholm, Sweden
- Contact:
Re: Scheduler
Hi, the only concern could be if you would have a power failure while in the "opposite" mode. I will check if I can make it persistent so that it at least restarts with the same mode as it had before the power break.
Best regards,
Best regards,
My released plugins
https://drive.google.com/drive/folders/ ... y01eVBKeHM
https://drive.google.com/drive/folders/ ... y01eVBKeHM
Re: Scheduler
I have added this plugin now and it is running every minute, why?
Sync time is set to 30 min, whats does this mean?
EDIT: after i changed from default 30 min to 29 it works. It is sending event every 29 mins now.
Sync time is set to 30 min, whats does this mean?
EDIT: after i changed from default 30 min to 29 it works. It is sending event every 29 mins now.
-
krambriw
- Plugin Developer
- Posts: 2570
- Joined: Sat Jun 30, 2007 2:51 pm
- Location: Stockholm, Sweden
- Contact:
Re: Scheduler
It checks every minute if something shall be scheduled. What you see is just a test printed message (default loop info, this can easily be disabled via a checkbox)I have added this plugin now and it is running every minute, why?
It means that everything is set correctly to what has been defined. As example, suppose you have a lamp that is turned ON by the scheduler at 15.00 and will be scheduled OFF at 23.00. You would then expect that the lamp will be ON during this period. If someone now turns the lamp OFF manually, the scheduler will help to synchronize the state back to ON.Sync time is set to 30 min, whats does this mean?
Best regards, Walter
My released plugins
https://drive.google.com/drive/folders/ ... y01eVBKeHM
https://drive.google.com/drive/folders/ ... y01eVBKeHM
Re: Scheduler
If i erase the number in sync- intervall and press up I get red error text in EG.
I think it needs a number to increase or?
Is there anything to do about that?
I solved it by typing 6 and then press up key.
I think it needs a number to increase or?
Is there anything to do about that?
I solved it by typing 6 and then press up key.
-
krambriw
- Plugin Developer
- Posts: 2570
- Joined: Sat Jun 30, 2007 2:51 pm
- Location: Stockholm, Sweden
- Contact:
Re: Scheduler
I assume it would need a change in the EG class 'SpinNumCtrl.py' to handle that kind of exception. For the time, try to avoid deleting numbers, try to type over instead...11:47:02 Traceback (most recent call last) (1582):
11:47:02 File "C:\Program Files\EventGhost\eg\Classes\SpinNumCtrl.py", line 145, in OnChar
11:47:02 self.OnSpinUp(event)
11:47:02 File "C:\Program Files\EventGhost\eg\Classes\SpinNumCtrl.py", line 133, in OnSpinUp
11:47:02 value = self.numCtrl.GetValue() + self.increment
11:47:02 TypeError: unsupported operand type(s) for +: 'NoneType' and 'int'
Best regards, Walter
My released plugins
https://drive.google.com/drive/folders/ ... y01eVBKeHM
https://drive.google.com/drive/folders/ ... y01eVBKeHM