.local is from avahi/zeroconf. pCP can send curl commands to the LMS
server all day long. There are other ways to automatically find IP
address of your LMS server....much lighter weight than avahi
There is a program supplied with pcp called "find_servers" This will
find all discoverable LMS servers on your network.
The way we prefer to do it in pcp, is to look at the local device and
see what LMS server squeezelite is connected to.
Code:
--------------------
IP=$(netstat -nt 2>&1 | grep :3483 | grep ESTABLISHED | uniq -f 4 | awk '{
print $5 }' | grep :3483 | awk -F: '{ print $1 }')
--------------------
piCorePlayer a small player for the Raspberry Pi in RAM.
Homepage: https://www.picoreplayer.org
Please 'donate'
(https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=U7JHY5WYHCNRU&lc=GB¤cy_code=USD&bn=PP%2dDonationsBF%3abtn_donateCC_LG%2egif%3aNonHosted)
if you like the piCorePlayer
------------------------------------------------------------------------
paul-'s Profile: http://forums.slimdevices.com/member.php?userid=58858
View this thread: http://forums.slimdevices.com/showthread.php?t=109270
_______________________________________________
unix mailing list
[email protected]
http://lists.slimdevices.com/mailman/listinfo/unix