Objective: be able to watch cable on FireTV-equipped remote TVs.
I'll list my failures below, but what seems to work, mostly, is using stream support built into Kodi (and other similar apps). I use Kodi to watch my DVD rips, so it's a convenient place to also watch live TV. VLC also seems to work, but I'm less familiar with organizing things there, and don't generally use it on FireTV anyway.
So, I downloaded lineup.json from HDHomeRun Prime (http://ip-of-hdhr/lineup.json), and converted it to CSV using an online JSON to CSV converter. I was lazy, and didn't have my dev machine available, so was doing this all on an old Mac with no dev tools installed - just Office.
With the now tabular version of my channel lineup, I wrote a couple of Excel formulas and a VBA subroutine to mash the channel # and channel description together into a filename: e.g. "004 - WRC.strm". The VBA code takes the filename and the channel URL (e.g. http://ip-of-hdhr:5004/auto/v4), and writes the URL to the .strm file. I now have a folder with several hundred .strm files, one per channel, each of which has one line - the channel URL.
Next, created a folder on my NAS, put all the .strm files there, and pointed Kodi to it. Kodi sucked-in the .strm files, and now I can open them from Kodi. Voila! SD channels, at least, work great. HD is another matter - I'm on a relatively slow Internet connection, and this is going over a VPN, so it's hard to sustain the necessary 20Mb/s or so bandwidth for HD channels. But, SD is better than nothing, and I may upgrade my bandwidth to see if that helps, now that I at least have a semi-functional setup.
Work remains to spiff things up and add .nfo, .jpg, etc. files for channel meta-data. But, I can live with this for now.
Hope this helps, and I'm still open to trying other things that aren't quite so ugly.
- It would have been nice if I could have simply opened-up a port on my firewall, but for some reason, that doesn't seem to allow streaming to happen. I've confirmed the port is open and can reach the HDHomeRun Prime, but for some reason it just doesn't work.
- Of course, HDHomeRun should support non-local hardware in some fashion, directly. But, it doesn't, and I don't have time to muck with the code to see if I can get something working. If I *know* the IP address of my Prime, that should be enough - I don't generally buy the need for discovery prototcols, which aren't VPN-friendly.
- My Prime was originally on another subnet, indirectly routed to the VPN. This, too, didn't work, so I had to move it to my main subnet so it could reach the VPN directly.
- I suspect my ISP (out in the sticks) blocks lots of ports, so I tried to use port 80 with SNAT - no joy. I could reach the Prime, but port 5004 (SNAT from/to 80) wouldn't respond properly.