🚀 Connecting Physical and Digital: An ESP32 Spotify Display Built on Cloudflare Workers
At Ateljé Vagabond we build small, well-crafted systems. This article is about one of them: a 1.83-inch ESP32 display on the studio desk that shows what is currently playing on Spotify — and the Cloudflare Worker behind it that simultaneously powers a live widget on our website. The interesting part is not the display itself. It is the architecture that makes it work without storing credentials in firmware, without duplicating API calls, and without two separate Spotify integrations fighting each other. One Worker at the edge handles everything: OAuth, token refresh, PNG-to-RGB565 image conversion, caching, and authentication for two completely different types of client. This post covers the full system — the hardware quirks, the Worker design, the zero-heap-allocation JSON parser on the microcontroller, the OTA update pipeline, and why it is built the way it is. Why Not Call Spotify Directly From the Device? We wanted a small LCD on the studio desk that shows what is currently playing on Spotify. We had an ESP32 and a 1.83-inch display. The obvious first idea was to call the Spotify API directly from the firmware. In practice, this does not work well. The Spotify Web API uses OAuth tokens that expire every hour. Storing a client secret in firmware is not safe — anyone who reads the flash has your credentials. The device would also need to handle token refresh, manage TLS certificates, and stay within rate limits, all on a microcontroller with limited memory. We also wanted t...
👉 Read more: https://dev.to/ateljevagabond/connecting-physical-and-digital-an-esp32-spotify-display-built-on-cloudflare-workers-3j3l
