larsks wrote: 
> 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?

Good question. I am doing the same thing.

Greg Erskine wrote: 
> Hi all,
> 
> I was wondering if there was a way to determine which LMS server
> Squeezelite has connected to when it has used autodiscovery.
> 
> I couldn't see an option in the help and I checked for an environment
> variable.
> 
> I am using telnet to control Squeezelite and it would be nice if I could
> determine the LMS server IP programmatically rather than hardcoding. I
> sometimes have multiple LMS servers running during upgrades and
> testing.
> 
> regards

I asked the same question a few weeks ago but I did not get an answer
(or I missed it).

I think the answer is to download the Squeezelite code, learn C, and
hack a solution. I have found the autodiscovery subroutine and am trying
to learn C.

regards
Greg


------------------------------------------------------------------------
Greg Erskine's Profile: http://forums.slimdevices.com/member.php?userid=7403
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