MagicMirror Forum
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • 3rd-Party-Modules
    • Donate
    • Discord
    • Register
    • Login
    A New Chapter for MagicMirror: The Community Takes the Lead
    Read the statement by Michael Teeuw here.

    MMM-Spotify

    Scheduled Pinned Locked Moved Entertainment
    249 Posts 51 Posters 276.0k Views 54 Watching
    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.
    • S Offline
      socosurf
      last edited by

      Does anyone know how I can adjust this module so that the album art is to the left and all the info is to the right of the album art? I basically am running this solo in magic mirror with a dedicated display to show what song is playing in my apartment but right now the album art and text doesn’t utilize all the real-estate of the screen since it’s centered and stacked.

      Can this be altered to have the album art to the left and all the text stacked to the right?

      1 Reply Last reply Reply Quote 0
      • D Offline
        dcimag
        last edited by

        Hi. I was wondering if someone could tell me what I need to edit in the MMM-Spotify module to make Spotify fully function and what I have to do to have it appear on my screen. I have all the details of the MMM-Spotify folder listed under my Music folder on my raspberry pi 4. I dont need to type out the coding. Again just asking what I need to edit of the coding. Already have all the code. Other than all the coding that is in the MMM-Spotify.js document. What do I need to puth for AUTH_DOMAIN: AUTH_PATH: AUTH PORT: SCOPE: and TOKEN.

        1 Reply Last reply Reply Quote 0
        • ? Offline
          A Former User
          last edited by

          I really don’t understand, what do you want to do with this modules…
          MMM-Spotify works

          1 Reply Last reply Reply Quote 0
          • D Offline
            dcimag
            last edited by

            I have the module MMM-Spotify. I just want to know what parts of the module do I have to edit to make the module work properly and what I need to edit to have it appear on the screen.

            ? 1 Reply Last reply Reply Quote 0
            • ? Offline
              A Former User @dcimag
              last edited by

              @dcimag : haaa ok… And do you ask to the developer why he take some time for doing a module and coding an none working module?

              1 Reply Last reply Reply Quote 0
              • S Offline
                socosurf
                last edited by

                Here is what I did with this. I made it in full screen so that I have a dedicated display that shows what I’m playing on Spotify. Changed up the styling and also added a cleaner ‘not playing anything screen’. Pics attached. Was a blast to edit and looks and works great! Picture here.

                1 Reply Last reply Reply Quote 1
                • R Offline
                  requiemmg
                  last edited by

                  Just installed this module, really great.
                  About multiple accounts: I have Spotify family account (=6 Accounts) and multiple devices. I have run through the auth process, went fine, works.
                  What I’d like: To show anything that is playing on any account or device.
                  What I get: Just a single account which is set in “accountDefault: 0”.
                  When I change it to 1, 2,3 - it works with the respective accounts.
                  When I delete it, it’s back to default account 0.

                  Do I have to call the module multiple times or is there a way to do this, @Bugsounet?

                  Z A 3 Replies Last reply Reply Quote 0
                  • Z Offline
                    zauberclown @requiemmg
                    last edited by

                    @requiemmg I actually have the exact same problem/challenge. I tried to include the module multiple time, but that did not work. Were you able to solve the problem to display multiple accounts in a family account?

                    Thx

                    S 1 Reply Last reply Reply Quote 0
                    • S Do not disturb
                      sdetweil @zauberclown
                      last edited by

                      @zauberclown said in MMM-Spotify:

                      @requiemmg I actually have the exact same problem/challenge. I tried to include the module multiple time, but that did not work. Were you able to solve the problem to display multiple accounts in a family account?

                      Thx

                      the module will only show what is playing on one device. this is a Spotify limitation

                      Sam

                      How to add modules

                      learning how to use browser developers window for css changes

                      1 Reply Last reply Reply Quote 0
                      • Z Offline
                        zauberclown @Guest
                        last edited by

                        @Bugsounet Good I checked the older messages in this thread to better understand the complexity with multiple accounts. I had no idea it would impact the CPU that much. Thanks for pointing out.
                        Being able to change it verbally is currently not an option as I don’t plan to implement vocal for my mirror. But can’t think of an alternative as of now.

                        BTW: Thanks a lot for your hard work on this module!

                        1 Reply Last reply Reply Quote 0
                        • S Offline
                          spoonek @Guest
                          last edited by

                          @Bugsounet said in MMM-Spotify:

                          if Soptify logo not hidden after start, it’s means :
                          token missing or token error

                          you should have in console something like that :

                          [SPOTIFY:ERROR] USERNAME: [your username]
                          [SPOTIFY:ERROR] Token Error ! ./[token name].json
                          

                          @Bugsounet I have this same error. I got the webpage after running node first_auth.js but it said invalid and then I had to CRTL-Z to stop it. Now when I run node first_auth.js I get errors. Do I need to uninstall MMM-Spotify and start from scratch?

                          Also, I already am using MMM-NowPlayingOnSpotify and that is working fine. Can I just reuse my existing Client ID and Client Secret? I’m worried that using both modules is causing the issue. I could be wrong though.

                          Thanks!

                          1 Reply Last reply Reply Quote 0
                          • ? Offline
                            A Former User
                            last edited by

                            It’s means that the token is not set
                            maybe callback url is not set
                            after if you have used the sudo command for install MM or for install this module, it will not work (not write access)

                            S 1 Reply Last reply Reply Quote 0
                            • ? Offline
                              A Former User
                              last edited by

                              @zauberclown said in MMM-Spotify:

                              Good I checked the older messages in this thread to better understand the complexity with multiple accounts. I had no idea it would impact the CPU that much. Thanks for pointing out.
                              Being able to change it verbally is currently not an option as I don’t plan to implement vocal for my mirror. But can’t think of an alternative as of now.
                              BTW: Thanks a lot for your hard work on this module!

                              yes, I can’t display ALL account in the same time.
                              example 2 accounts listen at the same time -> what is the visual (complex to determinate) !?

                              for CPU time: X account registred = X * CPU time
                              So X * time DNS access, X * traffic to spotify

                              that’s why i use a switch for another account

                              ? 1 Reply Last reply Reply Quote 0
                              • S Offline
                                spoonek @Guest
                                last edited by

                                @Bugsounet Good point. I was thinking I needed to reuse my client ID credentials I had already setup for MMM-NowPlayingOnSpotify. DOH! I just created a “New App” on the Spotify Dev page for MMM-Spotify. Should be good to go now.

                                1 Reply Last reply Reply Quote 0
                                • ? Offline
                                  A Former User
                                  last edited by

                                  when it want to works ;)

                                  S 1 Reply Last reply Reply Quote 0
                                  • S Offline
                                    spoonek @Guest
                                    last edited by

                                    @Bugsounet said in MMM-Spotify:

                                    when it want to works ;)

                                    pi@raspberrypi:~/MagicMirror/modules/MMM-Spotify $ node first_auth.js
                                    [SPOTIFY:ERROR] Token not found! /home/pi/MagicMirror/modules/MMM-Spotify/token.json
                                    [SPOTIFY] Spotify v1.0.2 Initialized…
                                    [SPOTIFY_AUTH] Opening the browser for authentication on Spotify…
                                    events.js:174
                                    throw er; // Unhandled ‘error’ event
                                    ^

                                    Error: listen EADDRINUSE: address already in use :::8888
                                    at Server.setupListenHandle [as _listen2] (net.js:1280:14)
                                    at listenInCluster (net.js:1328:12)
                                    at Server.listen (net.js:1415:7)
                                    at Function.listen (/home/pi/MagicMirror/modules/MMM-Spotify/node_modules/express/lib/application.js:618:24)
                                    at Spotify.authFlow (/home/pi/MagicMirror/modules/MMM-Spotify/node_modules/@bugsounet/spotify/index.js:310:8)
                                    at Promise (/home/pi/MagicMirror/modules/MMM-Spotify/first_auth.js:20:14)
                                    at new Promise ()
                                    at authorize (/home/pi/MagicMirror/modules/MMM-Spotify/first_auth.js:17:12)
                                    at authorizations (/home/pi/MagicMirror/modules/MMM-Spotify/first_auth.js:33:19)
                                    at Object. (/home/pi/MagicMirror/modules/MMM-Spotify/first_auth.js:40:1)
                                    Emitted ‘error’ event at:
                                    at emitErrorNT (net.js:1307:8)
                                    at process._tickCallback (internal/process/next_tick.js:63:19)
                                    at Function.Module.runMain (internal/modules/cjs/loader.js:834:11)
                                    at startup (internal/bootstrap/node.js:283:19)
                                    at bootstrapNodeJSCore (internal/bootstrap/node.js:623:3)

                                    1 Reply Last reply Reply Quote 0
                                    • ? Offline
                                      A Former User
                                      last edited by

                                      @spoonek said in MMM-Spotify:

                                      Error: listen EADDRINUSE: address already in use :::8888

                                      it’s mean that the port 8888 il used by another app… free this port temporarily and retry

                                      S 1 Reply Last reply Reply Quote 0
                                      • S Offline
                                        spoonek @Guest
                                        last edited by

                                        @Bugsounet said in MMM-Spotify:

                                        @spoonek said in MMM-Spotify:

                                        Error: listen EADDRINUSE: address already in use :::8888

                                        it’s mean that the port 8888 il used by another app… free this port temporarily and retry

                                        I just started over from scratch and now was able to get the authorization webpage login to work.

                                        Screen Shot 2020-08-20 at 7.00.41 PM.png

                                        1 Reply Last reply Reply Quote 0
                                        • ? Offline
                                          A Former User
                                          last edited by

                                          when it want to work ;)

                                          1 Reply Last reply Reply Quote 0
                                          • R Offline
                                            requiemmg
                                            last edited by

                                            I understand the CPU and traffic issue, but would there be any chance to check at least 2 accounts at the same time in a future version?

                                            1 Reply Last reply Reply Quote 0

                                            Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                                            Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                                            With your input, this post could be even better 💗

                                            Register Login
                                            • 1
                                            • 2
                                            • 8
                                            • 9
                                            • 10
                                            • 11
                                            • 12
                                            • 13
                                            • 10 / 13
                                            • First post
                                              Last post
                                            Enjoying MagicMirror? Please consider a donation!
                                            MagicMirror created by Michael Teeuw.
                                            Forum managed by Sam, technical setup by Karsten.
                                            This forum is using NodeBB as its core | Contributors
                                            Contact | Privacy Policy