geertbongers / tvhProxy

An small flask app to help Plex DVR connect with Tvheadend
Other
6 stars 4 forks source link

tvhProxy

A small flask app to proxy requests between Plex Media Server and Tvheadend.

tvhProxy configuration

  1. In tvhProxy.py configure options as per your setup.
  2. Create a virtual enviroment: $ virtualenv venv
  3. Activate the virtual enviroment: $ . venv/bin/activate
  4. Install the requirements: $ pip install -r requirements.txt
  5. Finally run the app with: $ python tvhProxy.py

systemd service configuration

A startup script for Ubuntu can be found in tvhProxy.service (change paths in tvhProxy.service to your setup), install with:

$ sudo cp tvhProxy.service /etc/systemd/system/tvhProxy.service
$ sudo systemctl daemon-reload
$ sudo systemctl enable tvhProxy.service
$ sudo systemctl start tvhProxy.service

Plex configuration

Enter the IP of the host running tvhProxy including port 5004, eg.: 192.168.1.50:5004