TheD6Bel wrote: > my problem is to create a python script with the status of every player > :(
Well you have to ask the server for the available players, then query in a loop each player for its status. Players can come and go, so the first step is never a waste of time; also when a player is gone (hard power off, switched to mySB.com… ) the server may continue report it as present for a short while. A subsequent query for status on this very player will end in error. You have to gracefully catch the error and do what seems reasonable. The perl code attached to 'this post' (http://forums.slimdevices.com/showthread.php?93986-Alarm-fails-only-on-Mondays&p=700283&viewfull=1#post700283) does a bit of all that. It was geared at looking for player state on mysqueezebox.com, but the same logic applies to a local server. I guess there is relevant python scripts around here. Did you search on the forums ? ------------------------------------------------------------------------ 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 [email protected] http://lists.slimdevices.com/mailman/listinfo/discuss
