Movie Tracker is a clapperboard shaped, Raspberry Pi-powered Release Tracker. It uses the TMDb API to print the poster, title, release date and overview of upcoming movies in your region, in a specified time interval(eg. movie releases this week) on thermal paper. There is a LED on the back of the board that lights up when there are new releases. Also, It has two magnets so you can attach the movies you want to watch on the board.
In the first step, I'll talk about the Idea behind this project. Next, I'll give you a list of all the parts&tools used to build this project. Then I'll show you how to set up your Raspberry Pi to run this program. After giving you a step by step assembly guide I'll end this instructable with a troubleshooting guide and what's next section.
Step 1: The Idea
I am a huge movie fan, I always keep my tickets and attach them to my journal. One day I thought "It would be awesome if movie tickets had posters on them." So this project started with me printing posters for my journal. Later I added a Release date on the poster so I can remember when It was released and that evolved slowly into a movie planning board.
Step 2: Tools & Parts
- 3D printer
- Soldering Iron
- Masking Tape
- Black Spray Paint
- Raspberry Pi 3 (I've had this around but Raspberry Zero is better because of its size)
- Push Button (5mm)
- Adafruit Thermal Printer & thermal paper roll
- Green LED (5mm)
- 330-ohm resistor
- Tin sheet (0.5mm)
- 3 x (30mm M3 bolt & nut)
- 4 x (15mm M3 bolt & nut)
- 4 x (5x5mm M3 heat insert)
3D Printed Parts:
Step 3: Setting Up Your Raspberry Pi
To get the Pi work with our program we first need to set up the SD card that it will boot into. If you are a beginner you can check this detailed tutorial:
Next you have to enable SSH on your Raspberry Pi, again there is a detailed tutorial on this,
Enabling SSH will help us get into the Raspberry Pi remotely so we won't have to use a keyboard & monitor every time.
Now login to your raspberry pi with SSH and follow the steps below.
Thermal Printer Library
To use the thermal printer with your Raspberry you first have to install the library that Adafruit is providing.
First create a folder to organize all the files of this project simply by:
and get into that folder by:
now let's install the required libraries. We will be using git to download all code on to the raspberry pi. Install the thermal printer library by:
git clone https://github.com/adafruit/Python-Thermal-Printer.git
Movie Tracker Code
Install the Movie Tracker Code by:
git clone https://github.com/gocivici/movie-tracker.git
now for our code to work, it should be at the same folder with the thermal printer library. to get them in the same folder first get into the Movie Tracker folder by:
and then copy the file to the thermal printer library by:
cp tracker.py /home/pi/Pyhton-Thermal-Printer
now your code is ready for customization.
Note: the code will not execute currently since it has to be customized with an API key.
Step 4: The Movie DB API
We will be using TMDb to get the movie data for this project. TMDb is a great platform which is free to use where you can create movie lists etc. (like IMDB) The best part of TMDb is that they have a free API service which lets you get movie data including posters, release dates etc. programmatically. To use this service you first have to create an account and follow the instructions here to get your API key.
Step 5: Customizing the Code
Login to your Raspberry Pi using SSH and go to the folder where you put the tracker.py file in. Now to edit the file use:
sudo nano tracker.py
inside the file you'll see the place of the API Key indicated as [YOUR_API_KEY]. Copy the key that you've got from TMDb and paste it here. Now your code is ready to run simply test it by:
It should get the latest movie release info and print it on the console. If not check the Troubleshooting guide at the end of this instructable.
If you want to use the tracker with its default settings you can skip the next part.
In its default setting, the tracker will update each day to get new release info and will save it if the release date is in the interval of 10 days. You can change these settings to your liking. by changing this line:
rDate = 10
Step 6: Assembly - Electronics
After connecting the electronics as shown on the image we'll test each part to make sure they're working.
Get into the Thermal printer library folder and run:
cd Python-Thermal-Printer python printertest.py
this should print a test sheet I there is a problem check the printer parts and test again.
Create a new file “LED_Test.py” by typing the following:
and copy this to the file:
import RPi.GPIO as GPIO
print "LED on"
time.sleep(1) print "LED off"
When you run this code by:
sudo python LED_Test.py
the LED should light up. If not there is a problem with your LED
Step 7: First Prototype & Test
You don't need a 3D casing for this project. You can use it as shown on the image on its prototype stage.
Now let's test the tracker. Run the tracker by:
sudo python tracker.py
You should see the upcoming movie list on the command line. Now press the button and wait for the printer to finish printing. check if there is in any error on the information on the page. If not your project is ready for the case.
Step 8: 3D Print
Printing all pieces before assembling them is highly recommended.
The printer I used is the TEVO Tornado with the following settings:
- Nozzle: 0.4mm
- infill: %20
- Filament: PLA
Make sure to sand the pieces before painting them.
Step 9: Masking & Painting
Each blue strip of masking tape is 20mm in diameter. I eyeballed the angle of the stripes.
Step 10: Assembly - Clapper
I used a tin sheet and cut it with a Dremel in this shape. The tension of the tin was adjusted by bending it. You can also use other springy parts, It doesnt have to be tin.
Step 11: Assembly - Board
Use a soldering Iron to heat-fit the inserts
Step 12: Soldering
Solder the resistor to the LED and use a heat-shrink to cover it. You don't have to solder the button, I used two jumper cables to attach them to the Raspberry Pi.
Step 13: Final Assembly & Test
I've used a pingpong ball to diffuse the led. It works like magic. You just have to drill a small hole and fit the led inside the ball as shown on the picture.
Step 14: Troubleshooting
+ Printer gets stuck and stops printing
- this can be due to the power supplier, try using one with larger current
+ Can't get data from the API
- There are daily limits for API usage. If you are above the limit they will cut the access of your key. Usually, The limit resets at the end of the day.
Don't hesitate to leave a comment If you are having problems. I'll collect them and try to answer them here.
Step 15: What's Next
In this step, I will list some things I had in my mind. But did not find the time/resources to add them. Feel free to add more Ideas or ways to improve this project in the comments:
- Auto cutter, so you don't have to cut the paper every time manually.
- Watchlist integration, only the movies that are on your watchlist will be printed.
- RGB LEDs can change color for different genres(horror+red etc)
- A wall mount would be nice.
This is not a finished Project. I hope many of you try to build their own consoles so we can develop this together.
If you have any questions ask away! & tell me about your build!
Runner Up in the