Posts: 475
Joined: Mar 2016
Reputation:
21
Do you think it would be possible to create an addon program to configure the tvheadend backend (like scanning muxes and adding services/channels) from the kodi interface?
VDR has something like this and it would seem like there may be api access to the configuration that would at least get some basic functions to be configurable from the frontend?
If someone has an idea on where to start - I'd be happy to try and help build the addon. Thanks!
Posts: 806
Joined: Nov 2015
Reputation:
33
While technically possible, it may be difficult. The HTSP protocol that Tvheadend uses isn't fully documented, but there is a JSON-RPC endpoint in the Tvheadend server, IIRC.
Posts: 3,735
Joined: Dec 2010
Reputation:
53
negge
yo guysv7may bd latr tomorroe
Posts: 3,735
Not possible at the moment, tvheadend doesn't have an API for that. The newer versions of tvheadend have a wizard though when you enter the web interface for the first time, that's about as easy as it's going to get at the moment.
Posts: 475
Joined: Mar 2016
Reputation:
21
That's unfortunate - I'm trying to setup a standalone ATSC DVR type setup that wouldn't need a network for basic use. Maybe Tvh isn't the best choice for this.
Posts: 216
Joined: Jun 2014
Reputation:
11
2016-09-24, 17:50
(This post was last modified: 2016-09-24, 17:51 by M4tt0.)
Not exactly sure I understand you correctly, but if I do there is no problem with what you are looking for. Just get some NUC with tuners or Wetek or something, install LibreElec with both, a TVH server (probably 4.2) and pvr.hts TVH client. Install the Chromium webbrowser in Kodi and use that to connect to localhost (this is where your TVH "server" will be running). You can then still configure the backend on that NUC or Wetek or whatever via webbrowser without using "another computer". I would only recommend to attach some mouse and/or keyboard for the configuration process, but otherwise you should be ok...
Posts: 17,859
Joined: Jul 2011
Reputation:
371
imo configure TVH is a bit too complicated to do from simple kodi addon. A webinterface like it now has is the best way to go.
Posts: 475
Joined: Mar 2016
Reputation:
21
Most of the correct settings can be configured in the build...the option that would be worth adding is a mux scan and services (channels) add. In the USA if you want to provide an OTA ATSC based tuner/dvr - you need to allow the end user to rescan for channels. We have 210 different television markets and people move around - like in RVs - so they need to be able to easily rescan channels.
It could be that TVH is too big for this and I should investigate an alternative backend - but it runs well on budget amlogic based devices...so building an affordable dvr seems possible. I'm just trying to solve this basic end user need. I am happy to build the kodi addon - I am just trying to figure out how to access the TVH functions I need. Which may not be possible if an api doesn't exist.
Posts: 1,886
Joined: Jan 2015
Reputation:
126
ksooo
Team-Kodi Developer
Posts: 1,886
As long as tvheadend does not offer an API for channel scan and mux config there is nothing we can do on the Kodi side.