You probably do not need a plugin. Have a look at http://localhost:9000/html/docs/help.html (the help pages from the local SBS server), especially "Help > Technical Information > Command Line Interface" or "Help > Technical Information > Squeezebox Server Web Interface" (looks a bit simpler but I never used that info). >From there you could have ampon.sh send a CLI command to the server in order to power on or set to play your squeezeslave instance (I don't see why this could not work with squeezeslave, but I have only used it on hardware players or w/ softsqueeze.) There are many examples of using the CLI on these forums, do a search and you'll find examples, or even scripts.
However, for me I'd put the player as the master of the system. In this case, you would need a plugin. Again, for me, IRBlaster is perfect in this role: when I power on a player (or when an alarm starts it, or when delayed player sleep occurs), IRBlaster sends the codes to switch the power on/off and set the correct source. Writing or adapting a plugin is more involved than slapping a few CLI (netcat or JSON) commands in a shell script. However if you intend to make your script really smart, you'll end-up writing a lot of semi-reliable code. I'd say start with the CLI and see where it goes. -- epoch1970 Daily dose delivered by: 3 SB Classic, 1 SB Boom iPeng (iPhone + iPad) Squeezebox Server 7.6 (Debian 5.0) with plugins: MusicIP Server Power Control by Gordon Harris WeatherTime by Martin Rehfeld IRBlaster by Gwendesign (Felix) Find cover art by bpa BBC iPlayer, SwitchPlayer by Triode PowerSave by Jason Holtzapple Song Info, Song Lyrics by Erland Isaksson SaverSwitcher, ContextMenu by Peter Watkins Just Covers by Tom Kalmijn. ------------------------------------------------------------------------ epoch1970's Profile: http://forums.slimdevices.com/member.php?userid=16711 View this thread: http://forums.slimdevices.com/showthread.php?t=92586
_______________________________________________ discuss mailing list [email protected] http://lists.slimdevices.com/mailman/listinfo/discuss
