I haven't tested this on Windows.

An alternative would be to use the "ncat" package (part of the nmap
package ) https://nmap.org/ncat/
It is available for Windows and Linux. It is like the standard linux
netcat/nc utility but has a built in a lua script engine.

Attached is a sample lua script ( cli_status.lua  37268
)  uses LMS CLI port 9090 to get the current title,artist and album for
a specified player (you need to edit to include your own MAC address)

After renaming the attached script to just "cli_status.lua" The command
is invoked by 

Code:
--------------------
    
  ncat <LMSIPaddress> 9090 --lua-exec cli_status.lua
  
--------------------


When run from a command prompt it gerenates log messages to console and
writes out to a file in /tmp  "/tmp/cliresult.txt"


+-------------------------------------------------------------------+
|Filename: cli_status.lua.txt                                       |
|Download: http://forums.slimdevices.com/attachment.php?attachmentid=37268|
+-------------------------------------------------------------------+

------------------------------------------------------------------------
bpa's Profile: http://forums.slimdevices.com/member.php?userid=1806
View this thread: http://forums.slimdevices.com/showthread.php?t=115989

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

Reply via email to