Skip to content

Display current Plex sessions in Ubuntu MOTD output

License

Notifications You must be signed in to change notification settings

mveinot/plex-motd

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

plex-motd

Display current Plex sessions in Ubuntu MOTD output

Installation

  • You will need Python 3.5 or later - it may (probably will) work with Python 3 or later, but I haven't tested it.

  • Run pip3 install -r requirements.txt to install the required Python packages.

  • Edit plex_server and plex_port in the .env file if they are different than the defaults.

  • Replace YOUR_TOKEN_HERE with your X-Plex-Token string obtained from your server.

  • Once you have edited the script and the .env file and confirmed it is working, copy them to /etc/update-motd.d/ with an appropriate name - (95-plex is recommended) by running

mv plex_motd.py 95-plex 
mv .env /etc/update-motd.d/
mv 95-plex /etc/update-motd.d/
  • Make sure the file is executable and will show up on login by running
chmod +x 95-plex

alt text

About

Display current Plex sessions in Ubuntu MOTD output

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published