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
paulsaz
Posts: 94
Joined: Tue Jun 28, 2011 10:04 am
x 1

Re: XMLTV guide data

Post by paulsaz »

EddieP wrote: Wed Apr 12, 2023 11:01 am I do not get any of the errors you posted are you sure you are running the latest epg123.
I do have the latest version. Even with the errors it created the xmltv file that I the uploaded to Dropbox and seems to work.

Now the big question, is there anyway to automate the process like when using epg123 with schedules direct? I currently use epg123 with Schedules Direct that runs daily and outputs the file to my Dropbox folder.

paulsaz
Posts: 94
Joined: Tue Jun 28, 2011 10:04 am
x 1

Re: XMLTV guide data

Post by paulsaz »

I have to say I'm new to this, but for the guide data and TiviMate:

Question about the API. How can I get tivimate to use the API if the authorization can change daily? I put the info in TiviMate and it worked, but the next day the api had expired. It seems like there must be a way to do this.

garyan2
Posts: 64
Joined: Sun Aug 19, 2018 9:36 am
x 4
Contact:

Re: XMLTV guide data

Post by garyan2 »

paulsaz wrote: Wed Apr 12, 2023 10:33 am
EddieP wrote: Wed Apr 12, 2023 5:58 am
paulsaz wrote: Tue Apr 11, 2023 8:23 pm I'm not the best at this. Can you explain how to use the HD home run data with epg123? My Schedule Direct subscription ends in May. I've been using epg123 to run daily with SD data and export that to a Dropbox file.
When you Install epg123 it gives you the option to also Install HDHR2MXF if you did not click that option try re-install of epg123. Then you can run it. It will create C:\ProgramData\GaRyan2\epg123\output\hdhr2mxf.xmltv that you can copy to anywhere.
Got this error in the log when I ran the hdhr2mxf.exe

[4/12/2023 10:29:09 AM] [ INFO] HDHomeRun DVR Service is active.
[4/12/2023 10:29:09 AM] [ INFO] Downloading available 14-day XMLTV file from SiliconDust.
[4/12/2023 10:29:13 AM] [ INFO] Writing the MXF file to "C:\ProgramData\GaRyan2\epg123\output\epg123.mxf"
[4/12/2023 10:29:13 AM] [ERROR] Exception Thrown:
[4/12/2023 10:29:13 AM] [ERROR] The system cannot find the file specified
[4/12/2023 10:29:13 AM] [ERROR] at System.Diagnostics.Process.StartWithShellExecuteEx(ProcessStartInfo startInfo)
at System.Diagnostics.Process.Start(ProcessStartInfo startInfo)
at hdhr2mxf.Program.ImportMxfStream()
at hdhr2mxf.Program.Main(String[] args)
[4/12/2023 10:29:13 AM] [ INFO] Generated .mxf file contains 2 lineups, 65 services, 1680 series, 12586 programs, and 0 people with 2102 image links.
[4/12/2023 10:29:13 AM] [ INFO] Execution time was 00:00:04.3316589
The error is because you don't have WMC installed. You are running hdhr2mxf with the "-import" switch. Since there is no WMC, it can't find the loadmxf.exe file. Just running hdhr2mxf.exe without any switches will be what you want and grab the xmltv file from SiliconDust.
paulsaz wrote: Thu Apr 13, 2023 11:42 am I have to say I'm new to this, but for the guide data and TiviMate:

Question about the API. How can I get tivimate to use the API if the authorization can change daily? I put the info in TiviMate and it worked, but the next day the api had expired. It seems like there must be a way to do this.
You cannot do this since the authorization codes rotate. There are plans in the near future to have EPG123 as a http server to include hdhr2mxf that you will be able to point TiViMate to, but I haven't had the time to complete it yet.

paulsaz
Posts: 94
Joined: Tue Jun 28, 2011 10:04 am
x 1

Re: XMLTV guide data

Post by paulsaz »

garyan2 wrote: Thu Apr 13, 2023 8:12 pm
paulsaz wrote: Wed Apr 12, 2023 10:33 am
EddieP wrote: Wed Apr 12, 2023 5:58 am

When you Install epg123 it gives you the option to also Install HDHR2MXF if you did not click that option try re-install of epg123. Then you can run it. It will create C:\ProgramData\GaRyan2\epg123\output\hdhr2mxf.xmltv that you can copy to anywhere.
Got this error in the log when I ran the hdhr2mxf.exe

[4/12/2023 10:29:09 AM] [ INFO] HDHomeRun DVR Service is active.
[4/12/2023 10:29:09 AM] [ INFO] Downloading available 14-day XMLTV file from SiliconDust.
[4/12/2023 10:29:13 AM] [ INFO] Writing the MXF file to "C:\ProgramData\GaRyan2\epg123\output\epg123.mxf"
[4/12/2023 10:29:13 AM] [ERROR] Exception Thrown:
[4/12/2023 10:29:13 AM] [ERROR] The system cannot find the file specified
[4/12/2023 10:29:13 AM] [ERROR] at System.Diagnostics.Process.StartWithShellExecuteEx(ProcessStartInfo startInfo)
at System.Diagnostics.Process.Start(ProcessStartInfo startInfo)
at hdhr2mxf.Program.ImportMxfStream()
at hdhr2mxf.Program.Main(String[] args)
[4/12/2023 10:29:13 AM] [ INFO] Generated .mxf file contains 2 lineups, 65 services, 1680 series, 12586 programs, and 0 people with 2102 image links.
[4/12/2023 10:29:13 AM] [ INFO] Execution time was 00:00:04.3316589
The error is because you don't have WMC installed. You are running hdhr2mxf with the "-import" switch. Since there is no WMC, it can't find the loadmxf.exe file. Just running hdhr2mxf.exe without any switches will be what you want and grab the xmltv file from SiliconDust.
paulsaz wrote: Thu Apr 13, 2023 11:42 am I have to say I'm new to this, but for the guide data and TiviMate:

Question about the API. How can I get tivimate to use the API if the authorization can change daily? I put the info in TiviMate and it worked, but the next day the api had expired. It seems like there must be a way to do this.
You cannot do this since the authorization codes rotate. There are plans in the near future to have EPG123 as a http server to include hdhr2mxf that you will be able to point TiViMate to, but I haven't had the time to complete it yet.
Ok, I have just been double clicking on the exe file.
I currently put the epg123 files in my dropbox folder and have Windows run a task daily to create the xmltv file and then it uploads to dropbox for use in TiviMate.

I do hope you get epg123 to work just like you did with Schedules Direct, that was a major life save when Windows dropped guide support. Thanks for all you are doing for us.

Edit to add that I went back and read the instructions from the epg123 website and now have created a scheduled task with the -o "path to file" and it is working great.

garyan2
Posts: 64
Joined: Sun Aug 19, 2018 9:36 am
x 4
Contact:

Re: XMLTV guide data

Post by garyan2 »

Note: IF you have the epg123Service running, you can point TiViMate to http://<server>:9009/output/hdhr2mxf.xmltv to grab it locally over the network. You may need to use the IP address for <server>. Then there wouldn't be a need to push it to dropbox.

You would have to not use the -o switch and let it save the xmltv file in the default location.

paulsaz
Posts: 94
Joined: Tue Jun 28, 2011 10:04 am
x 1

Re: XMLTV guide data

Post by paulsaz »

garyan2 wrote: Fri Apr 14, 2023 10:46 am Note: IF you have the epg123Service running, you can point TiViMate to http://<server>:9009/output/hdhr2mxf.xmltv to grab it locally over the network. You may need to use the IP address for <server>. Then there wouldn't be a need to push it to dropbox.

You would have to not use the -o switch and let it save the xmltv file in the default location.
That would be great if I could host the xmltv file myself, but you kind of lost me with that command above. Would the <server> be the ip address on the compter where the xmltv file is saved?

paulsaz
Posts: 94
Joined: Tue Jun 28, 2011 10:04 am
x 1

Re: XMLTV guide data

Post by paulsaz »

paulsaz wrote: Sat Apr 15, 2023 12:09 am
garyan2 wrote: Fri Apr 14, 2023 10:46 am Note: IF you have the epg123Service running, you can point TiViMate to http://<server>:9009/output/hdhr2mxf.xmltv to grab it locally over the network. You may need to use the IP address for <server>. Then there wouldn't be a need to push it to dropbox.

You would have to not use the -o switch and let it save the xmltv file in the default location.
That would be great if I could host the xmltv file myself, but you kind of lost me with that command above. Would the <server> be the ip address on the compter where the xmltv file is saved?
The output xmltv file is located at C:\ProgramData\GaRyan2\epg123\output\hdhr2mxf.xmltv

garyan2
Posts: 64
Joined: Sun Aug 19, 2018 9:36 am
x 4
Contact:

Re: XMLTV guide data

Post by garyan2 »

Yes. It will be the IP address of the computer that created the xmltv file (with epg123Server service running).

paulsaz
Posts: 94
Joined: Tue Jun 28, 2011 10:04 am
x 1

Re: XMLTV guide data

Post by paulsaz »

garyan2 wrote: Sat Apr 15, 2023 11:19 am Yes. It will be the IP address of the computer that created the xmltv file (with epg123Server service running).
I'm having a hard time understanding what to do, I'm sure I'm just entering something wrong.

Is this the correct url for Tivimate? My epg123 server is on my main desktop at 192.168.1.48

http://192.168.1.48:9009/C:\ProgramData ... 2mxf.xmltv

kyl416
Posts: 552
Joined: Wed Sep 17, 2014 12:09 pm
Device ID: 1080DB11,1040501B
Location: Tobyhanna, PA
x 21
Contact:

Re: XMLTV guide data

Post by kyl416 »

paulsaz wrote: Sat Apr 15, 2023 12:48 pm I'm having a hard time understanding what to do, I'm sure I'm just entering something wrong.

Is this the correct url for Tivimate? My epg123 server is on my main desktop at 192.168.1.48

http://192.168.1.48:9009/C:\ProgramData ... 2mxf.xmltv
You have to use "http://192.168.1.48:9009/output/hdhr2mxf.xmltv" as the URL

paulsaz
Posts: 94
Joined: Tue Jun 28, 2011 10:04 am
x 1

Re: XMLTV guide data

Post by paulsaz »

mkolek99 wrote: Wed Mar 15, 2023 8:14 am
nickk wrote: Sun Mar 12, 2023 7:35 pm The AuthCode changes several times a day and is good for up to 24 hours.

You need to pull the AuthCode each time you request guide.
How do I do that when tivimate wants a URL to the EPG? Or can you make mine static so it doesn’t change?
Did we ever get an answer to this question about Tivitmate and teh Api authorization code expiring? If it keeps changing all of the time, how ae people using the api to pull the guide daily?

paulsaz
Posts: 94
Joined: Tue Jun 28, 2011 10:04 am
x 1

Re: XMLTV guide data

Post by paulsaz »

kyl416 wrote: Sat Apr 15, 2023 1:36 pm
paulsaz wrote: Sat Apr 15, 2023 12:48 pm I'm having a hard time understanding what to do, I'm sure I'm just entering something wrong.

Is this the correct url for Tivimate? My epg123 server is on my main desktop at 192.168.1.48

http://192.168.1.48:9009/C:\ProgramData ... 2mxf.xmltv
You have to use "http://192.168.1.48:9009/output/hdhr2mxf.xmltv" as the URL
Thanks for all of your help, but I'm just able to get this to work. I reinstalled epg123 with server only in the default location, the server is running, but am not able to access the guide with the above link created.

garyan2
Posts: 64
Joined: Sun Aug 19, 2018 9:36 am
x 4
Contact:

Re: XMLTV guide data

Post by garyan2 »

I apologize. My bad. I just went through this to figure out what you need to do (assuming you will not use Schedules Direct to create an xmltv file).

You need to install both the 'Server Files' and 'HDHR2MXF for SiliconDust HDHR DVR Service'.
You will need a scheduled task to run hdhr2mxf.exe periodically.

Code: Select all

c:\program files (x86)\epg123\hdhr2mxf.exe -o c:\programdata\garyan2\epg123\output\epg123.xmltv
This will save the xmltv file in c:\programdata\garyan2\epg123\output\epg123.xmltv.

Then TiViMate needs to be pointed to http://192.168.1.48:9009/output/epg123.xmltv

I had removed the ability to download "any" file from the service, so you are limited to "epg123.mxf", "epg123.xmltv", and the custom epg123 xmltv filepath and name using Schedules Direct.
Last edited by garyan2 on Sun Apr 16, 2023 5:24 pm, edited 1 time in total.

paulsaz
Posts: 94
Joined: Tue Jun 28, 2011 10:04 am
x 1

Re: XMLTV guide data

Post by paulsaz »

garyan2 wrote: Sun Apr 16, 2023 12:18 pm I apologize. My bad. I just went through this to figure out what you need to do (assuming you will not use Schedules Direct to create an xmltv file).

You need to install both the 'Server Files' and 'HDHR2MXF for SiliconDust HDHR DVR Service'.
You will need a scheduled task to run hdhr2mxf.exe periodically (c:\program files (x86)\epg123\hdhr2mxf.exe -o c:\programdata\garyan2\epg123\output\epg123.xmltv). This will save the xmltv file in c:\programdata\garyan2\epg123\output\epg123.xmltv.

Then TiViMate needs to be pointed to http://192.168.1.48:9009/output/epg123.xmltv

I had removed the ability to download "any" file from the service, so you are limited to "epg123.mxf", "epg123.xmltv", and the custom epg123 xmltv filepath and name using Schedules Direct.
Thanks, I'll give this a try this afternoon. I really do appreciate you doing the epg123 project to save my Windows Media Center, but like many others, I cut the cord with COX and am using antenna only. With schedules direct raising their price and already paying for HD DVR, it doesn't make since for me to keep using Schedules Direct. I hope you get the time to use HD Homerun data directly with epg123, that would be such a help. Thanks again.

garyan2
Posts: 64
Joined: Sun Aug 19, 2018 9:36 am
x 4
Contact:

Re: XMLTV guide data

Post by garyan2 »

I think you might be missing something, or I am misunderstanding.

Using the client, you can click the text box in the scheduled task and select hdhr2mxf.exe as the source for WMC. HDHR2MXF downloads the xmltv file from SiliconDust, but also creates an mxf file for WMC. So with installing all components, you can create a task in the client to use hdhr2mxf, it will download the xmltv file, create an mxf file, and import into WMC. With the server service running, it will give http access to both the xmltv and mxf file.

Post Reply