0 votes
in Touch Interface by (280 points)
I have the esp32-spotify-remote project mostly working on my Color Kit Grande.  After updating the Spotify certificate, it will successfully authenticate using OAuth 2.0 and I can call the Spotify API and get data back to display in the terminal.  My issue is that the project code seems incomplete.  The code runs until the display shows "Startup completed!" and the progress bar goes to 100 percent and then enters the loop() function which seems to just update the clock and do nothing else.  Other than the example code in SpotifyArduino, I don't see anything pulling song information and displaying it.

Is it in the project and am I missing it?  The display is just sitting on the completed progress bar and not showing any song information or controls.  This matches what I see in the code.  I have started building out a song display/control UI, but my understanding was that it should already be there.  Thx!

1 Answer

0 votes
by (280 points)
 
Best answer

I had some available time over the holidays and made a lot of progress on this project.  I ended up starting fresh and reusing/refactoring a bit of the original project initialization code in the GitHub esp32-spotify-remote project.  With the exception of the certificate being out of date, the code all seemed to work up to initializing the device and authenticating with Spotify.  

For my project, I refactored this code to eliminate dead code from other projects, allow the header files to better be reused, and to generally position it to support a bigger more expansive code base.  I also updated the dependencies to use the latest versions which seems to be working fine.  Using that as a starting point, my working version is currently calling the Spotify API, displaying a landscape UI with two display modes with one including the album art, album title, song time, and artists, refreshes include retry logic and loads Spotify data using the ESP32's native multitasking abilities (currently pinned to one of the two cores), and supports next, skip, and pause.  

I still have a bit more to do, but the GitHub project definitely helped... just don't think of it is a compile and load type of thing like the Weather app is.  However, if you were like me, using the now bricked Spotify Car Thing as a desktop Spotify companion, the Color Kit Grande is everything you need to get a replacement running.  I actually built two to use in various rooms. The advantage of using this kit over some of the efforts to bring the Car Thing back to life is that the Car Thing doesn't seem to have the hardware necessary to stand alone without running companion desktop software.  This is fine if that is the only place Spotify will be running, but if you run Spotify in a variety of settings, don't want need/want software running on the desktop, and/or you want something portable, then the Color Kit Grande offers a lot. 

Welcome to ThingPulse Q&A, where you can ask questions and receive answers from other members of the community.

https://thingpulse.com

...