Page 1 of 1

[Linux]Trigger script on Jukebox Play

PostPosted: Sun Jun 29, 2014 3:23 pm
by RemkoM
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 :)

Re: [Linux]Trigger script on Jukebox Play

PostPosted: Sun Jun 29, 2014 4:07 pm
by gurutech
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.

Re: [Linux]Trigger script on Jukebox Play

PostPosted: Sun Jun 29, 2014 6:37 pm
by RemkoM
Any song will do!

I saw someone send a mail upon playback, but i would not know how or where to start using that.