tylerforesthauser / Homebase

Static homepage for your Plex Media Server
MIT License
46 stars 10 forks source link

Can't get plex to connect #6

Open sblees opened 5 years ago

sblees commented 5 years ago

Greetings,

I have successfully configured Tautulli to connect to Homebase. However, no matter what I try, I cannot get Plex to connect. I grabbed the "Plex Server URL" and "Plex Server Identifier" from Tautulli (which it connects just fine to Plex) and inserted those values to the plex_api.php file. I do have a reverse proxy that has subdomains that point to each service.

Any suggestions?

Shawn

Also, I tried to change the getCurrentActivityViaTautulli function instead, but I couldn't get it to work. I might have missed something.

tylerforesthauser commented 5 years ago

One of the biggest pains I’ve found is getting a working Plex URL without a proxy (such as nginx). So if you have a proxy set up, be sure that it is set up correctly. Otherwise you can try grabbing the Plex URL from the Plex Web client. Let me know which you’d be doing and I can try to help, accordingly.

livioh commented 4 years ago

I know i'm doing something wrong, i'm tryin to get this up and running and don't matter what i do can't get either of the Plex or tautulli to work. Sorry i'm not that advanced and if i missed something i apologies. Follow the steps and everywhere i seen the word PLEX_URL & PLEX_TOKEN i've replace with the correct info (PLEX URL i change to https://app.plex.tv/desktop & PLEX_TOKEN i put the TOKEN) same for the tautulli still nothing. Thanks in advanced

tylerforesthauser commented 4 years ago

@livioh The Plex URL would have to be your specific URL. If you're running Plex and Tautulli on the same server as your Homebase instance, then you should be able to simply use http://localhost:32400 as the PLEX_URL. If you aren't running Homebase on the same server, then oOne cheat you can use to get your Plex token and an external Plex URL is to:

  1. Open up any media item from your server using the web app (https://app.plex.tv/desktop)
  2. Find the "Get Info" button under the ⋮ button
  3. Click on "View XML"
  4. Use that URL to fill out the PLEX_URL and PLEX_TOKEN

For Example:

https://166-12-322-122.0c10e1b1c1614eff1415bca118a611cb.plex.direct:32400/library/metadata/1111?checkFiles=1&includeAllConcerts=1&includeBandwidths=1&includeChapters=1&includeChildren=1&includeConcerts=1&includeExtras=1&includeFields=1&includeGeolocation=1&includeLoudnessRamps=1&includeOnDeck=1&includePopularLeaves=1&includePreferences=1&includeRelated=1&includeRelatedCount=1&includeReviews=1&includeStations=1&X-Plex-Token=TaDaef5vGVvgmkljb

would be used to fill out plex-api.php like this:

// For example: http://localhost:32400
define('PLEX_URL', 'https://166-12-322-122.0c10e1b1c1614eff1415bca118a611cb.plex.direct:32400');

// tautulli/settings#tab_tabs-plex_media_server
define('PLEX_TOKEN', 'TaDaef5vGVvgmkljb');

As for Tautulli, that could be a bit tougher. If you don't have your installs behind a reverse proxy and you aren't running Homebase on the same server as Plex and Tautulli, then you'd have to consider how you are going to connect the two. Please let me know more details about your setup and I can better advise.

livioh commented 4 years ago

Thanks for the quick reply, I see it now. I have Plex & Tautulli on the same machine (no reverse proxy).

JohnnyGrey86 commented 2 years ago

I can't get either to work either, and I have both Plex and Tautulli reverse-proxied. I've tried multiple times, and multiple ways. I can't even see in the logs this even attempting to access the Tautulli API.

I know this is a couple years old, but anyone have an idea if something changed with either API?

Wdavery commented 2 years ago

I still have a running instance of Homebase, seems to be connected to Plex and Tautulli, so no API breaking changes. I remember having issues getting it setup the first time.

JohnnyGrey86 commented 2 years ago

How do you have it setup? Containers? How do you have the URL’s set up? I can’t get anything to work. I’ve tried the reverse-proxy accessible URL, I’ve tried the custom docker network IP and port, I’ve tried the regular internal IP address.

Could it be a file permission thing? I did download it on my windows PC and transferred it via the samba share across the network. Perhaps I should try again by pulling it directly from the shell?

edit: I’m on Unraid. Both Plex and Tautulli along with the SWAG container are all on the same custom docker network.

Wdavery commented 2 years ago

Docker as well here, including SWAG. I can look into this soon and get back to you :+1:

JohnnyGrey86 commented 2 years ago

Docker as well here, including SWAG. I can look into this soon and get back to you 👍

Any update on how you have yours set up?