TheD6Bel wrote: > it is possible to know the status of squeezebox go to > > IPSQUEEZEBOX:9000/status.txt You're better off using the CLI available on port 9090. Available commands are listed in LMS: click "help" at the bottom of the LMS main page (http://IPSQUEEZEBOX:9000), then "Technical Information" and then "The Squeezebox Server Command Line Interface". You can use something like netcat or telnet to communicate w/ LMS, or use a JSON client. You can search the forums there are many example scripts available.
Here is an idea of what you can get w/ the CLI (power, mode, volume are probably interesting to you): Code: -------------------- me@pc:~# echo "serverstatus" |netcat -w1 127.0.0.1 9090 serverstatus lastscan:1337002005 version:7.6.2 uuid:0125ee2a-1022-4117-9923-c0b1526324e5 info total albums:1259 info total artists:529 info total genres:17 info total songs:16493 player count:4 sn player count:0 other player count:0 me@pc:~# echo "players list"|netcat -w1 127.0.0.1 9090 players list count:4 playerindex:list playerid:00:04:20:01:02:03 uuid: ip:172.17.10.2:39550 name:Georgetown model:squeezebox3 isplayer:1 displaytype:graphic-320x32 canpoweroff:1 connected:1 playerindex:1 playerid:00:04:20:04:05:06 uuid: ip:172.17.10.3:39386 name:Illadelph model:squeezebox3 isplayer:1 displaytype:graphic-320x32 canpoweroff:1 connected:1 playerindex:2 playerid:00:04:20:07:08:09 uuid: ip:172.17.10.1:35490 name:Yalta model:squeezebox3 isplayer:1 displaytype:graphic-320x32 canpoweroff:1 connected:1 playerindex:3 playerid:00:04:20:0A:0B:0C uuid: ip:172.17.10.5:39795 name:Safranier model:squeezebox3 isplayer:1 displaytype:graphic-320x32 canpoweroff:1 connected:1 me@pc:~# echo "00:04:20:01:02:03 status"|netcat -w1 127.0.0.1 9090 00:04:20:01:02:03 status player_name:Georgetown player_connected:1 player_ip:172.17.10.2:39551 power:1 signalstrength:0 mode:play time:67.8596518573761 rate:1 duration:474.106 can_seek:1 sync_master:00:04:20:0A:0B:0C sync_slaves:00:04:20:01:02:03 mixer volume:100 playlist repeat:0 playlist shuffle:0 playlist mode:off seq_no:0 playlist_cur_index:10 playlist_timestamp:1352654181.28605 playlist_tracks:21 -------------------- ------------------------------------------------------------------------ epoch1970's Profile: http://forums.slimdevices.com/member.php?userid=16711 View this thread: http://forums.slimdevices.com/showthread.php?t=71077 _______________________________________________ discuss mailing list discuss@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/discuss