Spotify LED Display

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

Github Repo

Project Requirements

  1. 2x 64x32 led matricies
  2. Power Supply for matricies Power Supply
  3. 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)
  4. jumper wires for RPI GPIO header pins to the IN pins on the matricies
  5. I would also reccomend a ribbon cable for connected the two matricies otherwise you can daisy chain some jumper wires

Getting Setup

  1. Refer to this link for setting up your wiring hzeller’s RPI GPIO LED controller
  2. 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
  3. 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
  4. Set enviornment variables for
    • CLIENTID
    • CLIENTSECRET
    • SMTP_EMAIL
    • SMTP_EMAIL_PASS
    • REDIRECT URI (set in step two)
  5. set your sms_email in server.py line 98 simply put your number followed by the specified gateway address link to all gateway addresses
  6. install requirements by running pip3 install -r requirements.txt in the projcects root
  7. 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