Project

General

Profile

mapping channels to EPG

Added by Mathew Arndt over 11 years ago

Hi.

Tvheadend 3.2.34

Background:

I've got a Hauppage 2250 dual tuner working. TVH finds all the channels and I can watch them. Can't seem to get the EPG to populate.

What I've done:

1) Used tv_grab_na_dd to get program information from Schedules Direct into xmltv.xml file. Placed the xmltv.xml file in /home/hts and /home/hts/.hts/tvheadend

2) Opened xmltv.xml file to find channel names. Looks like this:

<station id='20368'>
<callSign>KSLDT</callSign>
<name>KSLDT (KSL-DT)</name>
<fccChannelNumber>38</fccChannelNumber>
<affiliate>NBC Affiliate</affiliate>
</station>

3) Went to TVH WebUI. Went to Configuration > TV Adapters > Services and typed the <callSign> name into the "Channel Name" column corresponding to the "Service Name" column for each channel.

4) Restarted TVH.

5) Went back to Configuration > Channels and the channel names are updated but the "EPG Grab Source" is empty. When I click on the "EPG Grab Source" drop down box it tries to load but nothing lists. I try to type the channel name in here but it won't save here and empties.

Questions:

1) Generally, what am I missing?
2) Am I putting the xmltv.xml file in the correct place? Since I'm using tv_grab_na_dd and Schedules Direct for my program info, how do I tell TVH about this? Must I still enable the EPG Grabber for it to see any xmltv.xml file? Where does it look? And if so, what setting is best (see the TVH version)?
3) Am I mapping the channels to the xmltv.xml file correctly? I do this from the TV Adapter settings, right? If not, where? Remember that I cannot select the "EPG Grab Source" drop down. Where does the "EPG Grab Source" get its info anyway?

I'm so close to functionality, and I'd be willing to write a newer tutorial with the new WebUI once I get all these steps in order. Just missing the EPG last step.

Thanks in advance,
Mathew


Replies (4)

RE: mapping channels to EPG - Added by Mathew Arndt over 11 years ago

Figured out my own problem after a lightbulb went off.

Under Configuration > EPG Grabber ... Set the External xmltv.sock on. Then realized that you have to send the EPG data to the xmltv.sock via tv_grab_na_dd

sudo tv_grab_na_dd | nc -U /home/hts/./hts/tvheadend/epggrab/xmltv.sock

Then it populates the EPG for channels that you've defined correctly (based on the XML file). So, then define the channels and you'll have all EPG info. Shows up in XBMC now as well.

Thanks.

RE: mapping channels to EPG - Added by Prof Yaffle over 11 years ago

can you not use the XMLTV internal grabber? It amounts to the same thing, but it's a little unusual to use the socket interface to import unmodified XMLTV data, I think.

XMLTV: North America (Data Direct) is defined as a valid source, so you'd simply need to select that and configure it from the command line.

RE: mapping channels to EPG - Added by Mathew Arndt over 11 years ago

You're right I could use the internal grabber. But for some reason my tv_grab_na_dd only fetches from Schedules direct not Data direct. The tv_grab_na_dd.conf config file doesn't specify where to fetch from, just the username password, etc.

So, how do I tell tv_grab_na_dd where to fetch from. Where is that config file?

THen I'll be able to use the internal grabber Data Direct rather than the Schedules Direct.

Thanks for any pointers.

Mathew

RE: mapping channels to EPG - Added by Prof Yaffle over 11 years ago

Looking at the script, it looks like tv_grab_na_dd pulls data from Schedules Direct, which in turn uses data from Data Direct. The script declares itself in the XMLTV::Description as 'North America (Data Direct)', which is what appears in tvheadend's listing.

Sooo.... run/configure tv_grab_na_dd to set up the XMLTV feed, then select the Data Direct feed in tvheadend's external grabbers, and you should have that feed automatically without using the socket interface.

    (1-4/4)