Giter VIP home page Giter VIP logo

docker-plexwatch's Introduction

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

The docker is based on the work of needo37 (https://github.com/needo37/plexWatch)

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 8084:8084 l3rd/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:8084/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 8084:8084 l3rd/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

docker-plexwatch's People

Contributors

l3rd avatar ljm42 avatar needo37 avatar

Watchers

 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.