DJanGo wrote: 
> under tux that looks like:
> > 
Code:
--------------------
  >   > 
  > ##vars   
  > port=9090
  > server=ip.from.lms.server
  > 
  > # get number of known players
  > players=$(printf "player count ?\nexit\n" | nc $server $port | cut -d ' ' 
-f 3)
  > 
  > ## check all known players
  > for((i=0; i<$players; i++))
  > do
  > playerID=$(printf "player id $i ?\nexit\n" | nc $server $port | cut -d ' ' 
-f 4 | sed 's/%/%%/g')
  > printf "$playerID power 0 \nexit\n" | nc $server $port
  > done
  > 
--------------------
> > 

Thanks for that, works under Centos7 / LMS 7.9.0 -  Added to my script
bank !



*Players:* SliMP3,Squeezebox3 x3, Squeezebox Receiver, SqueezePlayer,
PiCorePlayer/RPi2/Hifiberry DAC+ x2,PiCorePlayer/RPi2/Hifiberry
DAC+Pro,Wandboard SOA
*Server:* Logitech Media Server Version: 7.9.0 - 1444881383 on Centos 7
VM
*Plugins:* AutoRescan/BBCiPlayer/PowerSave/PowerSwitchIII/Squeezecloud
*Remotes:* iPeng8/Orangesqueeze/PC/Jivelite
*Music:* 383GB,1269 albums 17756 songs 4381 artists mostly FLACs

*Want a webapp ?* See
http://forums.slimdevices.com/showthread.php?104305-Webapp-for-LMS
------------------------------------------------------------------------
Jeff07971's Profile: http://forums.slimdevices.com/member.php?userid=49290
View this thread: http://forums.slimdevices.com/showthread.php?t=104543

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

Reply via email to