You want not only to tell if the player is currently on or off, but also
when the state changes. I'd suggest you look at modifying the Power
Switch plugins to do what you want. You could try tweaking my
PowerCenter plugin, but it's gotten rather bloated and I've not yet
found the time to rework the APIs for dealing with different systems,
or do some other code cleanup. Currently the code is very hackish,
especially the later versions that include 'heyu' support on Linux. If
you *only* want to control power to your amp, I imagine you would be
happier starting with Power Switch. Oh, and you might want to measure
the power draw of your amp. Many are quite efficient, drawing less than
1-2 watts when nothing is playing. It might not be worth the trouble.

But if you want to control multiple devices, some independent of the
Squeezebox power status, you might want to look at PowerCenter (nee
BottleRocket).

-Peter


-- 
peterw

http://www.tux.org/~peterw/
free plugins: http://www.tux.org/~peterw/#slim
AllQuiet BlankSaver FuzzyTime PlayLog PowerCenter/BottleRocket 
SaverSwitcher SettingsManager SleepFade StatusFirst SyncOptions
VolumeLock
------------------------------------------------------------------------
peterw's Profile: http://forums.slimdevices.com/member.php?userid=2107
View this thread: http://forums.slimdevices.com/showthread.php?t=49729

_______________________________________________
discuss mailing list
discuss@lists.slimdevices.com
http://lists.slimdevices.com/lists/listinfo/discuss

Reply via email to