Welcome to our forums! Please take a few moments to read through our Community Guidelines (also conveniently linked in the header at the top of each page). There, you'll find guidelines on conduct, tips on getting the help you may be searching for, and more!

PlexPy - Another Plex Monitoring Program

drzoidberg33drzoidberg33 Members, Plex Employee, Plex Pass, Plex Ninja Posts: 2,561 Plex Employee

Introduction

Greetings all!

What started out as me trying to learn Python ended up being a quite useful app, so I thought I'd share what I've got so far.

This initially started out basically as a direct port of PlexWatchWeb from PHP to Python so it would be easier for most people to get running. I however am never satisfied so after much tinkering and tweaking I started slowly adding and fixing things that I thought needed attention.

If you have no idea what I'm talking about then that's fine too, if you came here to just find a tool to easily monitor and receive notify playback events from Plex you're at the right place.

A picture says a thousand words, so here's a few screenshots highlighting some of PlexPy's current functionality.


Home page with activity pane of current active streams, some quick stats and recently added items.



History tables of watched media items, fully searchable and column toggles (I've just blocked out the sensitive info in the screenshot):



Graphs for various analytics:



Various notification options and and customisable settings:


And a bunch more...

PlexPy Downloads 

Github page and downloadhttps://github.com/drzoidberg33/plexpy

Readmehttps://github.com/drzoidberg33/plexpy/blob/master/README.md

Installation guidehttps://github.com/drzoidberg33/plexpy/wiki/Installation

Troubleshootinghttps://github.com/drzoidberg33/plexpy/wiki/Troubleshooting

Changelog: https://github.com/drzoidberg33/plexpy/blob/master/CHANGELOG.md


Bugs and Feature requests

Please report any bugs and feature requests on the Github page issue tracker: https://github.com/drzoidberg33/plexpy/issues

 

Contributing Developers

Please see the CONTRIBUTING.md file on the Github page if you are interested in helping out. All pull requests should be made to the dev branch. 

 

Thanks

This project would never had existed if it wasn't for developers that wrote the code which my project is based off.

These projects are:

«134567306

Comments

  • melrhombusmelrhombus Members, Plex Pass Posts: 209 Plex Pass

    I'll try it out when I get home but if possible can you toss up some screenshots over on git or perhaps in this topic?

  • drzoidberg33drzoidberg33 Members, Plex Employee, Plex Pass, Plex Ninja Posts: 2,561 Plex Employee
    melrhombus wrote on June 23 2015, 1:33 PM: »

    I'll try it out when I get home but if possible can you toss up some screenshots over on git or perhaps in this topic?

    It's currently looks almost exactly like PlexWatchWeb.

    I'll try an put some screens up, in the meantime you can just Google image search: Plexwatchweb

  • katarkatar Members, Plex Pass Posts: 35 Plex Pass
    Hi, notifications with pushbullet is working????
  • drzoidberg33drzoidberg33 Members, Plex Employee, Plex Pass, Plex Ninja Posts: 2,561 Plex Employee
    katar wrote on June 23 2015, 3:33 PM: »

    Hi, notifications with pushbullet is working????

    PlexWatch itself already supports Pushbullet notifications (https://forums.plex.tv/topic/72552-plexwatch-plex-notify-script-send-push-alerts-on-new-sessions-and-stopped/) , however I will be implementing notification management directly into PlexPy sometime in the near future. The code is there but not yet implemented.

  • JamminRJamminR Plexhibitionist Members, Plex Pass Posts: 2,301 Plex Pass

    -ToDo

    Wrangle into a Plex Plug-in/channel

    :D

    (Big dreams, I know, but...you've already reduced package installation maintenance this way so much, I figure yet one more great goal since Plex has it's own Python libraries)

  • MAULMAUL Members, Plex Pass Posts: 2 Plex Pass

    Hello all,

    This looks to be something that is pretty quick and perhaps easy (not for me.. lol) I got the system to start but it appears to be having some issues.. To be completely honest this is my first attempt at plexwatch and web interface so I may have done something wrong even during the plexwatch setup maybe?

    http://i.imgur.com/l1mIEME.png

  • ArcanemagusArcanemagus Members, Plex Pass Posts: 143 Plex Pass
    MAUL wrote on June 23 2015, 10:21 PM: »

    Hello all,

    This looks to be something that is pretty quick and perhaps easy (not for me.. lol) I got the system to start but it appears to be having some issues.. To be completely honest this is my first attempt at plexwatch and web interface so I may have done something wrong even during the plexwatch setup maybe?

    http://i.imgur.com/l1mIEME.png

    It looks like it's unable to connect to the database. Ensure that you have the path set correctly in the settings and that the directory the database file is in is writable by whatever user you are running PlexPy as.

  • drzoidberg33drzoidberg33 Members, Plex Employee, Plex Pass, Plex Ninja Posts: 2,561 Plex Employee
    edited June 2015
    MAUL wrote on June 23 2015, 10:21 PM: »

    Hello all,

    This looks to be something that is pretty quick and perhaps easy (not for me.. lol) I got the system to start but it appears to be having some issues.. To be completely honest this is my first attempt at plexwatch and web interface so I may have done something wrong even during the plexwatch setup maybe?

    http://i.imgur.com/l1mIEME.png

    In the settings -> Plex and PlexWatch, what is filled in for the PlexWatch database field? And is that your active PlexWatch database?

  • drzoidberg33drzoidberg33 Members, Plex Employee, Plex Pass, Plex Ninja Posts: 2,561 Plex Employee
    MAUL wrote on June 23 2015, 10:21 PM: »

    Hello all,

    This looks to be something that is pretty quick and perhaps easy (not for me.. lol) I got the system to start but it appears to be having some issues.. To be completely honest this is my first attempt at plexwatch and web interface so I may have done something wrong even during the plexwatch setup maybe?

    http://i.imgur.com/l1mIEME.png

    I just ran a test now. That error occurs when PlexPy doesn't have permission to read your PlexWatch database. Make sure that the Plexwatch DB is accessible to the Python user.

  • MAULMAUL Members, Plex Pass Posts: 2 Plex Pass
    DrJohnZoidberg wrote on June 23 2015, 10:25 PM: »

    In the settings -> Plex and PlexWatch, what is filled in for the PlexWatch database field? And is that your active PlexWatch database?

    that was my stupidity.. :(

    I had the folder name in there but not the filename.. I guess I need to learn to read.  It appears to be up and running now, thank you so much for creating this.. looks awesome!

  • melrhombusmelrhombus Members, Plex Pass Posts: 209 Plex Pass

    Tried it out...

    Runs very FAST...

    I'm having issues with it connecting to PMS... it connects to PlexWatch DB no problem but I get an error plus Internal 500 for Recently Added

    23-Jun-2015 19:52:00 - INFO :: MainThread : Checking to see if the database has all tables....
    23-Jun-2015 19:52:00 - ERROR :: MainThread : Can't connect to the database: database parameter must be string or APSW Connection object
     
    I've tried localhost/127.0.0.1/actual IP but all give me the same error
  • drzoidberg33drzoidberg33 Members, Plex Employee, Plex Pass, Plex Ninja Posts: 2,561 Plex Employee
    melrhombus wrote on June 23 2015, 10:59 PM: »

    Tried it out...
    Runs very FAST...
    I'm having issues with it connecting to PMS... it connects to PlexWatch DB no problem but I get an error plus Internal 500 for Recently Added

    23-Jun-2015 19:52:00 - INFO :: MainThread : Checking to see if the database has all tables....
    23-Jun-2015 19:52:00 - ERROR :: MainThread : Can't connect to the database: database parameter must be string or APSW Connection object

    I've tried localhost/127.0.0.1/actual IP but all give me the same error

    1. Have you entered your username and password?
    2. Is your server set to accept only secure connections by any chance? PlexPy doesn't yet work with SSL connections to PMS.
  • melrhombusmelrhombus Members, Plex Pass Posts: 209 Plex Pass
    DrJohnZoidberg wrote on June 23 2015, 11:06 PM: »

    1. Have you entered your username and password?
    2. Is your server set to accept only secure connections by any chance? PlexPy doesn't yet work with SSL connections to PMS.

    Not using plex.tv home feature but I just added user/pass and saw it get a token but same error for recently added

    I had it set to preferred but if set to disabled - same error

  • drzoidberg33drzoidberg33 Members, Plex Employee, Plex Pass, Plex Ninja Posts: 2,561 Plex Employee
    melrhombus wrote on June 23 2015, 11:24 PM: »

    Not using plex.tv home feature but I just added user/pass and saw it get a token but same error for recently added

    I had it set to preferred but if set to disabled - same error

    I can't seem to replicate that on my side.

    Can you try the following:

    - Go to the logs menu, and clear the logs.

    - Go to home screen and wait for any errors to show up.

    - Go back to the logs and let me know what those log entires say.

  • Bartlomiej BaraniecBartlomiej Baraniec Members, Plex Pass Posts: 1,723 Plex Pass
    JamminR wrote on June 23 2015, 7:39 PM: »

    -ToDo

    Wrangle into a Plex Plug-in/channel

    :D

    (Big dreams, I know, but...you've already reduced package installation maintenance this way so much, I figure yet one more great goal since Plex has it's own Python libraries)

    Oh yeah, that would be awesome :)

  • rogueosbrogueosb Members, Plex Pass Posts: 48 Plex Pass

    I just wanted to say that I had the same issue as MAUL ("DatabaseError: file is encrypted or is not a database"), and had the settings correctly entered. I ended up fixing it by replacing the sqlite3.dll in C:\Python27\DLLs with the precompiled DLL from here: https://www.sqlite.org/download.html. After this, and re-starting PlexPy, it works flawlessly.

  • drzoidberg33drzoidberg33 Members, Plex Employee, Plex Pass, Plex Ninja Posts: 2,561 Plex Employee
    edited June 2015
    rogueosb wrote on June 24 2015, 9:36 AM: »

    I just wanted to say that I had the same issue as MAUL ("DatabaseError: file is encrypted or is not a database"), and had the settings correctly entered. I ended up fixing it by replacing the sqlite3.dll in C:\Python27\DLLs with the precompiled DLL from here: https://www.sqlite.org/download.html. After this, and re-starting PlexPy, it works flawlessly.

    That is very interesting. Can I ask what OS you are using and which version of plexWatch you are using?

    The only Windows test machine I have is a Windows 10 preview VM and after installing Python 2.7 on there it worked without an issue. I wonder what the difference here is.

    EDIT:

    I updated my plexWatch install to the latest dev version and reloaded the database into PlexPy and it still works. Not sure what's going on with your setup, could maybe be different version of Python (the version I installed for Windows is 2.7.10).

    Took a screenshot too (resolution is a bit low on the VM):

    Screenshot%202015-06-24%2013.49.44.png

  • rogueosbrogueosb Members, Plex Pass Posts: 48 Plex Pass
    edited June 2015

    I'm running Windows 7, Python 2.7.10, plexWatch version 0.3.3. No idea why I had that problem, but at least there's a fix for anyone else in the same edge case I was.

  • drzoidberg33drzoidberg33 Members, Plex Employee, Plex Pass, Plex Ninja Posts: 2,561 Plex Employee
    rogueosb wrote on June 24 2015, 12:27 PM: »

    I'm running Windows 7, Python 2.7.10, plexWatch version 0.3.3. No idea why I had that problem, but at least there's a fix for anyone else in the same edge case I was.

    Thanks, I'm going to add your post to the troubleshooting page on the Github wiki.

  • melrhombusmelrhombus Members, Plex Pass Posts: 209 Plex Pass
    DrJohnZoidberg wrote on June 24 2015, 8:14 AM: »

    I can't seem to replicate that on my side.

    Can you try the following:

    - Go to the logs menu, and clear the logs.

    - Go to home screen and wait for any errors to show up.

    - Go back to the logs and let me know what those log entires say.

    Is there a way to get more logging?

    Right now all the log shows are the two errors I posted then just what appears to be updates/ping message

    I'm using the same settings in this and the other plex watch UI... no problems in the latter aside from posters not loading sometimes

«134567306
Sign In or Register to comment.