PDA

View Full Version : Ability to run a script on SB power on/off



leko
2006-06-17, 21:26
Hello all

I have a squeezebox in my bedroom hooked up to a stereo receiver. The receiver is hooked up to the slimserver machine via serial and I wrote a simple application for controlling the receiver from the command line.

What I'd really like to be able to do is have slimserver execute a script when the squeezebox turns on and off (actually, different scripts for each). Is there some mechanism builtin to slimserver for this? If so, can someone point me in the right direction? I figure it can't be that hard to do, but I thought I'd ask first so I don't reinvent the wheel.

kdf
2006-06-17, 21:38
On 17-Jun-06, at 9:26 PM, leko wrote:
>
> What I'd really like to be able to do is have slimserver execute a
> script when the squeezebox turns on and off (actually, different
> scripts for each). Is there some mechanism builtin to slimserver for
> this?

http://wiki.slimdevices.com/index.cgi?PluginServerUtilities
Look for the Execute Plugin
-k

leko
2006-06-18, 09:33
Ah, that's exactly what I wanted, thanks.

Unfortunately that plugin has a couple bugs concerning power-off events, but they shouldn't be to hard to squash.