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.

Eventghost wait in minutes+hours?

If you have a question or need help, this is the place to be.
Post Reply
swordsx48
Posts: 1
Joined: Mon Mar 04, 2013 7:25 am

Eventghost wait in minutes+hours?

Post by swordsx48 »

Title says it. The max time I can do is 16 minutes because it only goes up to 999 seconds. Tasker handled it really well. This is how they did it
Screenshot_2013-03-03-23-28-32.png
miljbee
Experienced User
Posts: 146
Joined: Fri Mar 27, 2009 1:29 pm
Location: Orl├®ans, France

Re: Eventghost wait in minutes+hours?

Post by miljbee »

your post is a bit short.

I suppose you try to use the built in wait action.

Avoid it, use a timer instead. Because, the wait action will block EG until the wait time elapses.

Timers will fire an event when the specified time is elapsed and won't block during that time.
miljbee
TCP Events : A Better Network Event Sender/Receiver Plugin.
The Network Event Sender/Receiver in C#
Get events in EG from Google Calendar.
kkl
Experienced User
Posts: 317
Joined: Wed May 04, 2011 9:32 pm

Re: Eventghost wait in minutes+hours?

Post by kkl »

miljbee,
Could I ask where the timer Action is located? I don't see it in the list of actions.

Edit: I think I found it. Are you referring to the "Set Idle Time" under System? Can you use a variable with this action? Right now, I use the time.sleep() function with a variable. It doesn't look like the GUI allows a variable with the idle timer. Is there an equivalent python command? Thanks.

Edit2: Might have found that too: eg.plugins.System.SetIdleTime(60.0). Do I need to import anything and what would be the python command? Thanks.
jonib
Plugin Developer
Posts: 1328
Joined: Thu Mar 26, 2009 9:33 pm
Location: Sweden

Re: Eventghost wait in minutes+hours?

Post by jonib »

kkl wrote:Could I ask where the timer Action is located? I don't see it in the list of actions.
You need to add the Other\Timer plugin to get the action.

Set Idle Time is something different.

jonib
XBMC2 plugin to control XBMC. If you want to flatter me Image
kkl
Experienced User
Posts: 317
Joined: Wed May 04, 2011 9:32 pm

Re: Eventghost wait in minutes+hours?

Post by kkl »

jonib wrote:]You need to add the Other\Timer plugin to get the action.

Set Idle Time is something different.
Thanks for the tip, but I'm not sure if that does what I need. My generic flow is:

Code: Select all

Action1
Wait(variable)
Action2
time.sleep() works for me, but it does lock-out any other event during that time.
jonib
Plugin Developer
Posts: 1328
Joined: Thu Mar 26, 2009 9:33 pm
Location: Sweden

Re: Eventghost wait in minutes+hours?

Post by jonib »

kkl wrote:Thanks for the tip, but I'm not sure if that does what I need. My generic flow is:

Code: Select all

Action1
Wait(variable)
Action2
I haven't used the Timer but I assume you would need to move "Action2" to a new macro that reacts to the timer event.
time.sleep() works for me, but it does lock-out any other event during that time.
I guess the timer is better used when the delay is longer and you don't want to block other events.

jonib
XBMC2 plugin to control XBMC. If you want to flatter me Image
miljbee
Experienced User
Posts: 146
Joined: Fri Mar 27, 2009 1:29 pm
Location: Orl├®ans, France

Re: Eventghost wait in minutes+hours?

Post by miljbee »

Here is a sample tree
Attachments
timerDemo.xml
(893 Bytes) Downloaded 262 times
miljbee
TCP Events : A Better Network Event Sender/Receiver Plugin.
The Network Event Sender/Receiver in C#
Get events in EG from Google Calendar.
kkl
Experienced User
Posts: 317
Joined: Wed May 04, 2011 9:32 pm

Re: Eventghost wait in minutes+hours?

Post by kkl »

Thanks for the help.
Stalltime
Posts: 29
Joined: Tue Feb 19, 2013 2:07 am

Re: Eventghost wait in minutes+hours?

Post by Stalltime »

miljbee wrote:Here is a sample tree
Resurrecting the thread so I can say thanks! My Dyson fan am04 does not have a timer! I got it to work for 15 minutes and then shut off with the help of this thread!
Post Reply