teddy278;405432 Wrote: 
> Hi all,
> 
> I am running SC on an Ubuntu-Server. Works great.
> 
> Now I would like to run a script whenever one of my squeezeboxes is
> turned on. So: I press "Power", Squeezebox is turned on, and a small
> bash-script is executed. I turn the Squeezebox off again, and another
> script is being run. The script should only be run with one of the
> boxes, not the other two.
> 
> Any idea how to do this?
> 
> Reason: My SB3 is connected to an old Hi-Fi-Amp that is not switchable
> by a remote. I am running some home automation system that's probably
> controllable by a simple wget, so I could connect my amp to a
> switchable outlet and let the automation do the rest: SB3 turned on ->
> wget on Ubuntu-Server grabs some URL on the automation system -> socket
> gets power.
> 
> 
> Greetings!
> teddy
You *might* be able to do this with PeterW's PowerCenter plugin.  It's
designed to work with X10 or Insteon devices via br or heyu.  You might
be able to fool the plugin by pointing it to your own script in the
plugin settings rather than br or heyu.

I use this plugin as part of my regular SqueezeCenter configuration to
turn on and off my power amps when my Transporter turns on or off. 
Anything that triggers a power event in the Transporter (remote, SBC,
web interface, cli, etc.) causes the plugin to fire off a X10 command
via /usr/local/bin/br.  Works flawlessly.  

I think you could substitute your own script for br.  You'd need to
parse the arguments that PeterW is passing in your script to determine
if this was a power on request or power off.


-- 
gharris999
------------------------------------------------------------------------
gharris999's Profile: http://forums.slimdevices.com/member.php?userid=115
View this thread: http://forums.slimdevices.com/showthread.php?t=61225

_______________________________________________
unix mailing list
[email protected]
http://lists.slimdevices.com/mailman/listinfo/unix

Reply via email to