[Linux]Trigger script on Jukebox Play

Got an idea? Missing something? Post your feature request here.

Moderator: moderators

[Linux]Trigger script on Jukebox Play

Postby RemkoM » Sun Jun 29, 2014 3:23 pm

I like to trigger a bash script (or python) whenever SS plays a song in jukebox mode. so my amp and DAC can switch to the correct input. I have everything working in python. i use it in XBMC as well. It switches inputs and shutsdown after a period of standby.


Would be great if people could send me some hint on how to do this. Im not a programmer at all, so noob mode engage please :)
RemkoM
 
Posts: 22
Joined: Tue Nov 20, 2012 11:11 am

Re: [Linux]Trigger script on Jukebox Play

Postby gurutech » Sun Jun 29, 2014 4:07 pm

Do you mean whenever it plays "any" song, or when it plays a "specific" song?

There's code around here somewhere (I'd have to look for it) that will tell you that a specific player is playing a song, or is paused. I think doing something with that would allow you to trigger the script for "any" song.
Image
gurutech
 
Posts: 492
Joined: Sun Jan 15, 2012 9:56 pm

Re: [Linux]Trigger script on Jukebox Play

Postby RemkoM » Sun Jun 29, 2014 6:37 pm

Any song will do!

I saw someone send a mail upon playback, but i would not know how or where to start using that.
RemkoM
 
Posts: 22
Joined: Tue Nov 20, 2012 11:11 am


Return to Feature Requests

Who is online

Users browsing this forum: No registered users and 1 guest