I'm not sure it will work on 9.10 as some packages are broken for warden jails. If you upgrade to 11.1 and use iocage jails this will work.
Inside the jail run these commands to install the script:
Code:
pkg install -y git python py27-pip nano
git clone https://github.com/jkaberg/tvhProxy.git
cd /root/tvhProxy && pip install -r requirements.txt
Lets edit the script settings:
Code:
nano /root/tvhProxy/tvhProxy.py
The bind address is the jails IP,
the tvhURL is the ip of the tvheadend server with login credentials,
tvhProxyURL is the ip of the tvheadend server. Once edited the lines should look like this (with your ip's ofcourse):
'bindAddr': os.environ.get('TVH_BINDADDR') or '192.168.1.36',
'tvhURL': os.environ.get('TVH_URL') or '
http://user:password@192.168.1.15:9981',
'tvhProxyURL': os.environ.get('TVH_PROXY_URL') or '
http://192.168.1.15'
Exit it out of the editor and run the script with
Go on plex and add the ip manually with the port so jailIP:5004.
Click connect, even if a picture doesn't show up, the continue button will be enabled, that means it works. Cancel out of the plex setup now that you know it works.
Back in the jail lets hit ctrl + c to stop the script.
To get it running on reboot do this
Code:
setenv VISUAL /usr/local/bin/nano
setenv EDITOR /usr/local/bin/nano
Edit the crontab:
Paste this in and save it:
Code:
@reboot python /root/tvhProxy/tvhProxy.py &
Restart the jail and go on plex to set it up.
Note: After adding it the first time on plex, the tuner will say Not found on plex, dont worry it works. After you restart plex once the message will go away.