Restarting server might work, but im not sure if it will pause the episode im currently on. so tha i can continue next day. and doing brutal shutoff is kinda.. well.. brutal.. Also i have user specific cases. Some users have schedule that they need to follow etc.
I think ill make simple table type thing webui for internal use, where it querries all the sessions, then you pick a session by username and device name, store those two in some DB - json file, then create new entry in table to set the time you want to pause this session, send warning message 30s before it pauses "steam will pause in 30s" and 1s after it pauses "stream has been paused". Rinse and repeat. Only thing im worried about querrying the session id every day, becasue when you GET /Sessions its 10k of lines of data that gets returned. And atm i have only sentient users.. but it returns some background apps sessions too wich i dont need atm. Not sure if session id changes with each day or server reboot or whatever.. or does it stay the same with user/device. Like phone app session id will stay the same but web browser session id will constantly change on every login. IDK..
Or maybe ill just make bash script that does the thing automagically, but then it will be a pain to edit and tweak if need be. Still not sure how to tackle this..
But it would be cool if you could set to stop playing per episodes. like you mark an episode in playlist to be the last for today and when it ends then the playlist is paused or shut down so that the phone can go into sleep mode.
I think ill make simple table type thing webui for internal use, where it querries all the sessions, then you pick a session by username and device name, store those two in some DB - json file, then create new entry in table to set the time you want to pause this session, send warning message 30s before it pauses "steam will pause in 30s" and 1s after it pauses "stream has been paused". Rinse and repeat. Only thing im worried about querrying the session id every day, becasue when you GET /Sessions its 10k of lines of data that gets returned. And atm i have only sentient users.. but it returns some background apps sessions too wich i dont need atm. Not sure if session id changes with each day or server reboot or whatever.. or does it stay the same with user/device. Like phone app session id will stay the same but web browser session id will constantly change on every login. IDK..
Or maybe ill just make bash script that does the thing automagically, but then it will be a pain to edit and tweak if need be. Still not sure how to tackle this..
But it would be cool if you could set to stop playing per episodes. like you mark an episode in playlist to be the last for today and when it ends then the playlist is paused or shut down so that the phone can go into sleep mode.