Spotify app for M5Paper
-
Application to monitor and control a Spotify client using the M5Paper.
Note: This is not itself a Spotify client, it cannot stream Spotify through the M5Paper.Three screen layouts available, show below.
Initial Spotify authentication through a built-on webserver, then refresh token saved to EEPROM and should function independently.Polls Spotify to update data at one of two compile-time configurable rates, depending on whether there is currently an active Spotify device found or not. Shuts down after configurable interval with no active client found if running on battery.
You need to create a (free) developer account and client app with Spotify, and approve access of this application to your Spotify account.
Requested scopes are:
- user-read-private
- user-read-currently-playing
- user-read-recently-played
- user-read-playback-state
- user-modify-playback-state
Code available at https://github.com/murraypaul/M5Spot.
Based on original M5Spot project by Cosmic Mac available at https://github.com/CosmicMac/M5Spot.Icons by icons8.
-
This looks amazing, just what I need. Thanks!
Does it support multiple accounts or just one?
-
@bwubs Just one, which you have to specify when compiling the app.
-
I finally have some time to look into putting this on my m5paper, but i'm unable to compile it. I'm getting the following error message:
fatal error: WiFiMulti.h: No such file or directory
Do you have any idea whats going wrong? I've tried searching the web for WiFiMulti, but I cannot find the library it's part of.
Thanks!
-
@bwubs This is part of the arduino-esp32 package: https://github.com/espressif/arduino-esp32/tree/master/libraries/WiFi/src, you should have that installed already.
-
I have been trying to get this project up and running for a few days. I had to change the definition of the version in the code and then I was able to flash the code successfully via the Arduino IDE.
Now I have problems with the refresh token. Has anyone used the code again? Were there any adjustments in the API that I overlooked?
I think this project is totally cool, but I can't get it to run properly. Would be grateful for any help.
Kind regards -
How can I create an M5Paper app to monitor and control a Spotify client (without streaming) that features three screen layouts, authenticates via a built-in web server, and saves the refresh token to EEPROM? It should poll Spotify at configurable rates and shut down after a set time without an active client. I’ll need to set up a Spotify developer account for specific scopes while highlighting Spotify Premium benefits and providing a download link. The code is available at https://github.com/murraypaul/M5Spot, based on Cosmic Mac's original project.