I'm using squeezelite/raspberry pi to set up a player in my kids' room. 
I would like to add some physical control buttons to the device (such as
a play/pause button and next/prev track buttons), and I would like to do
it in a way that does not require a bunch of additional configuration. 
My thought was to write a small program to watch for button inputs and
use the LMS command line interface on port 9090 to control things, but
this presents a few tricky problems...such as, how do I know the address
of the LMS server to which squeezelite is connected? If server is
started with the "-s <server>" command line option I can in theory --
although it makes me shudder -- parse the output of "ps", but what do to
if autodiscovery is in use?  I have a simliar question about determining
the player name.  Given the player name and server ip the rest is
relatively simple.

In an ideal world, there would be a way to send commands to squeezelite
-- which already knows all this information -- and have it send the
appropriate protocol messages to LMS.

Has anyone else tackled this?  Any suggestions on how to proceed?


------------------------------------------------------------------------
larsks's Profile: http://forums.slimdevices.com/member.php?userid=63091
View this thread: http://forums.slimdevices.com/showthread.php?t=97046

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

Reply via email to