mherger wrote: 
> > So, pretty clear, the web ui updates the lastActivityTime on the
> > displayed player and thereby prevents sleep.
> 
> What web UI are you using? Can you figure out (using the browser's dev 
> tools) what requests the web UI is sending?

I use classic and material but this was classic.

This is what I got by copying the request, and then the response - it
looks like the JSONRPC one does update the time:


Code:
--------------------
    http://192.168.1.100:9000/jsonrpc.js
  POST /jsonrpc.js HTTP/1.1
  Connection: keep-alive
  Content-Length: 69
  Content-Type: application/x-www-form-urlencoded; charset=UTF-8
  Cookie: Squeezebox-expandPlayerControl=true; Squeezebox-expanded-MY_MUSIC=1; 
Squeezebox-expanded-FAVORITES=0; Squeezebox-expanded-PLUGINS=0; 
Squeezebox-expanded-PLUGIN_MY_APPS_MODULE_NAME=0; Squeezebox-expanded-RADIO=1; 
Squeezebox-enableHiDPI=1.25; Squeezebox-expanded-activePlugins=1; 
Squeezebox-expanded-inactivePlugins=1; Squeezebox-expanded-otherPlugins0=1; 
Squeezebox-playersettings=null; 
Squeezebox-advancedsettings=settings/server/debugging.html%3F; 
Squeezebox-albumView=; Squeezebox-player=00%3A04%3A20%3A12%3A45%3A0c
  X-Requested-With: XMLHttpRequest
  
  
{"params":["",["serverstatus","0","999"]],"method":"slim.request","id":1,"result":{"other
 player count":0,"httpport":"9000","info total albums":3115,"player 
count":2,"ip":"192.168.1.100","version":"8.3.1","players_loop":[{"seq_no":0,"playerid":"00:04:20:12:45:0c","displaytype":"graphic-320x32","connected":1,"ip":"192.168.1.62:38762","model":"squeezebox3","name":"Kitchen","firmware":137,"uuid":null,"isplayer":1,"canpoweroff":1,"isplaying":0,"playerindex":"0","power":0,"modelname":"Squeezebox
 
Classic"},{"seq_no":"11","playerid":"00:04:20:26:6c:d2","displaytype":"none","connected":1,"ip":"192.168.1.133:59116","model":"baby","name":"Squeezebox
 
Radio","firmware":"8.0.1-r16907","uuid":"32f41c9fa9c2ca28e57c1e44ecceeee1","isplayer":1,"canpoweroff":1,"isplaying":1,"playerindex":1,"power":1,"modelname":"Squeezebox
 Radio"}],"uuid":"864f0003-a2dd-44cd-b2d9-806eb0a4a09d","sn player 
count":0,"info total artists":2266,"info total 
songs":24095,"lastscan":"1670733289","info total genres":13
 5,"info total duration":8005338.77200013,"mac":"30:85:a9:9e:be:96"}}
--------------------


I also looked at what material did - it seems to be using cometd.  I
think that one DOESN'T update the lastActivityTime:  


Code:
--------------------
    http://192.168.1.100:9000/cometd/connect
  POST /cometd/connect HTTP/1.1
  Connection: keep-alive
  Content-Length: 93
  Content-Type: application/json;charset=UTF-8
  Cookie: Squeezebox-expandPlayerControl=true; Squeezebox-expanded-MY_MUSIC=1; 
Squeezebox-expanded-FAVORITES=0; Squeezebox-expanded-PLUGINS=0; 
Squeezebox-expanded-PLUGIN_MY_APPS_MODULE_NAME=0; Squeezebox-expanded-RADIO=1; 
Squeezebox-enableHiDPI=1.25; Squeezebox-expanded-activePlugins=1; 
Squeezebox-expanded-inactivePlugins=1; Squeezebox-expanded-otherPlugins0=1; 
Squeezebox-playersettings=null; 
Squeezebox-advancedsettings=settings/server/debugging.html%3F; 
Squeezebox-albumView=; Squeezebox-player=00%3A04%3A20%3A12%3A45%3A0c
  
  [{"timestamp":"Sun, 11 Dec 2022 14:15:02 
GMT","clientId":"649d0956","channel":"/meta/connect","id":"25","advice":{"interval":0},"successful":true},{"data":{"seq_no":0,"mixer
 
volume":100,"player_name":"Kitchen","playlist_tracks":1,"player_connected":1,"time":0,"mode":"stop","playlist_timestamp":1670708541.75329,"rate":1,"can_seek":1,"power":0,"playlist
 mode":"off","playlist 
repeat":0,"duration":398.573,"playlist_cur_index":"0","signalstrength":0,"digital_volume_control":1,"playlist
 
shuffle":0,"player_ip":"192.168.1.62:38762"},"id":"7","channel":"/649d0956/slim/playerstatus/00:04:20:12:45:0c","ext":{"priority":""}}]
--------------------


------------------------------------------------------------------------
bstrulo's Profile: http://forums.slimdevices.com/member.php?userid=15997
View this thread: http://forums.slimdevices.com/showthread.php?t=117181

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

Reply via email to