Try adding my test repo
(http://www.tux.org/~peterw/slim/slim7/repodata-test.xml) and
installing my new SqueezeCLIHandler plugin. It adds two new protocol
handlers: *squeezecli* and *squeezeexec*. In order to use them, you
must enable password protection on Squeezebox Server and set CSRF
protection to Medium or High (and restart SBS after doing so!). The
protocol URLs look like


Code:
--------------------
    
  # turn this player off (CLI command "power 0")
  squeezecli:secret=123456789012&p0=power&p1=0
  # turn off the player with ID 00:04:20:11:22:33
  
squeezecli:secret=123456789012&p0=power&p1=0&player=00%3A04%3A20%3A11%3A22%3A33
  # execute the command "/usr/bin/touch" on the SBS host, passing one argument, 
"/tmp/somefile"
  squeezeexec:secret=123456789012&p0=/usr/bin/touch&p1=/tmp/somefile
--------------------


Right now you'll need to try a URL like
*squeezecli:secret=123456789012&p0=power&p1=0* and look at the server
logs to determine the correct "secret" value for your system. You'll
see an error message like " 'secret' not valid in
squeezecli:secret=123456789012&p0=power&p1=0 -- should be 98765432101"

You must always pass a "secret" value and a "p0" value (the naming for
"p0" is taken from historical SBS URL param names). You may pass as
many "pN" values as you need. All name=value pairs must URI-encode the
value strings. A "player" argument is optional for *squeezecli*, and
can be used to specify that the CLI command should run on the specified
player rather than the player currently trying to "play" the squeezecli
URL (if you don't include a "player" arg, the command will run on the
player playing the URL). You can specify "player" for squeezeexec, too,
but it has no effect there.

Please let me know what you think.


-- 
peterw

http://www.tux.org/~peterw/ 
Free plugins:  'AllQuiet'
(http://www.tux.org/~peterw/slim/AllQuiet.html) 'Auto Dim/AutoDisplay'
(http://www.tux.org/~peterw/slim/AutoDisplay.html) 'BlankSaver'
(http://www.tux.org/~peterw/slim/BlankSaver.html) 'ContextMenu'
(http://www.tux.org/~peterw/slim/ContextMenu.html) 'DenonSerial'
(http://www.tux.org/~peterw/slim/DenonSerial.html)
'FuzzyTime' (http://www.tux.org/~peterw/slim/FuzzyTime.html) 'KidsPlay'
(http://www.tux.org/~peterw/slim/KidsPlay.html) 'KitchenTimer'
(http://www.tux.org/~peterw/slim/KitchenTimer.html) 'PlayLog'
(http://www.tux.org/~peterw/slim/PlayLog.html)
'PowerCenter/BottleRocket'
(http://www.tux.org/~peterw/slim/PowerCenter.html) 'SaverSwitcher'
(http://www.tux.org/~peterw/slim/SaverSwitcher.html)
'SettingsManager'
(http://www.tux.org/~peterw/slim/SettingsManager.html) 'SleepFade'
(http://www.tux.org/~peterw/slim/SleepFade.html) 'StatusFirst'
(http://www.tux.org/~peterw/slim/StatusFirst.html) 'SyncOptions'
(http://www.tux.org/~peterw/slim/SyncOptions.html) 'VolumeLock'
(http://www.tux.org/~peterw/slim/VolumeLock.html)
------------------------------------------------------------------------
peterw's Profile: http://forums.slimdevices.com/member.php?userid=2107
View this thread: http://forums.slimdevices.com/showthread.php?t=78259

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

Reply via email to