I'm trying to write some code to auto-discover and configure my client software (Squeezelite-X) for connecting to LMS. I can discover servers on my network and that protocol provides the server name and Json(Http) port ID. Can I use Json to ask the server what its CLI port number is configured to?
R Greg Dawson
Results 1 to 10 of 12
-
2019-09-24, 11:08 #1
- Join Date
- Jan 2016
- Location
- Colorado Springs, CO, USA
- Posts
- 631
Is there a way to discover via network LMS Server CLI Port ID
Squeezelite-X
-
2019-09-24, 11:31 #2
Not that I'm aware of. What are you doing that you can't do via the jsonrpc interface?
piCorePlayer a small player for the Raspberry Pi in RAM.
Homepage: https://www.picoreplayer.org
Please donate if you like the piCorePlayer
-
2019-09-24, 11:56 #3
- Join Date
- Jan 2016
- Location
- Colorado Springs, CO, USA
- Posts
- 631
The telnet interface allows me to subscribe/listen to server events, like new song events, player name changes, player status changes asynchronously. It was the easiest solution. I would like to not use telnet, so I guess I am going to have to learn CometD and use that. I did not think there was a way to discover Telnet/CLI port, but thought I'd check.
R Greg DawsonSqueezelite-X
-
2019-09-24, 12:26 #4
Is there a way to discover vianetwork LMS Server CLI Port ID
> I'm trying to write some code to auto-discover and configure my client
> software (Squeezelite-X) for connecting to LMS. I can discover servers
> on my network and that protocol provides the server name and Json(Http)
> port ID. Can I use Json to ask the server what its CLI port number is
> configured to?
I'm not sure it's worth the effort, in particular on Windows: IIRC the
Tray icon is hard coded to use port 9090. And I've hardly ever seen a
complaint about it.
--
Michael
-
2019-09-24, 12:53 #5
- Join Date
- Jan 2016
- Location
- Colorado Springs, CO, USA
- Posts
- 631
-
2019-09-24, 13:06 #6
- Join Date
- May 2008
- Location
- Canada
- Posts
- 5,096
Is there a way to discover via network LMS Server CLI Port ID
Last edited by philippe_44; 2019-09-24 at 13:15.
LMS 7.7, 7.8 and 7.9 - 5xRadio, 3xBoom, 4xDuet, 1xTouch, 1 SB2. Sonos PLAY:3, PLAY:5, Marantz NR1603, JBL OnBeat, XBoxOne, XBMC, Foobar2000, ShairPortW, JRiver 21, 2xChromecast Audio, Chromecast v1 and v2, , Pi B3, B2, Pi B+, 2xPi A+, Odroid-C1, Odroid-C2, Cubie2, Yamaha WX-010, AppleTV 4, Airport Express, GGMM E5
-
2019-09-24, 13:13 #7
Is there a way to discover vianetwork LMS Server CLI Port ID
> You can add ‘CLIP’ in the discovery packet request and it will return
> the cli port
Hehe... it's always good to know there are people out there who actually
understand this stuff :-D
--
Michael
-
2019-09-24, 13:16 #8
- Join Date
- May 2008
- Location
- Canada
- Posts
- 5,096
LMS 7.7, 7.8 and 7.9 - 5xRadio, 3xBoom, 4xDuet, 1xTouch, 1 SB2. Sonos PLAY:3, PLAY:5, Marantz NR1603, JBL OnBeat, XBoxOne, XBMC, Foobar2000, ShairPortW, JRiver 21, 2xChromecast Audio, Chromecast v1 and v2, , Pi B3, B2, Pi B+, 2xPi A+, Odroid-C1, Odroid-C2, Cubie2, Yamaha WX-010, AppleTV 4, Airport Express, GGMM E5
-
2019-09-24, 17:06 #9
Wish I knew that years ago, didn’t realize that a plug-in could add a discovery method.
Perl is incredibly hard to follow sometimes with all of its overrides.piCorePlayer a small player for the Raspberry Pi in RAM.
Homepage: https://www.picoreplayer.org
Please donate if you like the piCorePlayer
-
2019-09-24, 18:11 #10
- Join Date
- May 2008
- Location
- Canada
- Posts
- 5,096
Is there a way to discover via network LMS Server CLI Port ID
LMS 7.7, 7.8 and 7.9 - 5xRadio, 3xBoom, 4xDuet, 1xTouch, 1 SB2. Sonos PLAY:3, PLAY:5, Marantz NR1603, JBL OnBeat, XBoxOne, XBMC, Foobar2000, ShairPortW, JRiver 21, 2xChromecast Audio, Chromecast v1 and v2, , Pi B3, B2, Pi B+, 2xPi A+, Odroid-C1, Odroid-C2, Cubie2, Yamaha WX-010, AppleTV 4, Airport Express, GGMM E5