Code Monkey home page Code Monkey logo

plexpyinflux's Introduction

plexpyInflux

This script will query PlexPy to pull basic stats and store them in influxdb for use with Grafana or other graphing solutions. Credit to Drewster727 for intial script that this was based on: https://github.com/Drewster727/plexpy-influxdb-export

Dependencies

Configuration Parameters

  • interval (in seconds, default: 30)
  • plexpywebprotocol (http/https, default: http)
  • plexpyhost (needs to be filled with your plexPy IP)
  • plexpyport (default: 8181)
  • plexpyapikey (needs to be filled with your API key)
  • influxdbhost (default: localhost)
  • influxdbport (default: 8086)
  • influxdbuser (default: empty)
  • influxdbpassword (default: empty)
  • influxdbdatabase (default: plexpy_stats)

Exported Data

  • Activity
    • Total Streams
    • Total Streams (Playing)
    • Transcode Streams
    • Transcode Streams (Playing)
    • Direct Play Streams
    • Direct Play Streams (Playing)
  • Users
    • Total Users
    • Home Users
  • Libraries
    • Item count in each library

Usage

  • Download plexpyInflux.py, plexpyInflux.conf, and plexpyInflux.service

  • Modify plexpyInflux.conf with the information appropriate to your environment

  • Modify plexpyInflux.service, replacing /path/to with the path to the script in both the ExecStart and WorkingDirectory options

  • Copy plexpyInflux.service to /etc/systemd/system/

  • Issue the following to set plexpyInflux to start on boot and run:

    sudo systemctl daemon-reload
    sudo systemctl enable plexpyInflux.service
    sudo systemctl start plexpyInflux
    
  • If you run into any problems, the script logs to /var/log/syslog

plexpyinflux's People

Contributors

jeordyr avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.