Project

General

Profile

A better EPG for the web interface?

Added by Paul M 11 months 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.

Someone did a mockup, and posted an image, which I'll shamelessly steal:

as part of this discussion:
https://tvheadend.org/boards/5/topics/10484?r=10980
but that mobile EPG mentioned has been abandoned :-(

I'd be interested in working with someone on this.


Replies (25)

RE: A better EPG for the web interface? - Added by Paul M 11 months ago

thanks for that suggestion. it also helps prove my point about there having been many attempts to start an EPG but they have floundered.

So, I thought I would add yet another one ;-)

Here's a really crude now/next EPG, it needs a lot of work, is ugly and functional, is a proof of concept in talking to the API:

https://github.com/speculatrix/tvh_epg

The README has a roadmap of things that it needs to become more useful.

RE: A better EPG for the web interface? - Added by Paul M 11 months ago

I've made good progress on this. You can view a sorted list of channels and click them to get an m3u, and a very crude now and next view of an EPG.

One problem I don't know how to solve is to get the stream URL with the auth token, so you get asked for username and password by VLC when opening the m3u.

edited to remove old screenshots

RE: A better EPG for the web interface? - Added by Paul M 11 months ago

I just spotted the discussion about adding a grid view to TVH itself.
https://tvheadend.org/boards/5/topics/33208

I'd be delighted if my work was rendered obsolete by a grid view in tvh.

RE: A better EPG for the web interface? - Added by Paul M 11 months ago

saen acro wrote:

https://github.com/TomBZombie/vlc-htsp-plugin

https://github.com/dave-p/TVH-API-docs/wiki

Thanks, I've come to the conclusion that the authentication token can only be retrieved using the htsp interface not the api.

RE: A better EPG for the web interface? - Added by Paul M 11 months ago

I've cargo-culted a load of CSS and have made progress with the now/next view. It's still pretty crap, but beginning to look useful.

The major flaw in that is that programs are all aligned on the left, rather than with their starting time.

now/next CSS progress

RE: A better EPG for the web interface? - Added by Dave Pickles 11 months ago

Another one to throw int the mix:

https://github.com/dave-p/TVHadmin

More user-friendly than the TVH UI, though it does need a php-enabled web server to run. The 'timeline' screen is still work-in-progress.

RE: A better EPG for the web interface? - Added by Mark Clarkstone 11 months ago

Dave Pickles wrote:

Another one to throw int the mix:

https://github.com/dave-p/TVHadmin

More user-friendly than the TVH UI, though it does need a php-enabled web server to run. The 'timeline' screen is still work-in-progress.

I like the fact that you've not over-done it with javascript and really only used it where needed. From the screenshots it appears to be simple to use. Looking at the PHP code however reveals a few security issues, but you already know about those :).


I personally would love to see Python/Micropython embed in TVH to make it easier to develop the frontend, but this sadly has MANY drawbacks.. It's much much slower and has many security issues. So I doubt it would ever happen.

Another option would be to phase-out the current frontend views and simply provide a HTTP API. That way people could DIY, again I don't think this is popular either.

Just my views on this :)

RE: A better EPG for the web interface? - Added by Em Smith 11 months ago

I like the "recordings" view on that Tvhadmin since it's easy to read (though I prefer recent at the top). The implementation reminds me of "mythweb".

And the timeline is nice and compact. Can you click on anything? Or did I install it incorrectly?

RE: A better EPG for the web interface? - Added by Dave Pickles 11 months ago

I like the "recordings" view on that Tvhadmin since it's easy to read (though I prefer recent at the top). The implementation reminds me of "mythweb".

It's basically a re-implementation of VDRadmin, so I can't claim any originality :)

And the timeline is nice and compact. Can you click on anything? Or did I install it incorrectly?

It's very much work-in-progress. Ideally there would be hover-text with the event summary (though performance may suffer!) and some way of triggering recordings.

RE: A better EPG for the web interface? - Added by Em Smith 11 months ago

On modern browsers, I imagine it's possible to implement an htsp client using Javascript. That would allow you to do everything that Kodi can do, but would not allow any of the advanced config that the existing UI allows.

I'm not convinced we need anything embedded in the server (callbacks are a pain due to the python GIL). That's not to say an embedded language wouldn't be useful for advanced user configuration, such as generating filenames, or taking actions when files are deleted or finished recording.

But many might be better off just using edit4ever!'s tvh2kodi that runs inside Kodi to do the tvh configuration. It offers a nice menu based system, where you just go 1,2,3,4,5 and then everything is mapped, scanned, and working.

RE: A better EPG for the web interface? - Added by Tim Bremer 11 months ago

saen acro wrote:

http://ericandchar.com/xsltvgrid/ >> https://github.com/jtognazzi/xsltv

not working here, I have got a tv.xml and extracted files for each day, but nothing happens.

Dave Pickles wrote:

https://github.com/dave-p/TVHadmin

Seems very promising and a php-enabled web server should not be a problem as tvh is running on linux systems only.

RE: A better EPG for the web interface? - Added by saen acro 11 months ago

Tim Bremer wrote:

saen acro wrote:

http://ericandchar.com/xsltvgrid/ >> https://github.com/jtognazzi/xsltv

not working here, I have got a tv.xml and extracted files for each day, but nothing happens.

wget -O tv.xml http://tvh.ip:9981/xmltv/channels

/this without epg are from iptv/

RE: A better EPG for the web interface? - Added by saen acro 11 months ago

Tim Bremer wrote:

saen acro wrote:

http://ericandchar.com/xsltvgrid/ >> https://github.com/jtognazzi/xsltv

not working here, I have got a tv.xml and extracted files for each day, but nothing happens.

wget -O tv.xml http://tvh.ip:9981/xmltv/channels

/this without epg are from iptv/

RE: A better EPG for the web interface? - Added by Paul M 11 months ago

I've made a big jump in the now/next time line, things align reasonable accurately, and it's clear whether a program is in progress and how much you've missed!

https://github.com/speculatrix/tvh_epg

RE: A better EPG for the web interface? - Added by Paul M 11 months ago

fresh screenshot

RE: A better EPG for the web interface? - Added by saen acro 11 months ago

If you use

/usr/local/share/tvheadend/src/webui/static/

to put source of project
/usr/local/share/tvheadend/src/webui/static/{appname}
then it will be integrated in tvh ;)

example
https://github.com/polini/TvheadendMobileUI

your design is near...

RE: A better EPG for the web interface? - Added by Paul M 11 months ago

If anyone's been watching my TVH EPG project, you'll see that I implemented channel filters using the tags, and a record function, and user preferences, and optional channel icons.
it's not as fugly as it was, it's pretty basic, but it works OK and is fairly lightweight (channel icons does slow it down).

RE: A better EPG for the web interface? - Added by Paraic McDonagh 11 months ago

Has anyone checked out this? https://github.com/stepborc/TvheadendMobileUI
It's a feature rich mobile and webinterface TV guide for TVH. Sounds like what you are looking for.
There are various forks.

RE: A better EPG for the web interface? - Added by Paul M 11 months ago

https://github.com/stepborc/TvheadendMobileUI
"@stepborc
stepborc Add classes for recordline
Latest commit d3262d9 on 17 Jan 2017"

ok, so still probably abandoned like many others but only abandoned 22 months ago, most others much older.

RE: A better EPG for the web interface? - Added by Paul M 11 months ago

also "forked from polini/TvheadendMobileUI"

RE: A better EPG for the web interface? - Added by Paul M 6 months ago

I added a feature to my EPG to set a persistent auth code, and thus you don't need to enter a username/password when opening a stream in VLC.

I'd be delighted if someone forked my repo and did some work on the UI to stop it being so ugly ;-)

edit.. sorry, correct URL:
https://github.com/speculatrix/tvh_epg

I accidentally pasted this, which is one of my other projects, a web interface for get_iplayer. might be useful for people building a media server and you want to include BBC iplayer programs too. https://github.com/speculatrix/web_get_iplayer

    (1-25/25)