Skip to content

hunterbrewer04/plex-monitor-script

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

3 Commits
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸŽ₯ Plex Monitor Script

Monitor active Plex streams in real-time from the command line with this simple, customizable script. πŸ“Ίβœ…


πŸš€ Features

  • βœ… Monitor active Plex streams in real-time
  • πŸ› οΈ Displays user and stream information
  • πŸ”„ Customizable refresh interval
  • πŸ” Secure token handling using .env

πŸ“¦ Requirements

  • Bash
  • curl
  • xmllint (libxml2-utils)

πŸ› οΈ Setup

  1. Clone the repository:

    git clone git@github.com:hunterbrewer04/plex-monitor-script.git cd plex-monitor-script

  2. Install dependencies:

    sudo apt update sudo apt install libxml2-utils curl

  3. Create a .env file and add your Plex token and URL:

    echo "PLEX_TOKEN=your_plex_token_here" > .env echo "PLEX_URL=http://127.0.0.1:32400" >> .env

  4. Make the script executable:

    chmod +x plex_monitor.sh


βœ… Usage

Run the script:

./plex_monitor.sh

Example Output (Active Streams):

Checking Plex streams... Active Streams: 2

Title: The Matrix User: john_doe

Title: Breaking Bad - S02E01 User: jane_smith

Example Output (No Active Streams):

No active streams currently.


πŸ“ Configuration

  • Token & URL: Modify the .env file to update the Plex token and URL.
  • Refresh Interval: Adjust the refresh interval by modifying the sleep command in the script.

πŸ› οΈ Contributing

  1. Fork the repository
  2. Create a feature branch: git checkout -b feature/new-feature
  3. Commit your changes: git commit -m "Add new feature"
  4. Push to the branch: git push origin feature/new-feature
  5. Open a Pull Request

πŸ“„ License

This project is licensed under the MIT License.
See the LICENSE file for full details.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages