An application built for the Raspberry Pi that fetches the most popular movie posters and displays them. Meant to be a digital poster display.
-
Install raspian lite on raspberry pi
-
Change the default password on the default Pi account (GUIDE HERE)
-
Ensure network connection is active, either by connecting an ethernet cable or through WiFI
-
Enable autologin to skip the login on boot
- Run:
sudo raspi-config - Choose option 3: Boot Options
- Choose option B1: Desktop / CLI
- Choose option B2: Console Autologin
- Select Finish, and reboot the pi.
- Run:
-
If you need to access the pi remotely (which shouldn't be necessary) enable SSH
-
Disable screen blanking so that the Raspberry Pi’s display doesn’t go to sleep
- type
sudo nano /boot/cmdline.txt - verify that the following line exists:
consoleblank=0 - if the line does not exist, add it
- type
-
Install the photo viewer (FBI), run
sudo apt-get updatethensudo apt-get install fbi -
Rotate the display output for the raspberry pi
- type
sudo nano /boot/config.txt - Change
display_rotate=0to 1, 2, or 3 depending on which way your display is rotated - display_rotate=1 (this will rotate your display 90 degrees)
- display_rotate=2 (this will rotate your display 180 degrees)
- display_rotate=3 (this will rotate your display 270 degrees)
- If there is no entry for “display_rotate”, you can add it
- type
-
At this point you can clone this repository containing the scripts required into the raspberry pi by running
git clone https://github.com/officialgupta/GoPoster.gitin the base directory (/home/pi) -
You will need a TMDB API key to fetch the appropriate posters, to do so you must create a TMDB account and then navigate to the API Page to obtain the API key. It is very important that you place this api key into a file named "key" in the base directory (/home/pi).
-
Make the project run automatically on startup
- Change to your home directory by typing
cd ~ - type
sudo nano .bashrc - add a line to the end of the file that reads ./posterpi.sh
- Change to your home directory by typing
-
You must schedule the raspberry pi to fetch the latest posters. To schedule the poster to refresh every day type
0 0 * * * /home/pi/getposters.sh. You can use an alternate cron entry for a different interval.
- The amount of time a poster displays for can be changed in the posterpi.sh file by changing the -t parameter within the fbi call.
fbi -t <TIME IN SECONDS> -a --noverbose -l /home/pi/PosterPi.txt
-
You may need to make the shell files executable using
chmod +x <filename> -
If you change the Go code you will need to rebuild it in a linux environment, the easiest way is to install go on the raspberry pi using
sudo apt-get install golangand then runninggo build -
The photo display elements of this project were adapted from Rob O'Hara's PosterPi. the writeup for this and some extra tips can be found at his blog post.