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

13567313

Comments

  • drzoidberg33drzoidberg33 Members, Plex Employee, Plex Pass, Plex Ninja Posts: 2,562 Plex Employee
    johnod1983 wrote on June 28 2015, 3:19 PM: »

    I have plexwatch configured and Plexpy was easy to get going.

    I see "now playing" and "recently added"
    But I see this error

    DatabaseError: file is encrypted or is not a database

    In the settings page this is what I put for the plexwatch database path

    C:\PlexWatch\plexwatch.db

    Check the troubleshooting guide.
  • johnod1983johnod1983 Members, Plex Pass Posts: 37 Plex Pass
    DrJohnZoidberg wrote on June 28 2015, 3:29 PM: »

    Check the troubleshooting guide.

    I'll give that a shot, thanks. 

  • johnod1983johnod1983 Members, Plex Pass Posts: 37 Plex Pass

    That did it! 

    Thanks again for the help! 

  • drzoidberg33drzoidberg33 Members, Plex Employee, Plex Pass, Plex Ninja Posts: 2,562 Plex Employee
    edited June 2015

    I just want to mention that I highly recommend that when installing PlexPy that you do so using git. This way when a new update is pushed you'll be able to automatically update.

    Please see https://github.com/drzoidberg33/plexpy/wiki/Installationfor guides for different operating systems (for Mac use the "preferred" method).

    Here are instructions for Windows users (NOTE: This will install extra shell extensions and make adjustments to your path environment, if you don't want this stuff you probably also know how to install without having to make these changes).

    1. Go to http://msysgit.github.ioand download git.

    2. Run the installer, select all the defaults except for the section called "Adjusting your PATH environment" - here select "Use Git from the Windows command prompt"

    3. Complete the rest of the install with the default options.

    4. Right click on your desktop and select "Git Gui".

    5. Select "Clone Existing Repository".

    6. In the "Source Location" enter https://github.com/drzoidberg33/plexpy.git

    7. In "Target Directory" create a new folder where you want to install PlexPy to.

    8. Click "Clone".

    9. When it's finished a Git Gui windows will appear, just close this Window.

    10. Browse to where you cloned the PlexPy repository and double click PlexPy.

    You can now use the built-in updater like Linux and Mac users.

  • drzoidberg33drzoidberg33 Members, Plex Employee, Plex Pass, Plex Ninja Posts: 2,562 Plex Employee
    edited June 2015

    Hey guys,

    I've added a note to the OP but please make sure you have a backup of your PlexWatch db. My latest commit writes a new table to the db to try and solve the friendly names issue. It shouldn't cause issues with the existing data but with all the version differences with sqlite it could cause issues with normal PlexWatch operation. If you do notice anything after updating to the latest commit please let me know.

    Also make sure your database is writeable to the Python user running PlexPy otherwise you will get an error like this in the log:

    Can't connect to the database: attempt to write a readonly database

    If you get this, make your db writeable and restart PlexPy (Settings -> Restart).

    Thanks.

  • johnod1983johnod1983 Members, Plex Pass Posts: 37 Plex Pass
    edited June 2015
    DrJohnZoidberg wrote on June 28 2015, 4:46 PM: »

    I just want to mention that I highly recommend that when installing PlexPy that you do so using git. This way when a new update is pushed you'll be able to automatically update.

    Please see https://github.com/drzoidberg33/plexpy/wiki/Installationfor guides for different operating systems (for Mac use the "preferred" method).

    Here are instructions for Windows users (NOTE: This will install extra shell extensions and make adjustments to your path environment, if you don't want this stuff you probably also know how to install without having to make these changes).

    1. Go to http://msysgit.github.ioand download git.

    2. Run the installer, select all the defaults except for the section called "Adjusting your PATH environment" - here select "Use Git from the Windows command prompt"

    3. Complete the rest of the install with the default options.

    4. Right click on your desktop and select "Git Gui".

    5. Select "Clone Existing Repository".

    6. In the "Source Location" enter https://github.com/drzoidberg33/plexpy.git

    7. In "Target Directory" create a new folder where you want to install PlexPy to.

    8. Click "Clone".

    9. When it's finished a Git Gui windows will appear, just close this Window.

    10. Browse to where you cloned the PlexPy repository and double click PlexPy.

    You can now use the built-in updater like Linux and Mac users.

    Followed these steps and it's working great, but in the lower right corner it says "running an unknown version" and the logs shows this error. Any ideas?

    2015-06-28 21:16:56 ERROR Could not retrieve branch name from git. Falling back to master"

  • drzoidberg33drzoidberg33 Members, Plex Employee, Plex Pass, Plex Ninja Posts: 2,562 Plex Employee
    edited June 2015
    johnod1983 wrote on June 29 2015, 1:30 AM: »

    Followed these steps and it's working great, but in the lower right corner it says "running an unknown version" and the logs shows this error. Any ideas?

    2015-06-28 21:16:56 ERROR Could not retrieve branch name from git. Falling back to master"

    A restart after installing git may help.

    Also, if you run:

    git --version

    from the command prompt (Start -> Run -> cmd), what do you get?

    You should get something like this:

    Microsoft Windows [Version 10.0.9926]
    (c) 2015 Microsoft Corporation. All rights reserved.
    
    
    C:\Users\MyUser>git --version
    git version 1.9.5.msysgit.1
    
    
    C:\Users\MyUser>
  • MikeG6.5MikeG6.5 Members, Plex Pass Posts: 2,418 Plex Pass

    Trying to set up the friendly names I'm getting these errors:

    28-Jun-2015 23:18:36 - WARNING :: CP Server Thread-7 : Unable to retrieve friendly name for user MikeGXXX

    28-Jun-2015 23:33:25 - WARNING :: CP Server Thread-3 : Unable to retrieve friendly name for user drezinXXX

    28-Jun-2015 23:34:04 - WARNING :: CP Server Thread-8 : Unable to retrieve friendly name for user MikeGXXX

    I'm trying to edit the names in the user history, which is where I'm guessing you want these edits to take place?  When I go into the individual history afterwards, the new name is there, but not in the over-all history.

  • drzoidberg33drzoidberg33 Members, Plex Employee, Plex Pass, Plex Ninja Posts: 2,562 Plex Employee
    Mike G. wrote on June 29 2015, 1:59 PM: »

    Trying to set up the friendly names I'm getting these errors:

    28-Jun-2015 23:18:36 - WARNING :: CP Server Thread-7 : Unable to retrieve friendly name for user MikeGXXX

    28-Jun-2015 23:33:25 - WARNING :: CP Server Thread-3 : Unable to retrieve friendly name for user drezinXXX

    28-Jun-2015 23:34:04 - WARNING :: CP Server Thread-8 : Unable to retrieve friendly name for user MikeGXXX

    I'm trying to edit the names in the user history, which is where I'm guessing you want these edits to take place?  When I go into the individual history afterwards, the new name is there, but not in the over-all history.

    Haven't got there yet :) Will work on it tonight.

  • johnod1983johnod1983 Members, Plex Pass Posts: 37 Plex Pass
    DrJohnZoidberg wrote on June 29 2015, 9:58 AM: »

    A restart after installing git may help.

    Also, if you run:

    git --version

    from the command prompt (Start -> Run -> cmd), what do you get?

    You should get something like this:

    Microsoft Windows [Version 10.0.9926]
    (c) 2015 Microsoft Corporation. All rights reserved.
    
    
    C:\Users\MyUser>git --version
    git version 1.9.5.msysgit.1
    
    
    C:\Users\MyUser>

    I'll give that a shot when I get home and post back.

  • drzoidberg33drzoidberg33 Members, Plex Employee, Plex Pass, Plex Ninja Posts: 2,562 Plex Employee
    Mike G. wrote on June 29 2015, 1:59 PM: »

    Trying to set up the friendly names I'm getting these errors:

    28-Jun-2015 23:18:36 - WARNING :: CP Server Thread-7 : Unable to retrieve friendly name for user MikeGXXX

    28-Jun-2015 23:33:25 - WARNING :: CP Server Thread-3 : Unable to retrieve friendly name for user drezinXXX

    28-Jun-2015 23:34:04 - WARNING :: CP Server Thread-8 : Unable to retrieve friendly name for user MikeGXXX

    I'm trying to edit the names in the user history, which is where I'm guessing you want these edits to take place?  When I go into the individual history afterwards, the new name is there, but not in the over-all history.

    Pushed complete friendly names into the latest update.

    If you get an error when loading a table do a force refresh (shift + f5) and should be good.

  • johnod1983johnod1983 Members, Plex Pass Posts: 37 Plex Pass
    DrJohnZoidberg wrote on June 29 2015, 9:58 AM: »

    A restart after installing git may help.

    Also, if you run:

    git --version

    from the command prompt (Start -> Run -> cmd), what do you get?

    You should get something like this:

    Microsoft Windows [Version 10.0.9926]
    (c) 2015 Microsoft Corporation. All rights reserved.
    
    
    C:\Users\MyUser>git --version
    git version 1.9.5.msysgit.1
    
    
    C:\Users\MyUser>

    I got 

    git version 1.9.5.msysgit.1

    Also tried a restart. Message is still in the lower right corner.

  • drzoidberg33drzoidberg33 Members, Plex Employee, Plex Pass, Plex Ninja Posts: 2,562 Plex Employee
    johnod1983 wrote on June 29 2015, 9:32 PM: »

    I got 

    git version 1.9.5.msysgit.1

    Also tried a restart. Message is still in the lower right corner.

    Then it should work. Can you check the logs, there should be some lines in there relating to the git commands.

  • johnod1983johnod1983 Members, Plex Pass Posts: 37 Plex Pass
    edited June 2015
    DrJohnZoidberg wrote on June 29 2015, 10:02 PM: »

    Then it should work. Can you check the logs, there should be some lines in there relating to the git commands.

    2015-06-29 17:48:03 INFO Scheduled background task: Check GitHub for updates

    2015-06-29 17:48:02 INFO Starting PlexPy web server on http://192.168.1.14:8181/

    2015-06-29 17:48:02 INFO You are running an unknown version of PlexPy. Run the updater to identify your version

    2015-06-29 17:48:02 DEBUG Latest version is 4936ad0476bd737647bcbbd4938af14b7ffea772

    2015-06-29 17:48:01 DEBUG Requesting URL via GET method: https://api.github.com/repos/drzoidberg33/plexpy/commits/master

    2015-06-29 17:48:01 INFO Retrieving latest version information from GitHub

    2015-06-29 17:48:01 ERROR Could not retrieve branch name from git. Falling back to master

    2015-06-29 17:48:01 DEBUG Unable to find git with command git rev-parse --abbrev-ref HEAD

    2015-06-29 17:48:01 DEBUG Git output: 'git' is not recognized as an internal or external command, 
    operable program or batch file.

    2015-06-29 17:48:01 DEBUG Trying to execute: "git rev-parse --abbrev-ref HEAD" with shell in C:\PlexPy

  • MikeG6.5MikeG6.5 Members, Plex Pass Posts: 2,418 Plex Pass
    edited June 2015

    Just updated to the latest version (version.txt reads:  4936ad0476bd737647bcbbd4938af14b7ffea772)

    And get this error going to the history tab:

    DataTables warning: table id=history_table - Requested unknown parameter '13' 
    for row 0. For more information about this error, please see http://datatables.net/tn/4

    NM, got it with a <shift> <refresh button> on Firefox

    It might be easier to see version numbers if you put them in the log file or in settings someplace.  Just a thought...

  • drzoidberg33drzoidberg33 Members, Plex Employee, Plex Pass, Plex Ninja Posts: 2,562 Plex Employee
    johnod1983 wrote on June 29 2015, 10:09 PM: »

    2015-06-29 17:48:03 INFO Scheduled background task: Check GitHub for updates

    2015-06-29 17:48:02 INFO Starting PlexPy web server on http://192.168.1.14:8181/

    2015-06-29 17:48:02 INFO You are running an unknown version of PlexPy. Run the updater to identify your version

    2015-06-29 17:48:02 DEBUG Latest version is 4936ad0476bd737647bcbbd4938af14b7ffea772

    2015-06-29 17:48:01 DEBUG Requesting URL via GET method: https://api.github.com/repos/drzoidberg33/plexpy/commits/master

    2015-06-29 17:48:01 INFO Retrieving latest version information from GitHub

    2015-06-29 17:48:01 ERROR Could not retrieve branch name from git. Falling back to master

    2015-06-29 17:48:01 DEBUG Unable to find git with command git rev-parse --abbrev-ref HEAD

    2015-06-29 17:48:01 DEBUG Git output: 'git' is not recognized as an internal or external command, 
    operable program or batch file.

    2015-06-29 17:48:01 DEBUG Trying to execute: "git rev-parse --abbrev-ref HEAD" with shell in C:\PlexPy

    johnod1983 wrote on June 29 2015, 10:09 PM: »

    2015-06-29 17:48:03 INFO Scheduled background task: Check GitHub for updates

    2015-06-29 17:48:02 INFO Starting PlexPy web server on http://192.168.1.14:8181/

    2015-06-29 17:48:02 INFO You are running an unknown version of PlexPy. Run the updater to identify your version

    2015-06-29 17:48:02 DEBUG Latest version is 4936ad0476bd737647bcbbd4938af14b7ffea772

    2015-06-29 17:48:01 DEBUG Requesting URL via GET method: https://api.github.com/repos/drzoidberg33/plexpy/commits/master

    2015-06-29 17:48:01 INFO Retrieving latest version information from GitHub

    2015-06-29 17:48:01 ERROR Could not retrieve branch name from git. Falling back to master

    2015-06-29 17:48:01 DEBUG Unable to find git with command git rev-parse --abbrev-ref HEAD

    2015-06-29 17:48:01 DEBUG Git output: 'git' is not recognized as an internal or external command, 
    operable program or batch file.

    2015-06-29 17:48:01 DEBUG Trying to execute: "git rev-parse --abbrev-ref HEAD" with shell in C:\PlexPy

    Hmm, that's weird if you can call it from the command prompt.

    Check if you can do it manually.

    1. From the command line try enter this:

    cd C:\PlexPy
    git rev-parse --abbrev-ref HEAD

    If so you can also run:

    git pull

    from the installation directory, this will grab the latest version.

  • drzoidberg33drzoidberg33 Members, Plex Employee, Plex Pass, Plex Ninja Posts: 2,562 Plex Employee
    Mike G. wrote on June 29 2015, 10:23 PM: »

    Just updated to the latest version (version.txt reads:  4936ad0476bd737647bcbbd4938af14b7ffea772)

    And get this error going to the history tab:

    DataTables warning: table id=history_table - Requested unknown parameter '13' 
    for row 0. For more information about this error, please see http://datatables.net/tn/4

    NM, got it with a <shift> <refresh button> on Firefox

    It might be easier to see version numbers if you put them in the log file or in settings someplace.  Just a thought...

    Cool, yes the browser cache is a bit of an issue especially while I'm push a lot of front-end changes. If anything looks weird just force a refresh to see if that helps first.

    The version number is in the logs if you're using git. I'll put it somewhere for those who aren't using git but those commit version numbers aren't too friendly looking :)

  • JamminRJamminR Members, Plex Pass Posts: 2,475 Plex Pass

    Plexwatch has a compiled Windows exe version that requires no Perl install.

    Any plans to compile your project into an exe so we wouldn't have to install Python? Presume it could be done for *nix/Mac too.

    Once there, could easily add it to a command batch used to start Plex, Plexwatch, and then Plexpy

    :)

    Server - HW: Intel Core I5-4670K, 16GB DDR3 SW: Win10 Pro + PMS v1.7.3
    Misc. HW: HDHR Extend + 4TB RAID1 (Intel) + 4 x 4TB RAID5 (QNAP w/HGST drives)
    Shares - From: 1  - To: 20(6) - Unfortunate lifetime PlexPass data generating product!
    ISP: ~25mbps up/1TB monthly "cap" - (Monthly avg. xfer ~450gb)
    Search the Plex WIKI before asking silly questions.
    Plex stuff I favor - PlexPy - UASv2 - PlexEmail - SS Plex - FMoviesPlus - G2G.FM
  • drzoidberg33drzoidberg33 Members, Plex Employee, Plex Pass, Plex Ninja Posts: 2,562 Plex Employee
    JamminR wrote on June 30 2015, 3:03 AM: »

    Plexwatch has a compiled Windows exe version that requires no Perl install.

    Any plans to compile your project into an exe so we wouldn't have to install Python? Presume it could be done for *nix/Mac too.

    Once there, could easily add it to a command batch used to start Plex, Plexwatch, and then Plexpy

    :)

    I will definitely be doing that once the first stable version is ready.

  • mkennedy2547mkennedy2547 Members, Plex Pass Posts: 74 Plex Pass

    I'm installing as a daemon onto Ubuntu 14.04.2 LTS.  When I install the git, I do not get a directory /opt/plexpy/init-scripts/  

    What am I missing?  

Sign In or Register to comment.