Project

General

Profile

I have written a better EPG

Added by Paul M over 2 years ago

I'm sorry but I know this has been covered in various ways when discussing apps, but I don't think it's been specifically discussed about the web interface that you access from laptop or desktop.

The default EPG in TVH is useful if you want to look for a specific channel, or search for a specific program. However, unlike most DVRs, there doesn't appear to be a grid view with channels listed vertically and "now and next" listed horizontally.


Replies (37)

RE: I have written a better EPG - Added by Paul M 6 months ago

I had a look the dave-p/TVHadmin interface and it's pretty good, the timeline view is close to what I want to achieve.

things I would add to it in configuration:
  • persistent auth token setting
  • separate URL for connection to service for internal use vs the URL that is given to streaming players
things I would add to it in timeline view:
  • persistent auth token for streaming
  • when you click, set the downloaded file to be "tvheadend.m3u" so you can open it from the browser in chosen app, e.g. vlc
  • in timeline, hover the mouse for more information, the 2nd title and exact start and end times
  • add chromecast support
  • add a button to record the show
  • filter channels by name or tag
things I would add in recordings view:
  • when you click, set the downloaded file to be "tvheadend.m3u" so you can open it from the browser in chosen app, e.g. vlc
  • set the URL to contain username/password for the streaming player
  • filter by name or channel or something

RE: I have written a better EPG - Added by Dave Pickles 6 months ago

It seems a few of us have been using our "lockdown" time to write Tvheadend interfaces...

I've created a Javascript version of TVHadmin - https://github.com/dave-p/TVHadmin-JS
It's pure Javascript with no external dependencies and loads from the Tvheadend server - no external web server needed. It uses the same authentication as the native web interface. The only requirement is a reasonably up-to-date browser on the client - IE definitely will not work.

RE: I have written a better EPG - Added by Paul M 6 months ago

I saw that, Dave and I am impressed. Please feel free to steal any of my code if you think it will benefit your EPG.

RE: I have written a better EPG - Added by Dave H 6 months ago

I just tried to install and run TVHadmin-JS but I'm obviously doing something wrong.

I went to https://github.com/dave-p/TVHadmin-JS and am trying to follow the instructions there.

My TVH has a /usr/share/tvheadend/src/webui/static/ directory (created by my distro) so that's where I created a tvhadmin directory. The instructions say to copy the repository there and I'm not sure what that means. So I did

$ git clone https://github.com/dave-p/TVHadmin-JS.git

I then went to http://localhost:9981/static/tvhadmin/TVHadmin.html

and got a server error message and the TVH log said

2020-11-26 17:37:45.301 webui: failed to open src/webui/static/tvhadmin/TVHadmin.html
2020-11-26 17:37:45.301 http: 127.0.0.1: HTTP/1.1 GET /static/tvhadmin/TVHadmin.html -- 500

Now I believe that's because the file is actually a directory lower and a request for

http://localhost:9981/static/tvhadmin/TVHadmin-JS/config.html

does work, so I don't know whether the instructions are wrong or just unclear and I did something wrong.

RE: I have written a better EPG - Added by Dave Pickles 6 months ago

The intention was that you would create a new directory 'tvhadmin' under /usr/share/tvheadend/src/webui/static/ and then manually move the files into there. However it is much simpler to just do a git clone into /usr/share/tvheadend/src/webui/static/ so I'll change the instructions. The URL should then be http://your.ip:9981/static/TVHadmin-JS/TVHadmin.html

Thanks for the bug report!

RE: I have written a better EPG - Added by Dave H 6 months ago

So I'm enjoying having a look at this interface. Thanks!

One suggestion. On the timeline, the strap with the date and times should be part of the fixed header, not part of the vertically scrolling frame. And yes it should also be part of the horizontally scrolling frame, so I suppose that means nested frames are required.

PS dunno if 'frame' is the correct word here.

RE: I have written a better EPG - Added by Dave H 6 months ago

Dave Pickles wrote:

The intention was that you would create a new directory 'tvhadmin' under /usr/share/tvheadend/src/webui/static/ and then manually move the files into there. However it is much simpler to just do a git clone into /usr/share/tvheadend/src/webui/static/ so I'll change the instructions. The URL should then be http://your.ip:9981/static/TVHadmin-JS/TVHadmin.html

Apart from that I was I thought following the instructions, the reason I created the initial tvhadmin directory was so I could change ownership to my own user before I did anything else.

/usr/share/tvheadend/src/webui/static/ belongs to my distro, and anything I do in there is 'naughty' and will get wiped out or complained about whenever I do an upgrade, so I wanted to be very sure I could easily recognize anything I had put in there.

Dunno if there's anywhere else in the user-controlled part of the tree where I could put stuff and have TVH find it?

RE: I have written a better EPG - Added by David G 6 months ago

Umm, I just tried to update to the latest tvh_epg.py file but it produces the attached error for me?

EDIT: Sorted, after updating you need to go to the settings tab, check "Maximum Number Of Channels", then submit. I just left it set at 500.

tmp00rvbjzv.html (9.1 KB) tmp00rvbjzv.html error file

RE: I have written a better EPG - Added by Paul M 6 months ago

thanks David G, I will address that bug.

I have to set my channel max to 1700 for freesat, but I have a config error and a lot of duplicated channels.

RE: I have written a better EPG - Added by Paul M 6 months ago

David P, maybe hack in an install.sh script which simply rsync's the files to the required directory and sets the appropriate ownership?

RE: I have written a better EPG - Added by Paul M 3 months ago

I squashed a few bugs and added a few features, thanks to dgilbert2 on guthub for his help and patience.

RE: I have written a better EPG - Added by Paul M 3 months ago

if I add some new settings then yes, it should advice that you need to go to the settings page to update things.

(26-37/37)