🤖Have you ever tried Chat.M5Stack.com before asking??😎
    M5Stack Community
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login

    Spotify app for M5Paper

    PROJECTS
    4
    7
    11.9k
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • M
      murraypaul
      last edited by

      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.

      Landscape, big art
      Landscape, small art
      Portrait, big art

      1 Reply Last reply Reply Quote 0
      • B
        bwubs
        last edited by

        This looks amazing, just what I need. Thanks!

        Does it support multiple accounts or just one?

        M 1 Reply Last reply Reply Quote 0
        • M
          murraypaul @bwubs
          last edited by

          @bwubs Just one, which you have to specify when compiling the app.

          1 Reply Last reply Reply Quote 0
          • B
            bwubs
            last edited by

            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!

            M 1 Reply Last reply Reply Quote 0
            • M
              murraypaul @bwubs
              last edited by

              @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.

              1 Reply Last reply Reply Quote 0
              • R
                roncolony
                last edited by

                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

                1 Reply Last reply Reply Quote 0
                • E
                  enzo5
                  last edited by

                  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.

                  1 Reply Last reply Reply Quote 0
                  • First post
                    Last post