You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jun 13, 2018. It is now read-only.
I have successfully installed tvhProxy, but I need a guide in order to configure the "tvhProxy.py" file.
I just edited the "the URL" and I don't understand if this is the right way or not, nor I don't know if I have to configure something else since there is no guide on the internet at all....
from gevent import monkey; monkey.patch_all()
import time
import os
import requests
from gevent.pywsgi import WSGIServer
from flask import Flask, Response, request, jsonify, abort, render_template
config = {
'bindAddr': os.environ.get('TVH_BINDADDR') or '',
'tvhURL': os.environ.get('TVH_URL') or 'http://tvhproxy:tvhproxy@localhost:9981',
'tvhProxyURL': os.environ.get('TVH_PROXY_URL') or 'http://localhost',
'tunerCount': os.environ.get('TVH_TUNER_COUNT') or 2, # number of tuners in tvh
'tvhWeight': os.environ.get('TVH_WEIGHT') or 300, # subscription priority
'chunkSize': os.environ.get('TVH_CHUNK_SIZE') or 1024*1024, # usually you don't need to edit this
'streamProfile': os.environ.get('TVH_PROFILE') or 'pass' # specifiy a stream profile that you want to use for adhoc transcoding in tvh, e.g. mp4
}
For your: 'tvhURL': os.environ.get('TVH_URL') or 'http://tvhproxy:tvhproxy@localhost:9981',
Means for your Tvheadend (admin user):
Username: tvhproxy (default is admin)
Password: tvhproxy (default is admin)
Address: localhost
Listening on port: 9981
In my configuration I've replaced localhost in the line above and below with the IP address of my Tvheadend, and I have a static IP address assigned to it:
'tvhProxyURL': os.environ.get('TVH_PROXY_URL') or 'http://localhost'
In Plex use your tvhproxy IP address in the format tvhproxy:5004, also assuming your tvhproxy IP address is static. This is probably the same machine your Tvheadend is on.
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Hello,
I have successfully installed tvhProxy, but I need a guide in order to configure the "tvhProxy.py" file.
I just edited the "the URL" and I don't understand if this is the right way or not, nor I don't know if I have to configure something else since there is no guide on the internet at all....
The text was updated successfully, but these errors were encountered: