Restricting section access at certain times

I was thinking of doing this by logging in as a different plex user, so is there a way to change the plex login from the CLI? I'd like to be able to create a script that changes the login at certain times of day:

 

1am - Close Plex and restart logged in with Kids Login

6:30pm - Close Plex and restart logged in as parents

 

The idea behind this is to restrict viewing on our main tv during the day. If anyone has a better way of doing this please share.

 

Cheers,

 

Bill

 

 

I was thinking of doing this by logging in as a different plex user, so is there a way to change the plex login from the CLI? I'd like to be able to create a script that changes the login at certain times of day:
 
1am - Close Plex and restart logged in with Kids Login
6:30pm - Close Plex and restart logged in as parents
 
The idea behind this is to restrict viewing on our main tv during the day. If anyone has a better way of doing this please share.
 
Cheers,
 
Bill


As Rasplex is based on Plex Home Theatre you really need to request this enhancement in that Section of the forum.

Regards

Thanks

In case anyone is interested, as this is rasplex and I want to keep the auto updates, I wrote a script that runs on a different box:

 

sshpass -p 'rasplex' ssh -v root@192.168.1.120 'sed -i -e s/OLDTOKEN/NEWTOKEN/g /storage/.plexht/userdata/guisettings.xml'
sshpass -p 'rasplex' ssh -v root@192.168.1.120 'sed -i -e "s/Signed in (OLDUSERNAME)/Signed in (NEWUSERNAME)/g" /storage/.plexht/userdata/guisettings.xml'
sshpass -p 'rasplex' ssh -v root@192.168.1.120 'reboot'
 
 
I have enabled 'Require authentication on local networks" on the local media server. Would be nice to restart services instead of reboot, but will work on that later.

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.