[REL] Plex Movie Poster Display

@JEscHT said:

@bam2000 said:
Hey, i really like the idea. But after i edited the Config.php with my Token and ip address for the server and client. i open the Website i get a black page nothing more :frowning:
Can you help me to get it working?
Thanks

I’m getting the black screen as well. Did you setup the web server on a Pi or on the computer running Plex Media Server?
NGINX only has a Linux download so I’m thinking what I did is all wrong. I setup my Mac Mini with Plex Media Server as the web server and enabled PHP on it. I just noticed this… “Web Browser - I am running Chromium on a Raspberry Pi that is also running web server.” Hope to get some assistance, this would be a fantastic addition!

Hi exactly the same scenario I’m using too.
Mac mini with Plex Media Server and OS X Server for the website.

I can’t visit the http://ipaddressofplexserver:32400/status/sessions I get "site not found " :frowning:

Edit: i Have tested, the localhost:32400/status/sessions gives me a 401 Unauthorized Error

Thank you for the feedback. Sorry you are having trouble.

If you are getting “Unauthorized Error” something maybe wrong with the X-Token. Please double check it. You might also login to you Plex server ( http://ipaddressofplexserver:32400/web ) -> Settings -> Network -> Show Advanced and add your local network to “List of IP addresses and networks that are allowed without auth”.

Can you both please login to the CLI of your Raspberry Pi and run “php -f getData.php”. You will need to do this from directory where your web is being hosted.

-Matt

@MattsShack said:
Thank you for the feedback. Sorry you are having trouble.

If you are getting “Unauthorized Error” something maybe wrong with the X-Token. Please double check it. You might also login to you Plex server ( http://ipaddressofplexserver:32400/web ) → Settings → Network → Show Advanced and add your local network to “List of IP addresses and networks that are allowed without auth”.

Can you both please login to the CLI of your Raspberry Pi and run “php -f getData.php”. You will need to do this from directory where your web is being hosted.

-Matt

I’m not sure how I’m able to make out what you meant… LOL but I think I got it and the result was this:
PHP Parse error: syntax error, unexpected ‘.168’ (T_DNUMBER) in /var/www/html/config.php on line 3

FIXED: had to change double quotes in the config.php to single quotes e.g. “PLEX_SERVER_IP” to ‘PLEX_SERVER_IP’ and
“PLEX X-Plex-Token” to ‘PLEX X-Plex-Token’.

UPDATED ERROR: PHP Warning: file_get_contents(http://192.blah.blah.blah:32400/library/sections/1/unwatched?X-Plex-Token=blahblahblah): failed to open stream: HTTP request failed! HTTP/1.1 404 Not Found
in /home/pi/Desktop/PMP-Display/getData.php on line 62

UPDATED ERROR FIXED Had to change ‘library/sections/1/’ in the URL as I did not have a section 1 changed it to section number that has PG-13 movies and it’s now working successfully.

Thanks again Matt! I’ll keep you posted.

@MattsShack I was able to find the issues as mentioned in my post above and correct them. Coming Soon is now working properly! The Now Playing doesn’t seem to be working, what do you suggest I look at for that… Checking the code in getData.php

Also having an issue with Chromium, I have installed/deleted, reinstalled it but it refuses to open on my Pi3. I have Googled that issue and tried a number of different things and still no luck with Chromium. Any suggestions? I also tried using the repo you suggested “to install Chromium deb http://dl.bintray.com/kusti8/chromium-rpi jessie main”

Coming Soon is currently displaying properly on the default browser included in Raspian Jessie:


So pumped… This looks outrageous even though I currently have to tilt my head! LMAO

Thanks for the tips, now mine is working like yours, the coming soon section works but the now playing isn’t.

That’s great to hear @bam2000 Still haven’t figured out the Now Playing issue either. Been at this for quite some time, not giving up. Will keep you posted on my progress.

@MattsShack When I run php -f getData.php
I get this result:

Does it seem correct to get that kind of response?

**Can I have multiple URLs from 3 or 4 different library sections for COMING SOON art? **
Not sure if this would work…
$UnWatchedMoviesURL = ‘http://’.$plexServer.’:32400/library/sections/17/all?X-Plex-Token=’.$plexToken.’’; ‘http://’.$plexServer.’:32400/library/sections/33/all?X-Plex-Token=’.$plexToken.’’; ‘http://’.$plexServer.’:32400/library/sections/16/all?X-Plex-Token=’.$plexToken.’’; ‘http://’.$plexServer.’:32400/library/sections/14/all?X-Plex-Token=’.$plexToken.’’;

I decided to edit unwatched to all to pull all the movie art from the entire library as opposed to just movies that are marked unwatched in getData.php and I changed my top text to read PLAYING SOON, instead of COMING SOON in config.php

$UnWatchedMoviesURL = ‘http://’.$plexServer.’:32400/library/sections/17/unwatched?X-Plex-Token=’.$plexToken.’’; changed to:
$UnWatchedMoviesURL = ‘http://’.$plexServer.’:32400/library/sections/17/all?X-Plex-Token=’.$plexToken.’’; >

@bam2000 said:
Thanks for the tips, now mine is working like yours, the coming soon section works but the now playing isn’t.

I changed the config.php plexClient IP address from ‘192.168.0.IP’ to ‘127.0.0.1’ and NOW SHOWING works!

Play a movie from your client, check this URL and scroll to the bottom, and find the <Player address=“127.0.0.1”
http://‘.$plexServer.’:32400/status/sessions?X-Plex-Token=‘.$plexToken.’’

Thank you for the updates.

I will be releasing a new BETA version soon. It still needs some polishing, but there is a web front end that allows you to change most of the settings you have been tweaking by hand (Example: Coming Soon text, movie section, etc). It will also allow you to upload a custom image and us it for special events (Example: Super Bowl).

Unfortunately I will need to do some more coding to allow the use of multiple sections, so it will not make this release.

-Matt

@MattsShack said:
Thank you for the updates.

I will be releasing a new BETA version soon. It still needs some polishing, but there is a web front end that allows you to change most of the settings you have been tweaking by hand (Example: Coming Soon text, movie section, etc). It will also allow you to upload a custom image and us it for special events (Example: Super Bowl).

Unfortunately I will need to do some more coding to allow the use of multiple sections, so it will not make this release.

-Matt

I see a number of additions and updates on the Github page. Using the new admin.php setup looks very user-friendly. Great work! Based on what I’m seeing in the config.php, the Movie Section field requires a number of the movie section and not a title…

@MattsShack Really cool that I can now easily change any of the text or switch sections (as long as I memorize the numbers for each section) from the browser on my phone!

I am glad you like the update.

I have a few ideas to help with the Movie section number, but I have not had time to test any of them yet. I am hoping I can grab all the sections on the server and display them in a drop down for you to select. Once that is complete I will try to figure out how to allow for more than one select section and an option to show all posters or just unwatched.

I have a few more changes coming, but I do not have an ETA yet. I am slow at coding, but I do appreciate the feedback and will try to improve the design based on it.

-Matt

No rush @MattsShack! Drop down idea sounds great. Maybe checkboxes to select multiple sections and radio button for all posters or unwatched. Keep up the great work! Still have to run an outlet to hang the TV and find a good deal on a TV. What size TV did you use?

@MattsShack Could you tell me where in the code to change the orientation to landscape? I understand it’s probably not something someone might want to do but I just wanted to see how it would look with just the poster.

@isaacrdz said:
@MattsShack Could you tell me where in the code to change the orientation to landscape? I understand it’s probably not something someone might want to do but I just wanted to see how it would look with just the poster.

That info is at the bottom of the blog post found here: https://www.mattsshack.com/2016/07/26/plex-movie-poster-display/

@JEscHT I like those ideas for section selection. I will see about working on that some this weekend.

@isaacrdz The screen orientation is done in the OS. I am using a raspberry pi running Rasbian. I documented the changes here: https://www.mattsshack.com/2016/07/26/plex-movie-poster-display/#tips

@MattsShack said:
@JEscHT I like those ideas for section selection. I will see about working on that some this weekend.

@isaacrdz The screen orientation is done in the OS. I am using a raspberry pi running Rasbian. I documented the changes here: https://www.mattsshack.com/2016/07/26/plex-movie-poster-display/#tips

My bad. I should have been clearer. I mean more for the image displayed as I’m not using a raspberry pi. I actually just wanted to connect a second monitor and display the page from my web server on it. Thing is the picture or the window, being that the size was meant to be displayed in portrait, is cut off and can’t be scrolled down. Hope that make sense.

I was able to get the default Pi (Epiphany) browser into Full Screen Kiosk mode using the following steps:

Start Terminal and type:
sudo raspi-config

Update the Raspi config tool (Advanced Options)
Enable SSH (Interfacing Options)
Disable overscan. (Advanced Options) LEFT MINE ENABLED, LOOKED BETTER ON MY TV
Change to Desktop/CLI with Desktop Autologin (Boot Options)

Reboot.

Now start Terminal and update your system:
sudo apt-get update
sudo apt-get upgrade

Install Epiphany (browser), x11 server utils, xautomation and unclutter (hide the cursor from the screen) using the following:
sudo apt-get install epiphany-browser x11-xserver-utils xautomation unclutter

In Terminal, type:
sudo nano /home/pi/fullscreen.sh

Fullscreen shell script should look like this:
sudo -u pi epiphany-browser -a -i --profile ~/.config http://192.blah.blah.blah --display=:0 &
sleep 15s;
xte “key F11” -x:0

Change file mode:
sudo chmod 755 /home/pi/fullscreen.sh

Edit the autostart file to run the script:
sudo nano ~/.config/lxsession/LXDE-pi/autostart

The autostart files needs to look like this:
@xset s off
@xset -dpms
@xset s noblank
@/home/pi/fullscreen.sh

Reboot.
That did it for me…

@MattsShack
Some Now Playing movies have a long Summary for the Info section, is there code that can be used to scroll the text either vertically or horizontally within that area below the image?

25px is already small, 20px was too tiny even on a 50" TV.

@MattsShack Is there something in the code that I can change so that I can have the Coming Soon posters change more frequently than the current ~30 secs? I would like to try it at 15 secs to see how it looks…