HDHomeRun Emulator

I’m looking into modifying this for the Hauppauge Broadway box. Should be fairly trivial, they have a well-documented REST API. I’ve already sketched out equivalent commands/etc, just have to do the implementation. I will post back when it is done in case anyone is interested.

A question, though, if anyone is monitoring this thread…

  • It requires port 80, so you can’t run this on the plex server itself? That is a shame, but I understand if that is how the HDHomerun boxes are discovered it has to work the same way. Maybe in the future Plex will allow you to manually specify an IP/port…

Thanks for sharing the great work so far, I’ll post back when I have a working version for the Broadway box.

@n9yty said:

  • It requires port 80, so you can’t run this on the plex server itself? That is a shame, but I understand if that is how the HDHomerun boxes are discovered it has to work the same way. Maybe in the future Plex will allow you to manually specify an IP/port…

Two options:

  • Multiple IP’s can be bound to one network interface
  • A reverse proxy can switch between services based on hostname

@stedaniels said:

@n9yty said:

  • It requires port 80, so you can’t run this on the plex server itself? That is a shame, but I understand if that is how the HDHomerun boxes are discovered it has to work the same way. Maybe in the future Plex will allow you to manually specify an IP/port…

Two options:

  • Multiple IP’s can be bound to one network interface
  • A reverse proxy can switch between services based on hostname

Thanks for the ideas, I will look into them. I think the IP alias idea is probably easiest on the face of it.

@rogueosb said:
If there’s any NextPVR users, I have modified tvhProxy to work with it:

github.com/rogueosb/npvrProxy

Hi rogueosb,

Just been setting up npvrproxy and I managed to get it to connect and Plex downloads the guide.
Were you able to get this to record? Or is it guide only for now?
Thanks.

@maverick214 said:

@rogueosb said:
If there’s any NextPVR users, I have modified tvhProxy to work with it:

github.com/rogueosb/npvrProxy

Hi rogueosb,

Just been setting up npvrproxy and I managed to get it to connect and Plex downloads the guide.
Were you able to get this to record? Or is it guide only for now?
Thanks.

I’ve gotten it to record just fine, but there’s currently a bug in Plex DVR where certain channels won’t record (like ITV in SD or Dave, in the UK) since it thinks they have video dimensions of 0x0…

@rogueosb said:

I’ve gotten it to record just fine, but there’s currently a bug in Plex DVR where certain channels won’t record (like ITV in SD or Dave, in the UK) since it thinks they have video dimensions of 0x0…

Thanks Rogueosb,

I spent a little more time on this and finally got it working.
Seems it didn’t like the OTA channel number format, I went into NextPVR settings and change my channels to remove the .1
i.e.: channel 6.1 to channel 6 after that it started working.

Hopefully Plex developers are working on adding more tuners, cheapest compatible HDhomerun in Canada seems to be around $170 after taxes.
But in the meantime npvrproxy is working.

@maverick214 said:

@rogueosb said:

I’ve gotten it to record just fine, but there’s currently a bug in Plex DVR where certain channels won’t record (like ITV in SD or Dave, in the UK) since it thinks they have video dimensions of 0x0…

Thanks Rogueosb,

I spent a little more time on this and finally got it working.
Seems it didn’t like the OTA channel number format, I went into NextPVR settings and change my channels to remove the .1
i.e.: channel 6.1 to channel 6 after that it started working.

Hopefully Plex developers are working on adding more tuners, cheapest compatible HDhomerun in Canada seems to be around $170 after taxes.
But in the meantime npvrproxy is working.

Glad to hear you got it working! I’ve always had my NPVR set to the default settings, so I wasn’t aware that might be a problem. If I have some time in the future I might be able to look into it.

@rogueosb said:

Glad to hear you got it working! I’ve always had my NPVR set to the default settings, so I wasn’t aware that might be a problem. If I have some time in the future I might be able to look into it.

Mines all default too. Are you using cable or OTA? Maybe its just OTA in Canada that has the decimal in the channels.

As a side note, I managed to get plexconnect (uses port 80 and 443) and npvrproxy running on the same Mac by using the pfctl command editing the .conf to add:

rdr pass inet proto tcp from 192.168.1.7 to any port 80 → 127.0.0.1 port 5004

Now whenever my media server (192.168.1.7) request ‘npvrproxy’ it gets redirected to port 5004 on my Mac, all others on my network get plexconnect.

As a plus this also gets rid of the need for the web server virtual host to redirect.

Does all of this mean that it might become possible to deliver the iptv versions of certain channels (the ones that are also available via Digital Terrestrial Television) to the Plex DVR, as if they were coming from a HDHomeRun box?

That would be huge!

@poet said:
Does all of this mean that it might become possible to deliver the iptv versions of certain channels (the ones that are also available via Digital Terrestrial Television) to the Plex DVR, as if they were coming from a HDHomeRun box?

That would be huge!

You should be able to use this with some modifications, just need to use it as a redirect to the iptv link. Thats basically what npvrproxy is doing.

  1. time cost ,
  2. effort .
  3. Troble shooting
  4. Code upgrade/faults
  5. stopped working for 3 months haha

is all that worth the small fee of what $150 ?
no its not sorry.

Not sure if anyone can help…trying to set up npvrproxy on my windows PC

I think I have everything setup correctly but things are not working properly :frowning:

If I put http://localhost:5004/discover.json in my browser I get a response…

{
“BaseURL”: “http://localhost:5004”,
“DeviceAuth”: “test1234”,
“DeviceID”: “12345678”,
“FirmwareName”: “hdhomerun4_dvbt”,
“FirmwareVersion”: “20150826”,
“FriendlyName”: “npvrProxy”,
“LineupURL”: “http://localhost:5004/lineup.json”,
“ModelNumber”: “HDHR4-2DT”,
“TunerCount”: 2
}

So I think I have setup all the python stuff correctly

I have installed apache and copied the virtual host stuff into the httpd-vhosts.conf file, but although apache is started, I don’t think its doing what it should.

Is there anything I can do to try and work out whats going wrong?

Thanks

Alan

@emacholden said:
Not sure if anyone can help…trying to set up npvrproxy on my windows PC

I think I have everything setup correctly but things are not working properly :frowning:

If I put http://localhost:5004/discover.json in my browser I get a response…

{
“BaseURL”: “http://localhost:5004”,
“DeviceAuth”: “test1234”,
“DeviceID”: “12345678”,
“FirmwareName”: “hdhomerun4_dvbt”,
“FirmwareVersion”: “20150826”,
“FriendlyName”: “npvrProxy”,
“LineupURL”: “http://localhost:5004/lineup.json”,
“ModelNumber”: “HDHR4-2DT”,
“TunerCount”: 2
}

So I think I have setup all the python stuff correctly

I have installed apache and copied the virtual host stuff into the httpd-vhosts.conf file, but although apache is started, I don’t think its doing what it should.

Is there anything I can do to try and work out whats going wrong?

Thanks

Alan

I couldn’t get the virtual host to work in windows. If virtual host is working you should be able to go to http://localhost/discover.json and have it respond.

I think I used this command (replace 10.1.1.110 with your ip or 127.0.0.1)

netsh interface portproxy add v4tov4 listenport=80 listenaddress=10.1.1.110 connectport=5004 connectaddress=10.1.1.110

Thanks for the reply

I didn’t get the netsh command to work.

But for reference for others I have got apache to finally work, it appears in the windows install, a number of proxy modules are commented out in the httpd.conf file)

@buba013 said:

  1. time cost ,
  2. effort .
  3. Troble shooting
  4. Code upgrade/faults
  5. stopped working for 3 months haha

is all that worth the small fee of what $150 ?
no its not sorry.

In trying to keep a perspective… where did the fact that the DVR was/is in beta evade you?