What's new

Plex DVR function working with Zgemma?

shibby

Newbie
Has anyone got the zgemma working with the New Plex DVR functionality? Did have a quick go but no joy.

Sent from my Nexus 6P using Tapatalk
 
I know it's been a while since your post but I've had success in getting my zgemma s2s working with Plex DVR. I created a web api which mimics the HDHomeRun but communicates with my zgemma box. Not sure if there's anything publicly available which will do the same.
 
That's awesome! Any chance you can share or let me know what i need to do?

Sent from my Nexus 6P using Tapatalk
 
This is a console application which is a self hosting Web Api which mimicks an HDHomeRun. You will need to run it as administrator and modify the config file to change the values appropriately. You'll also need to allow port 5004 through your firewall. Here are the settings is HdhrWebIfInterface.exe.config

IpAddress - The Ip address of the machine you are running this application on
Port - the port used to communicate, leave at 5004 for now
WebIfIpAddress - The Ip address of your zgemma box WebIf
WebIfPort - The port of your zgemma box WebIf
WebIfStreamPort - The streaming port of your zgemma box
UseTestWebIfData - Setting this to "1" will use the test data in the folder instead of connecting to a zgemma box. This allows me to simulate the HDHomeRun without even turning on the zgemma box. Well, up until the point it needs to actually record something, then it fails.

Then just go to Plex and add a DVR in settings. Plex won't be able to automatically detect it on your network so you need to add the ip and port manually. e.g., 192.168.1.100:5004.

If this works for you and there's any demand for it I might consider updating and supporting it.

Oh, forgot to add: I'm using a WooshBuild which has the channel names with numbers included such as "101 BBC One". I use this to get a channel number and name so if your channel names are not in that format the app won't pick them up. Have a look at the test data xml file for the expected format. If it doesn't pick yours up then rename a channel or two and try again.
 

Attachments

To make it clearer as an example. If you are running the application on a pc with an Ip address of 192.168.1.100 and your zgemma box is on 192.168.1.125 then your config should look like:
<add key="IpAddress" value="192.168.1.100"/>
<add key="Port" value="5004"/>
<add key="WebIfIpAddress" value="192.168.1.125"/>
<add key="WebIfPort" value="80"/>
<add key="WebIfStreamPort" value="8001"/>
<add key="UseTestWebIfData" value="0"/>

And you should be entering 192.168.1.100:5004 in Plex so Plex sees that as your HDHomeRun fake device.
 
Hi, Sorry i've only just got around to trying this today. I get plex to find the tuner but it says it can't search for channels. So I've used the test data to get plex too search for channels the adjusted the config testdata to 0 so hopefully it'll work. Trying to record something now. I'd love to get this working thanks for all your help so far.
 
Ok I've got further by disabling http authentication in openwebif plex found all the channels but when i try to record it lets me set the recording but the when i check the schedule it says recording was aborted.
 
Yeah it's off. I just tried deleting the the tuner from Plex and tried re-adding it. It list all the channels but if I click re-scan it says it cannot communicate with the device.
 
UseTestWebIfData must always be set to 0 otherwise the app will never try to communicate with the box. It was only used to test communication between the app and Plex DVR. Re-scan isn't supported as it's not required. To test if the box is connectable try http://BoxIpAddress:BoxPort/web/about in your browser.

When first connected, try recording a FTA HD channel first.
 
Ok thanks for that i've re-added the tuner with only bbc 1&2 and sky 1 I'm currently recording something on bbc that finishes at 3pm All appears to be working ok but i'll get back to you after the recording finishes to check it worked. Also the web test worked.
 
Nope, "recording aborted" again.
web interface shows:
This XML file does not appear to have any style information associated with it. The document tree is shown below.
"); vertical-align: bottom; height: 10px;"><e2abouts>
"); vertical-align: bottom; height: 10px;"><e2about>
<e2oeversion>OE-Alliance 3.4</e2oeversion>
<e2enigmaversion>2017-03-27</e2enigmaversion>
<e2distroversion>openatv</e2distroversion>
<e2imageversion>5.3.0</e2imageversion>
<e2driverdate>20170112</e2driverdate>
<e2webifversion>OWIF 1.2.1</e2webifversion>
<e2fpversion>None</e2fpversion>
<e2model>H.2S</e2model>
<e2lanmac>00:15:c0:38:33:8e</e2lanmac>
<e2landhcp>True</e2landhcp>
<e2lanip>0.0.0.0</e2lanip>
<e2lanmask>0.0.0.0</e2lanmask>
<e2langw>192.168.1.254</e2langw>
"); vertical-align: bottom; height: 10px;"><e2hddinfo>
<model>SanDisk(Cruzer Blade)</model>
<capacity>58.4 GB</capacity>
<free>46.3 GB</free>
</e2hddinfo>
"); vertical-align: bottom; height: 10px;"><e2tunerinfo>
"); vertical-align: bottom; height: 10px;"><e2nim>
<name>Tuner A</name>
<type>BCM7346 (internal) (DVB-S2)</type>
</e2nim>
"); vertical-align: bottom; height: 10px;"><e2nim>
<name>Tuner B</name>
<type>AVL6211 (DVB-S2)</type>
</e2nim>
</e2tunerinfo>
<e2servicename>101 BBC One HD</e2servicename>
<e2servicenamespace>18481152</e2servicenamespace>
<e2serviceaspect>3</e2serviceaspect>
<e2serviceprovider>BSkyB</e2serviceprovider>
<e2videowidth>1920</e2videowidth>
<e2videoheight>1080</e2videoheight>
<e2servicevideosize>1920x1080</e2servicevideosize>
<e2apid>5401</e2apid>
<e2vpid>5400</e2vpid>
<e2pcrpid>5400</e2pcrpid>
<e2pmtpid>260</e2pmtpid>
<e2txtpid>5403</e2txtpid>
<e2tsid>2050</e2tsid>
<e2onid>2</e2onid>
<e2sid>6941</e2sid>
</e2about>
</e2abouts>
 
Hiya both. So I'm at the exact same stage as shibby. Failed to record.

The only question I have is what is the destination drive?

Is that an issue. I have a drive which is currently plugged into my zgemma.

I have that drive mapped as drive Z: and all my recordings are shown from Plex there anyway. I've tried doing to a internal drive of the HTPC. That's not worked either.
 
When you start a recording in Plex you specify the Plex Library the recording will end up in. Plex then creates a hidden folder called ".grab" in that location which it uses during recording. When recording is complete Plex then moves the file into the library proper.
 
Hi, Thanks For creating that application. i am sure there is demand for this it would be such a cool feature to have. I cant run it as it complains about admin privileges (even when running as admin??) any help would be appreciated.

Thanks
 
Back
Top