DEV Community

Cover image for Build a Spotify Desk Widget with Raspberry Pi and e-Paper Display
johnmollar
johnmollar

Posted on

Build a Spotify Desk Widget with Raspberry Pi and e-Paper Display

If you're a music lover and a tech tinkerer, here's a fun weekend project—building a custom Spotify desk widget using a Raspberry Pi and a 2.7-inch Waveshare e-Paper display.

The idea is simple: every time a new song plays on Spotify, your e-Paper display automatically updates with the track title, artist, and album cover. This is made possible using Home Assistant, Python, and a few smart triggers.

Here’s how it works: Home Assistant detects a change in the media player (Spotify), then fires a webhook to your Raspberry Pi. The Pi runs a Python script that pulls song data from Home Assistant’s API, generates a custom image using the PIL library, and displays it on the e-Paper screen. You can also fetch other data like weather to make your widget even more informative.

This setup combines smart home automation and coding creativity—perfect for DIY fans. Not only does it save time from constantly checking your app, but it also looks sleek on your desk!

Top comments (0)