A Python Script for displaying your currently playing song onto your LED matri/x/(cies) This is still very much a work in progress, current works in progress are refresh tokens and contrasting text for the track’s title
Project Requirements
- 2x 64x32 led matricies
- Power Supply for matricies Power Supply
- One RaspberryPi( I use the RPi 3 mostly because I have a few lying around but it’s also nice not to have to run ethernet to it as well)
- jumper wires for RPI GPIO header pins to the IN pins on the matricies
- I would also reccomend a ribbon cable for connected the two matricies otherwise you can daisy chain some jumper wires
Getting Setup
- Refer to this link for setting up your wiring hzeller’s RPI GPIO LED controller
- Setup A SpotifyAPI app on Spotify’s Developer Dashboard link Make sure to setup a redirect uri this will be http://(your raspberry pi’s ip):5000/spotify/callback
- Setup a Gmail Account for sending the SMS links for spotify verification, make sure to allow less secure apps on your account link to allow less secure apps on account
- Set enviornment variables for
- CLIENTID
- CLIENTSECRET
- SMTP_EMAIL
- SMTP_EMAIL_PASS
- REDIRECT URI (set in step two)
- set your sms_email in server.py line 98 simply put your number followed by the specified gateway address link to all gateway addresses
- install requirements by running
pip3 install -r requirements.txt
in the projcects root - Finally run
python3 server.py
in the project’s root
You should recieve a text to your cellphone for the OAuth, which will then, if verified, start requesting your currently playing track’s info and start displaying on the Matrix
See repo for example images