Robotics, with Tourer Mohamed
A ring that knows my mood, and a home that plays the music for it.
Every track ends up in one of four moods, and each mood owns a color on the device's screen.
Yellow. Sun through the window, windows down.
Sensors in a ring read how I am.
I come home. The room already knows.
Tracks are scored by mood from their audio features: energy, valence, tempo.
An ESP32 asks the API for a match and starts it on the speaker.
We got the music starting straight from a terminal. The API behind it speaks to Spotify, and the firmware only needs one request.
// the routes the device talks to
GET /api/devices
GET /api/now-playing/mood
POST /api/play
POST /api/pause