Spotify now playing on an OLED screen
- raspberry pi (or similar) (with Wifi)
- I2C or SPI OLED display
- connect OLED and configure rpi settings to enable it
- 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
- using pip3 install the following python libraries
- Pillow
pip3 install pillow
- luma.oled
pip3 install luma-oled
- install python library for spotify using
pip3 install git+https://github.com/plamere/spotipy.git --upgrade
- create a spotify api app by logging in to https://developer.spotify.com/dashboard/applications with your spotify account
- replace details in Spotify-OLED.py with app credentials from spotify and modify screen variables to suit resolution, spi/i2c etc.
- copy spotify-oled.service from the repo to /etc/systemd/system/ and run
sudo systemctl enable spotify-oled.service
(You can also replaceenable
withstart
orstatus
for manual starting/stoping the service) - It maybe be nessesary to
sudo chmod +x Spotify-OLED.py
for the autostart to work... I cant remember exactly what I did