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.
ibseventh
Posts: 3
Joined: Thu Mar 18, 2010 1:45 am

Re: Scheduler

Post by ibseventh »

it still wont work
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

Post by krambriw »

This is a typical configuration for a timer action that works for me in my test set-up
Image2.jpg
You need to check carefully that it is really running
Image3.jpg
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
Image5.jpg
bxr
Posts: 15
Joined: Sat Jul 21, 2012 2:56 am

Re: Scheduler

Post by bxr »

Can it awake the pc from sleep mode?
haklis
Posts: 6
Joined: Sat Oct 06, 2012 4:49 pm

Re: Scheduler

Post by haklis »

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

Re: Scheduler

Post by krambriw »

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:

Code: Select all

eg.plugins.Scheduler.plugin.vacation_m = True

Code: Select all

eg.plugins.Scheduler.plugin.vacation_m = False
krambriw
Plugin Developer
Posts: 2570
Joined: Sat Jun 30, 2007 2:51 pm
Location: Stockholm, Sweden
Contact:

Re: Scheduler

Post by krambriw »

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
__init__.py
(73.03 KiB) Downloaded 352 times
haklis
Posts: 6
Joined: Sat Oct 06, 2012 4:49 pm

Re: Scheduler

Post by haklis »

Thanks! :D I'll test it right away (I did not see the reply before today :oops: )
Hakon
haklis
Posts: 6
Joined: Sat Oct 06, 2012 4:49 pm

Re: Scheduler

Post by haklis »

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.
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...
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

Post by krambriw »

Is it correct that the Scheduler plugin panel does not show the correct status of vacation mode using this method?
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.

Best regards
haklis
Posts: 6
Joined: Sat Oct 06, 2012 4:49 pm

Re: Scheduler

Post by haklis »

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

Re: Scheduler

Post by krambriw »

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,
flopp
Posts: 17
Joined: Mon Dec 24, 2012 8:00 am

Re: Scheduler

Post by flopp »

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

Re: Scheduler

Post by krambriw »

I have added this plugin now and it is running every minute, why?
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)
Sync time is set to 30 min, whats does this mean?
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.

Best regards, Walter
flopp
Posts: 17
Joined: Mon Dec 24, 2012 8:00 am

Re: Scheduler

Post by flopp »

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

Re: Scheduler

Post by krambriw »

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'
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...

Best regards, Walter
Post Reply