feelfreelinux / cspot

A Spotify Connect player targeting, but not limited to embedded devices (ESP32).
Other
479 stars 44 forks source link

cspot as standalone player #141

Open hillstub opened 1 year ago

hillstub commented 1 year ago

I'd like to make a player where I can use NFC cards to start playing Spotify albums. I've previously used a Raspberry pi for this, but would love to use an ESP32 board so it'll boot a bit faster. Could you give some suggestions on how to make cspot work as a standalone player?

Thanks in advance!

Ryan-Romig commented 1 year ago

cspot allows for ESP32 to be a Spotify Connect device. check out this repo ( also visit their youtube channel for walkthrough) It uses amazon echo dot as Spotify Connect device and the esp32 to read the NFC. https://github.com/makeratplay/esp32SpotifyEchoDot

instead of using the echo dot as spotify connect, you would use the device running cspot instead.

The repo is with arduino but is simple enough and can be ported to esp-idf framework.

you could implement the code that scans NFC and sends the play command to a spotify connect device as rtos task in the main.cpp of cspot https://github.com/feelfreelinux/cspot/blob/master/targets/esp32/main/main.cpp

good luck, hope this is helpful