I am fighting with this right now. I keep getting a 401 error even though I am passing the curl as root? Anyone have any thoughts? Here is my curl and the error.
ryan@MythPlex:~$ curl -k -X POST â127.0.0.1:32400/livetv/dvrs?device=device%3A%2F%2Ftv.plex.grabbers.hdhomerun%2F131EB9B4&lineup=lineup%3A%2F%2Ftv.plex.providers.epg.onconnect%2FUSA-WA46564-X%23Charter%2520Communications%2520-%2520Digital&language=engâ
@JimmiJones said:
I am fighting with this right now. I keep getting a 401 error even though I am passing the curl as root? Anyone have any thoughts? Here is my curl and the error.
ryan@MythPlex:~$ curl -k -X POST â127.0.0.1:32400/livetv/dvrs?device=device%3A%2F%2Ftv.plex.grabbers.hdhomerun%2F131EB9B4&lineup=lineup%3A%2F%2Ftv.plex.providers.epg.onconnect%2FUSA-WA46564-X%23Charter%2520Communications%2520-%2520Digital&language=engâ
Unauthorized
401 Unauthorized
ryan@MythPlex:~$
My guess is that you need to pass your Plex Token. See the message directly above yours for the format.
If I put the token at the beginning like he did, I get the 401 error. If I put it at the end, like the page describing how to find your token suggests, I get a 400 error.
Yes, Mythplex is the box. I am VNCing in and running the command there.
Here is the portions of the log I am working with:
Nov 22, 2016 19:37:39.503 [0x7ffbe7bff700] DEBUG - Completed: [127.0.0.1:32968] 200 POST /livetv/dvrs?device=device%3A%2F%2Ftv.plex.grabbers.hdhomerun%2F131EB9B4&lineup=lineup%3A%2F%2Ftv.plex.providers.epg.onconnect%2FUSA-WA46564-X%23Charter%2520Communications%2520-%2520Digital&language=eng (5 live) GZIP 197ms 1793 bytes (pipelined: 3)
Nov 22, 2016 19:38:59.074 [0x7ffbe73fe700] DEBUG - Completed: [127.0.0.1:33082] 200 POST /livetv/dvrs?device=device%3A%2F%2Ftv.plex.grabbers.hdhomerun%2F1042588D&lineup=lineup%3A%2F%2Ftv.plex.providers.epg.onconnect%2FUSA-OTA98901%23Local%2520Over%2520the%2520Air%2520Broadcast&language=eng (4 live) GZIP 198ms 1611 bytes (pipelined: 2)
Here are the variations I have used. I have been doing this as root in order to avoid any permission issues.:
curl -k -X POST â127.0.0.1:32400/livetv/dvrs?device=device%3A%2F%2Ftv.plex.grabbers.hdhomerun%2F131EB9B4&lineup=lineup%3A%2F%2Ftv.plex.providers.epg.onconnect%2FUSA-WA46564-X%23Charter%2520Communications%2520-%2520Digital&language=eng?â
curl -k -X POST â127.0.0.1:32400/livetv/dvrs?device=device%3A%2F%2Ftv.plex.grabbers.hdhomerun%2F131EB9B4&lineup=lineup%3A%2F%2Ftv.plex.providers.epg.onconnect%2FUSA-WA46564-X%23Charter%2520Communications%2520-%2520Digital&language=eng?X-Plex-Token=xxxxxxxxâ
Gives 400 error
I hand typed it a couple of different times to make sure the quotes werenât getting modified in the copy/paste. No joy.
Is there an advantage of adding the second HDHomerun device with the curl command versus using the Plex server preferences to do it (now that its a native option via Plex Web)?
One is a Connect and the other is a Prime. Whichever one you set up first is the channel guide information that you are limited to to match to your device channels. EG 2.1=ABC or 7584=ABC-HD.
So I could add them both through the web interface, as long as I add the Prime first, and map the corresponding cable channels to the OTA channels on the Connect.
But in asking about it here, before that work around was explained to me, I was told that adding them both as separate DVRs gives more flexibility in scheduling. I wonât beat my head against this wall much longer before just doing it the other way though.
I realize this is an old post but I just got a connect added to my current prime and am looking to set this up; I do have a couple questions though since Iâm pretty new to Plex:
Which log will I find the path to the DVR after I create it again (Iâve had my prime running for a few months so Iâm sure itâs not in any log) Is it the âcom.plexapp.system.logâ or âPlex Media Server.logâ or something else?
If I delete my current DVR will I lose all my scheduled timers when I finish adding the tuners via cURL or will they return when I re-add my prime? Is there some log or database where I can backup and re add my timers quickly or will I need to manually add them all back into the system?
Will the UI then show something different once each device is added as a separate DVR because right now I have the single DVR with both my devices using the primes guide to map to the connect channels. Not ideal because I canât specify to use the connect first so my 3 prime tuners could still be used up before connect.
I would need two different epg providers when i add a second Tuner from my DVR. Will that be possible once? That would sove a lot problems. Then also maybe not all channels available but i would be happy with the setup, when i could choose two different providers for my tuners.
@moli87 said:
I would need two different epg providers when i add a second Tuner from my DVR. Will that be possible once? That would sove a lot problems. Then also maybe not all channels available but i would be happy with the setup, when i could choose two different providers for my tuners.
If you look up in this post you can see how to add two DVRs (which means two EPGs, not just 2 tuners) but itâs not surfaced in the user interface you have to set it up by command line, something I still havenât tried. I wish they would put it in the UI already. I have my cablecard as the first tuner in the DVR with my cable EPG, then I use my OTA tuner and just line up the channel names to match, itâs not perfect but it works ok.
@moli87 said:
I would need two different epg providers when i add a second Tuner from my DVR. Will that be possible once? That would sove a lot problems. Then also maybe not all channels available but i would be happy with the setup, when i could choose two different providers for my tuners.
If you look up in this post you can see how to add two DVRs (which means two EPGs, not just 2 tuners) but itâs not surfaced in the user interface you have to set it up by command line, something I still havenât tried. I wish they would put it in the UI already. I have my cablecard as the first tuner in the DVR with my cable EPG, then I use my OTA tuner and just line up the channel names to match, itâs not perfect but it works ok.
That is correct, but i mean to choose from two different EPG ProvidersâŠIt is not supported at the moment. Just one EPG Provider per Plex Server. I added already my second tuner via CMD and Curl. That worked easy and was not a Problem⊠But after adding it you should edit the channel mappings and here i have to choose from the EPG Provider i setup up before for my other tuner. And as it is Sat and Cable, there are not a lot channels matching and also not available. I could use the Austrin Telekom Provider for my Cable and Tuner, but i would still missing about 7 interesting local channels from my CableâŠWhen i would do the other way and choose my Cable Provider EPG, then i would missing about 20 interesting channels. It doesent matter what i do i will miss some channels.
But if Plex would allow more EPG Provider per ServerâŠlike One for my Cable Tuner and One for my Sat Tuner, then the Problem would be solved for me. Because i can map all channels with EPG Data.
@moli87 It would be extremely nice if Plex allow multiple DVRâs each with tuners configured for the appropriate TV Provider. I have 2 Connects, a Dual, and a Prime. Was told by a Plex Employee, believe it was @BigWheel, that my Prime would not work in my DVR because the OTA guide would not work with the Prime. He didnât seem to care that my Prime was only seeing local channels rebroadcast by cable company on same OTA channel. for example, 10.1 is a local NBC channel configured in my OTA setup, also rebroadcast on channel 10.1 by cable company so same channel whether coming from my OTA antenna or through the cable company. He said it was a fluke if it worked but same channel numbers are used both OTA and by local cable company. So for others it might not work but for my situation it does.
For your situation one suggestion if you have another computer or could setup a VM would be to have two Plex Servers. One with your cable tuner and one with your Sat tuner. You could setup some scripts to move recordings from one server to the other or have them both using the same storage location for recordings.
@johnm_ColaSC maybe they will support this in the futureâŠ
I was also thinking for a second Plex Server for my cable EPG ProvidersâŠi would choose the same recording location as my primary PLex Server and it would be a good workaroundâŠbut i really hope they will Support EPG Providers each tuners, because i dont really want to use 2 Plex Servers for long time just for that scenario. But for now it is a good workaround.
I know this is old, but want to thank those who shared details on how to make a second dvr. I use both cable and OTA tuners, and the epg limitation had almost steered me away from Plex. The final delivery of the DVR capability will need to account for this somehow; it seems there are many besides me that wish to use this capability in a similar manner.
@skoyen said:
I know this is old, but want to thank those who shared details on how to make a second dvr. I use both cable and OTA tuners, and the epg limitation had almost steered me away from Plex. The final delivery of the DVR capability will need to account for this somehow; it seems there are many besides me that wish to use this capability in a similar manner.
Ditto 100% !
Wish this would get added to the GUI as it initially was a bit hard to sort out but once I figured out it was literally meant you had to Add the DVR and remove it to get the DEBUG line in the logs the rest went just as described on using cURL to add them back in manually.
Well, guess I will resurect this thread as well. I have a prime and a dual, though maybe the reason the dual couldnât be used was because it was too old. Was gifted a connect and changed it out with the dual, but still couldnât get all of the OTA channels to appear. I did figure out that it was only accessing the prime information for channel line up. Hoping (especially with ability to share live tv now) that I would be able to access the connect. Doesnât appear possible yet?