How to Add an additional HD Homerun (morphed from "Beta 3 timeline?")

Agreed. I have no clue what that means, where to put it, etc.

@bretswinney said:

@elan said:
With heterogeneous devices, you would need to DVRs. You can create them right now, you just need to be a terminal/curl wizard. Same goes for adding multiple devices to a single DVR.

PUT /livetv/dvrs/X/devices/Y - add device to a DVR

I wish i knew how to do this. Having multiple DVRs is the top feature request for me @elan

Is X the DVR ID and Y the next device key?

Is deviceAuth the same for devices?

@elan said:
With heterogeneous devices, you would need to DVRs. You can create them right now, you just need to be a terminal/curl wizard. Same goes for adding multiple devices to a single DVR.

PUT /livetv/dvrs/X/devices/Y - add device to a DVR

Ok I figured out how to get X (DVR key) using https://localhost:32400/livetv/dvrs?X-Plex-Token=XXXXXXXXXXXXXX (plex token surpressed). I am assuming that Y is the key of a new device for the same DVR. The key of the current device is 1. Is Y going to be 2 or is this something else? Are there other required parameters to pass for the IP of the tuner or the device uuid? Do I simply add with Y as 2 and use the Plex GUI to configure/setup the rest of the settings?

I found the API and now understand MediaContainers. Still learning


@rodgerzeisler said:
I am assuming that Y is the key of a new device for the same DVR. The key of the current device is 1. Is Y going to be 2 or is this something else?

X is the DVR key as seen by /livetv/dvrs.
Y is the key of the devices to add, as seen by /media/grabbers/devices

May the force be with you!

@elan said:
X is the DVR key as seen by /livetv/dvrs.
Y is the key of the devices to add, as seen by /media/grabbers/devices

Makes perfect sense.

My Y key is 2 based on what is returned by /media/grabbers/devices.

Just in case something goes wrong, if the following is the syntax for the code to add the DVR, what is the syntax for the code to remove that device as an available device/tuner from the DVR?

PUT /livetv/dvrs/X/devices/Y - add device to a DVR

Maybe DELETE /livetv/dvrs/X/devices/Y - delete device from a DVR?

@elan said:
With heterogeneous devices, you would need to DVRs. You can create them right now, you just need to be a terminal/curl wizard. Same goes for adding multiple devices to a single DVR.

PUT /livetv/dvrs/X/devices/Y - add device to a DVR

I gave this a whirl, and so far so good (have 3 shows recording at once via 2 CONNECT’s)!

Thanks for adding this in! Really handy during premiere season :slight_smile:

@rodgerzeisler said:

Makes perfect sense.

My Y key is 2 based on what is returned by /media/grabbers/devices.

Just in case something goes wrong, if the following is the syntax for the code to add the DVR, what is the syntax for the code to remove that device as an available device/tuner from the DVR?

PUT /livetv/dvrs/X/devices/Y - add device to a DVR

Maybe DELETE /livetv/dvrs/X/devices/Y - delete device from a DVR?

You can delete it via the web interface (it shows up alongside the 1st device), or at least the option is there. In case there isn’t an http option.

This is an excellent discussion!

Perhaps it should be moved to it’s own thread with a title like “Enabling multiple tuners” so people can find it.

@elan said:
With heterogeneous devices, you would need to DVRs. You can create them right now, you just need to be a terminal/curl wizard. Same goes for adding multiple devices to a single DVR.

PUT /livetv/dvrs/X/devices/Y - add device to a DVR

So based on your comment above I would need two DVRs to support 1 PRIME and 1 CONNECT?

I was able to use curl to do a PUT /livetv/dvrs/X/devices/Y where X=5 and Y=2 base on the information that was returned when I did a GET /livetv/dvrs and GET /media/grabbers/devices. The additional HDHomerun tuner showed up in Settings | DVR. I then had to go to Manage Channels for the new tuner and map each channel to the drop down channel guide source.

Below you can see the 2 devices, each with 2 tuners, for a total of 4 tuners. Only one show was recording when I took the screen shot, but a few minutes before this, both tuners on the first device were busy recording and the one tuner on the second device was recording.

Basically, the commands are as follows. The XXXXXXXXXXXXXXXX needs to be replaced with your Plex Token. You can find this token by finding media in your library, clicking Info from the 
 menu, and then View XML at the bottom of the popup. Look in the URL (Address) box of your browser and the Plex Token is at the end of URL. The examples below assume you are on the same machine that Plex Media Server is running on.

Use this command to find out the key of your DVR (X):

curl http://localhost:32400/livetv/dvrs?X-Plex-Token=XXXXXXXXXXXXXXXXXXXX

Use this command to find out the key of the device that is not already added to your DVR (Y):

curl http://localhost:32400/media/grabbers/devices?X-Plex-Token=XXXXXXXXXXXXXXXXXXXX

Use this command to add the second device to your DVR:

curl -X PUT http://localhost:32400/livetv/dvrs/X/devices/Y?X-Plex-Token=XXXXXXXXXXXXXXXXXXXX

Now go to Settings | DVR | Manage Channels for the new tuner and map each channel to the drop down channel guide source.

Since the thread title changed, maybe the OP can mark one of these new comments as “answer” to help people from having to search the whole thread.
Either way, great discussion!

Glad to see people are getting this working!

And yes, for heterogeneous devices, you’d need multiple DVRs. You can create them via curl; look at the POST /livetv/dvrs call issued when you create a DVR in the UI (maybe make a single DVR for each device one at a time) and then you can reply via a curl manually to create the second one simultaneously.

Will all this ever be part of the DVR GUI for those of us that aren’t that keen with programming tech to run this CL to install it now?

i need a command to create a new DVR
Anyone have it?

I totally get this is just a Beta, but I sure hope Plex doesn’t release this into production without the multi-DVR capability included in the GUI configuration. That would be a BIG mistake! Two tuners just doesn’t cut it with all the new shows coming out. I’m tired of juggling two separate Plex Media Servers. Guess I’ll mess around with the cryptic command line crap in the meantime and try and get my additional Extend added in. Plex, your getting real close to the Big Leagues, but my Windows Media Center never misses a beat recording 4 shows at once. I’m sure I don’t speak alone, but I bet we all would love to give our WMC the proper burial that it deserves after all these many years serving our cord-cutting needs! Honestly, I’m real surprised Microsoft didn’t simply license WMC to another Company to keep alive. Seems like many are still trying to recreate a wheel that was created a decade ago.

@jasonmcroy said:
Will all this ever be part of the DVR GUI for those of us that aren’t that keen with programming tech to run this CL to install it now?

Yes.

@Creeker7 said:
I totally get this is just a Beta, but I sure hope Plex doesn’t release this into production without the multi-DVR capability included in the GUI configuration. That would be a BIG mistake! Two tuners just doesn’t cut it with all the new shows coming out.

To be clear, I think you mean multi-device, not multi-DVR (which is useful for other reasons). We’re definitely planning on allowing the former (at first) in the UI.

It’s funny though because I would like to even learn how to do the Curl method just for fun but I need the “Curl for absolute Dummies” version with step by step instructions! lol Mainly because I would like to have the ability to use both my devices right now because I am impatient!

Hence why I’m divulging the secret endpoints ahead of time, hoping people take the opportunity to learn a bit about terminal curl, HTTP :slight_smile:

@jasonmcroy said:
It’s funny though because I would like to even learn how to do the Curl method just for fun but I need the “Curl for absolute Dummies” version with step by step instructions! lol Mainly because I would like to have the ability to use both my devices right now because I am impatient!

What OS (operating system) do you use? Windows 10, Mac OS X, Linux, etc
?

@rodgerzeisler said:

@jasonmcroy said:
It’s funny though because I would like to even learn how to do the Curl method just for fun but I need the “Curl for absolute Dummies” version with step by step instructions! lol Mainly because I would like to have the ability to use both my devices right now because I am impatient!

What OS (operating system) do you use? Windows 10, Mac OS X, Linux, etc
?

I am using Windows 10 trying to add 2nd DVR. Any suggestions?