XMLTV guide data

Want to write your own code to work with a HDHomeRun or work with the HDHomeRun DVR? We are happy to help with concepts, APIs, best practices.
Post Reply
signcarver
Expert
Posts: 11404
Joined: Wed Jan 24, 2007 1:04 am
Device ID: 10A05954 10802091 131B34B7 13231F92 1070A18E 1073ED6F 15300C36
x 45

Re: XMLTV guide data

Post by signcarver »

Just to be clear, you are using the DeviceAuth(s) of the tuner for the "key" (changes every 8 hours and on reboot of hdhr, also requires device to have internet access) and not just mykey for the "key" and you also subscribe to the dvr service and you have a modern tuner that supports the dvr.

bitl3ss
Posts: 3
Joined: Sun Mar 16, 2025 8:29 am

Re: XMLTV guide data

Post by bitl3ss »

Thanks for checking, my DeviceID":"10A45CDA"

nickk
Silicondust
Posts: 20611
Joined: Tue Jan 13, 2004 9:39 am
x 322

Re: XMLTV guide data

Post by nickk »

bitl3ss wrote: Sun Mar 16, 2025 2:06 pm Thanks for checking, my DeviceID":"10A45CDA"
I am not seeing your account as being subscribe to the DVR guide service. This is a requirement for XMLTV access.

bitl3ss
Posts: 3
Joined: Sun Mar 16, 2025 8:29 am

Re: XMLTV guide data

Post by bitl3ss »

So I am not subscribed to the DVR service, I assumed since my Flex-4k could download the guide data that I could as well. I guess I missed the subscription requirement.

lwizard
Posts: 4
Joined: Sun Apr 06, 2025 2:27 am

Re: XMLTV guide data

Post by lwizard »

I subscribed Premium because I would like to use XMLTV epg with Emby.
But Now I understand that every 8 hours deviceauth expires.
So I have to open http://hdhomerun.local/discover.json copy new auth and past in Emby.
Every day If I want to be really up to date.

Is there a way to avoid that?
Why not giving me a link to an API with no need to authcode? Maybe simply a device code and your serve verify the service is active?
Although maybe someone could suggestb me a scripto for linux (I run Emby on synology) to download discover.json, extract the deviceauth, generate the api url with actual deviceauth and download it in a folder. Than I point emby to that folder?

I don't code from ages, should be very simple, maybe someone of you is already able to do that?

Thank!!!

lwizard
Posts: 4
Joined: Sun Apr 06, 2025 2:27 am

Re: XMLTV guide data

Post by lwizard »

lwizard wrote: Sun Apr 06, 2025 2:34 am I subscribed Premium because I would like to use XMLTV epg with Emby.
But Now I understand that every 8 hours deviceauth expires.
So I have to open http://hdhomerun.local/discover.json copy new auth and past in Emby.
Every day If I want to be really up to date.

Is there a way to avoid that?
Why not giving me a link to an API with no need to authcode? Maybe simply a device code and your serve verify the service is active?
Although maybe someone could suggestb me a scripto for linux (I run Emby on synology) to download discover.json, extract the deviceauth, generate the api url with actual deviceauth and download it in a folder. Than I point emby to that folder?

I don't code from ages, should be very simple, maybe someone of you is already able to do that?

Thank!!!
OK I'm getting improvemente
with
curl http://IP/discover.json | jq -r '.DeviceAuth'

I'm getting the string I need.
I'll go on now, I have to create the wget command with the url + string I have got, should be simple...

lwizard
Posts: 4
Joined: Sun Apr 06, 2025 2:27 am

Re: XMLTV guide data

Post by lwizard »

Sorry, I really need an help.
I got the correct way to get the deviceauth an do a wget with the url + code.
But both with wget and curl if I try to get https://api.hdhomerun.com/api/xmltv?Dev ... *********p
i get an error 400: bad request
If I past the same url in windows chrome I see the xmltv guide without problems....

nickk
Silicondust
Posts: 20611
Joined: Tue Jan 13, 2004 9:39 am
x 322

Re: XMLTV guide data

Post by nickk »

lwizard wrote: Sun Apr 06, 2025 6:57 am Sorry, I really need an help.
I got the correct way to get the deviceauth an do a wget with the url + code.
But both with wget and curl if I try to get https://api.hdhomerun.com/api/xmltv?Dev ... *********p
i get an error 400: bad request
If I past the same url in windows chrome I see the xmltv guide without problems....
The xmltv service requires the use of gzip compression which browsers do by default.

Add the following to wget: --header="Accept-Encoding: gzip"
Add the following to curl: -H "Accept-Encoding: gzip"

The file saved to disk will be gzip compressed.

lwizard
Posts: 4
Joined: Sun Apr 06, 2025 2:27 am

Re: XMLTV guide data

Post by lwizard »

Thank you so much!
Worked perfectly.

paulsaz
Posts: 104
Joined: Tue Jun 28, 2011 10:04 am
x 2

Re: XMLTV guide data

Post by paulsaz »

Thanks everyone for their help. I finally have epg123 setup with my HDHomerun Quattro with a fully functioning epg. My problem was I didn't have the epg 123 service starting with Windows. Now everything works fine.

Playlist: http://192.168.1.***/lineup.m3u (ip of your HDHomeRun)
epg: http://192.168.1.***:9009/output/hdhr2mxf.xmltv (ip of your computer that has epg123)

edited to correct spelling in epg link
Last edited by paulsaz on Mon Apr 28, 2025 4:41 pm, edited 1 time in total.

garyan2
Posts: 67
Joined: Sun Aug 19, 2018 9:36 am
x 5
Contact:

Re: XMLTV guide data

Post by garyan2 »

paulsaz wrote: Mon Apr 21, 2025 6:15 pm Thanks everyone for their help. I finally have epg123 setup with my HDHomerun Quattro with a fully functioning epg. My problem was I didn't have the epg 123 service starting with Windows. Now everything works fine.

Playlist: http://192.168.1.***/lineup.m3u (ip of your HDHomeRun)
epg: http://192.168.1.***:9009/output/hdhr2mxr.xmltv (ip of your computer that has epg123)
You know you can get the m3u from http://192.168.1.***:9009/output/hdhr2mxf.m3u as well. The benefit being the m3u and xmltv channel IDs will be the same so programs can generally automatically map guide listings to tuner channels.

paulsaz
Posts: 104
Joined: Tue Jun 28, 2011 10:04 am
x 2

Re: XMLTV guide data

Post by paulsaz »

garyan2 wrote: Fri Apr 25, 2025 10:38 pm
paulsaz wrote: Mon Apr 21, 2025 6:15 pm Thanks everyone for their help. I finally have epg123 setup with my HDHomerun Quattro with a fully functioning epg. My problem was I didn't have the epg 123 service starting with Windows. Now everything works fine.

Playlist: http://192.168.1.***/lineup.m3u (ip of your HDHomeRun)
epg: http://192.168.1.***:9009/output/hdhr2mxr.xmltv (ip of your computer that has epg123)
You know you can get the m3u from http://192.168.1.***:9009/output/hdhr2mxf.m3u as well. The benefit being the m3u and xmltv channel IDs will be the same so programs can generally automatically map guide listings to tuner channels.
Thanks. I'm moving my plex server from a Shield TV to a old Pentium silver laptop running Windows 11 Pro with a 5tb usb 3.0 HD and will use these settings above for my tivimate settings on the network. So far I'm happy with the laptop using between 6 and 8 watts for the always on server.

Post Reply