Skip to content

alhockly/Spotify-OLED

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

34 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Spotify-OLED

Spotify now playing on an OLED screen

alt text

Part List

  1. raspberry pi (or similar) (with Wifi)
  2. I2C or SPI OLED display

Steps

  1. connect OLED and configure rpi settings to enable it
  2. install
  • python3 sudo apt-get install python3
  • pip3 sudo apt-get install python3-pip
  • git sudo apt-get install git
  • libopenjp2-7 sudo apt-get install libopenjp2-7-dev
  1. using pip3 install the following python libraries
  • Pillow pip3 install pillow
  • luma.oled pip3 install luma-oled
  1. install python library for spotify using pip3 install git+https://github.com/plamere/spotipy.git --upgrade
  2. create a spotify api app by logging in to https://developer.spotify.com/dashboard/applications with your spotify account
  3. replace details in Spotify-OLED.py with app credentials from spotify and modify screen variables to suit resolution, spi/i2c etc.
  4. copy spotify-oled.service from the repo to /etc/systemd/system/ and run sudo systemctl enable spotify-oled.service (You can also replace enable with start or status for manual starting/stoping the service)
  5. It maybe be nessesary to sudo chmod +x Spotify-OLED.py for the autostart to work... I cant remember exactly what I did