Git Product home page Git Product logo

plexwatch's Introduction

This is a Dockerfile for plexWatch (https://github.com/ljunkie/plexWatch) and plexWatchWeb (https://github.com/ecleese/plexWatchWeb)

Prerequisites

Upgrade Instructions

  • Stop the container, delete the container, and follow the new installation instructions.
  • Note: if you are having any problems at all with your existing container, delete config.pl and config.php to start fresh.

New Installation Instructions

  • Start watching a movie in Plex, leave it running
  • Run the docker in host mode:
docker run -d --net="host" --name="plexWatch" -v "/path/to/plexWatch/":"/plexWatch":rw -v "/path/to/plex/logs/":"/logs":ro -v /etc/localtime:/etc/localtime:ro -p 8080:8080 needo/plexwatch

Where:

  • plexWatch:

    • the path in the container should be "/plexWatch"
    • the path on the array should be something like "/mnt/cache/cache_only/plexWatch/" (this directory will contain the config.pl and config.php files you may need to edit)
    • the container needs read/write access
    • example: "/mnt/cache/cache_only/plexWatch/":"/plexWatch":rw
  • logs:

    • the path in the container should be "/logs"
    • the path on the array should be something like "/mnt/cache/appdata/Plex/Library/Application Support/Plex Media Server/Logs/" (this directory should contain a file named "Plex Media Server.log")
    • the container needs read only access
    • example: "/mnt/cache/appdata/Plex/Library/Application Support/Plex Media Server/Logs/":"/logs":ro
  • Try it out: http://server:8080/plexWatch/

If all goes well, plexWatchWeb will load and show you the movie that is currently playing in Plex.

If the container stops immediately or you get an error message, see the "Troubleshooting" section.

Host mode vs Bridge mode

The easiest way to setup the plexWatch docker is to run it in host mode. But if you would like to run it in bridge mode:

  • Change the "server" value in config.pl and the "pmsIp" value in config.php from "localhost" to the ip address of your server.
    • Note: If you ever switch back to host mode, change those values back to "localhost"
  • Put your Plex username and password in both the config.pl and config.php files.

Then run the plexWatch docker in bridge mode:

docker run -d --net="bridge" --name="plexWatch" -v "/path/to/plexWatch/":"/plexWatch":rw -v "/path/to/plex/logs/":"/logs":ro -v /etc/localtime:/etc/localtime:ro -p 8080:8080 needo/plexwatch

Note that Plex itself should still be run in host mode.

Track IP Addresses

If you want to track the IP Addresses of your Plex users:

  • Login to Plex and go to Settings -> Server -> Network and click Show Advanced. Then enable debug logging.
  • Modify config.pl and change $log_client_ip from 0 to 1
  • After a few minutes, plexWatch will start tracking IP addresses

Troubleshooting

To read the docker logs:

  • From the unRAID docker manager, click on the status/log column
  • Or from a shell type "docker logs plexWatch"

Common errors:

  • If the log shows "Unable to locate the 'Plex Media Server.log' file":

    • Check your paths as described in the "New Installation Instructions" section. Capitalization matters.
  • If the log shows: "AH00558: apache2: Could not reliably determine the server's fully qualified domain name..."

    • It is safe to ignore this message
  • If plexWatchWeb loads, but gives a "Failed to access plexWatch database" error message:

    • Login to Plex and go to Settings -> Server -> Connect. Verify that the account you are signed in as has a Plex Pass.
    • Start watching a movie, wait a few minutes, then try accessing plexWatchWeb again.
  • If plexWatchWeb loads, but gives a "Failed to access Plex Media Server" error message:

    • Ensure the Plex docker is running(!) and is in host mode
    • Review the "Host mode vs Bridge mode" section. It is likely that the wrong server ip or wrong username/pasword is specified in the config files. The same details need to be provided in both config.pl and config.php.
  • Still having problems?

    • Review the docker log as described above
    • Review the debug.log file located in your plexWatch directory
    • If you have edited config.pl or config.php, delete them and restart the docker to start fresh

plexwatch's People

Contributors

ljm42 avatar needo37 avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

plexwatch's Issues

The "recently_added" feature does not work

Needo, would you consider modifying the cron file to look like

* * * * * /plexWatch/plexWatch.pl --recently_added

This would enable notifications for recently added media as well as the current watching statuses. If a user didn't want the recently added content, they could simply disable the option in their config file. Otherwise, it is currently impossible for someone who wanted this feature to enable it.

plexWatch.pl not running

The plexWatch process does not seem to be running. I am using a DB from my previous install so the setup of the web portion is all kosher but the DB size is not growing and no new items are being added.

Can't start plexWatch in last few days

I've been unable to start plexWatch in the last few days - it seems as if there are issues getting updates for phusion 0.9.11.

I made a copy of your docker and changed for 0.9.15 and with that, all works fine.
Could you please update your repository to use phusion 0.9.15 or later?

Thanks!

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.