View unanswered posts | View active topics It is currently Wed May 22, 2013 9:07 am



Reply to topic  [ 3 posts ] 
 iTunes conditional auto off on pause 
Author Message
User avatar

Joined: Jun 04, 2008
Posts: 119
Post iTunes conditional auto off on pause
I currently have a trigger to send a power off command to my SSP, whenever iTunes stops playing.

I would like to add a delay into the trigger that would wait until iTunes has been stopped for XX seconds, then send the command.
However, would also like the power off command to be canceled if iTunes has resumed playing within XX amount of time.

I would assume I could have a script launch on pause /stop of iTunes that could determine the amount of time that has elapsed since said action, watch for itunes to resume playing, canceling the power off command if resumed, and if it has not then execute the power down command.

I have searched around and found system idle time scripts, but none the relate to this situation.

Any pointers would be very much appreciated!

Thanks!

Korey


Sun May 13, 2012 9:52 am
Profile
Site Admin
User avatar

Joined: Mar 19, 2008
Posts: 6655
Location: Austin, Texas
Post Re: iTunes conditional auto off on pause
I suppose you could define the trigger when playstate playing becomes false with a delay on the action that turns of the SSP (whatever that is... ;) ) and then another trigger for when playstate playing becomes true that cancels any delayed actions associated with the trigger above. So, if the delayed action is still there then it'll get cancelled and if it's not then it's a noop.

_________________
Jay (Indigo Support)
Image


Sun May 13, 2012 4:21 pm
Profile WWW
User avatar

Joined: Jun 04, 2008
Posts: 119
Post Re: iTunes conditional auto off on pause
jay (support) wrote:I suppose you could define the trigger when playstate playing becomes false with a delay on the action that turns of the SSP (whatever that is... ;) ) and then another trigger for when playstate playing becomes true that cancels any delayed actions associated with the trigger above. So, if the delayed action is still there then it'll get cancelled and if it's not then it's a noop.


Thanks Jay, this works like a charm!

Now my Surround Sound Processor won't be power cycled unnecessarily!

:mrgreen:


Sun May 13, 2012 4:49 pm
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 3 posts ] 

Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.   Template designed by STSoftware.