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.
    • F Offline
      ForrestFire2222 @ForrestFire2222
      last edited by

      I started from scratch, loading MMM-Spotify first to my mirror and it works with no issues… sorry I didn’t try that sooner. Thanks again!

      1 Reply Last reply Reply Quote 0
      • T Offline
        Telliman
        last edited by

        Set this up and works great! Thanks so much! Now next for me is to set up Assistant and this will be sweet!
        Thanks so much!

        1 Reply Last reply Reply Quote 0
        • M Offline
          mmmmh Project Sponsor
          last edited by mmmmh

          @Sean Is there a way to make the connection watchdog more forgiving/resilient? Even though I set the refresh rate to 5 seconds I see API connection timeouts and recently also this:

          [SPOTIFY] API Request fail on : /v1/me/player
          [2020-05-05 16:43:27.591] [LOG]
          { Error: socket hang up
              at createHangUpError (_http_client.js:332:15)
              at TLSSocket.socketOnEnd (_http_client.js:435:23)
              at TLSSocket.emit (events.js:203:15)
              at endReadableNT (_stream_readable.js:1145:12)
              at process._tickCallback (internal/process/next_tick.js:63:19) code: 'ECONNRESET' } undefined
          
          S 1 Reply Last reply Reply Quote 0
          • M Offline
            mmmmh Project Sponsor
            last edited by

            What would the best approach to hide other specific modules when this module is active, i.e. when music is being played?

            It may be to early to ask this since @Bugsounet just volunteered a few minutes ago to take over this project so take your time with your feedback.

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

              leave me a few days … I have to inspect the entire API :)

              M 1 Reply Last reply Reply Quote 0
              • S Offline
                sdetweil @mmmmh
                last edited by

                @mmmmh i tried to use watchdog for another problem, but there were normal disconnects between the front and back ends, which WOULD have recovered, had watchdbog not restarted MM… I gave up

                Sam

                How to add modules

                learning how to use browser developers window for css changes

                1 Reply Last reply Reply Quote 0
                • M Offline
                  mmmmh Project Sponsor @Guest
                  last edited by

                  @Bugsounet Take your time.

                  Currently, the module already has awareness about playback activity. An API call to an endpoint of my choosing on state change would already solve it for me. The endpoint could also be MMM-Remote-Control’s API.

                  I guess I can sift through the module’s code and see if with my humble skills can insert a simple request at the proper place. We’ll see how it goes.

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

                    don’t worry ;)
                    I was trained by @eouia!

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

                      MMM-Spotify

                      new owner, new version, new change :)

                      v1.3.0 (2020-05-13)

                      • Fixed: on lost internet connexion
                      • Added: SPOTIFY_CONNECTED SPOTIFY_DISCONNECTED notification
                      • Added: debug mode
                      • Added: deviceDisplay feature
                      • Added: handling for extra device icons
                      • Added: debug mode for Hiding console logs (memory leaks)
                      • Added: fade in transition on cover
                      • Added: box shadow around cover to highlight from background

                      Again, not in the change log

                      • Fixed : Spotify Free ads errors solved
                      M 1 Reply Last reply Reply Quote 2
                      • M Offline
                        mmmmh Project Sponsor @Guest
                        last edited by

                        @Bugsounet Cool additions and fixes. I need to find out more about the notifications to learn how to disable other modules when music is streaming.

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

                          I make a developer tools module for displaying notification and payload Read there :)

                          I think it can help you

                          M 1 Reply Last reply Reply Quote 0
                          • M Offline
                            mmmmh Project Sponsor @Guest
                            last edited by

                            @Bugsounet Very interesting. This also looks promising. I’ll comment in the other topic.

                            1 Reply Last reply Reply Quote 0
                            • M Offline
                              mmmmh Project Sponsor
                              last edited by

                              @Bugsounet I noticed in my pihole logs that there were at least 10 DNS queries for Spotify per second, something is not right. The actual refresh rate for the module is set to 3000 ms. I had to disable the module.

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

                                i correct it with last update :)

                                1.3.2 (2020-05-15)
                                Modified: onStart script (Now launched if Spotify initialized)
                                Added: "Cast" Icons
                                1.3.1 (2020-05-14)
                                Modified: 'progress bar'
                                Fixed: number of request on idle (depend now of updateInterval config)
                                
                                1 Reply Last reply Reply Quote 0
                                • ? Offline
                                  A Former User
                                  last edited by A Former User

                                  @mmmmh :

                                  sorry, I take over the project … and its bugs!
                                  I correct little by little :)

                                  note: after … I understand why my mirror crashed with this module!
                                  now it’s better :)

                                  thinking to @eouia who love when I fixed bugs

                                  1 Reply Last reply Reply Quote 2
                                  • M Offline
                                    mmmmh Project Sponsor
                                    last edited by

                                    @Bugsounet, thanks for fixing it. From the changelog, should I expect that many requests again when not on idle?

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

                                      I will try to improve it…
                                      actually i’m working arround another bug …
                                      multi account and connected / disconnected notification …

                                      with one account it’s works correctly but not with multi :(

                                      bouah !

                                      it’s horrible, in multi-account mode, MMM-Spotify tries to connect to all accounts to send news live

                                      I really wonder if the multi-account mode is really a good feature

                                      and of course … wow it spam like it can not connect to the account that we do not use

                                      humm, how to manage this mess !?
                                      i will impect …

                                      Note:

                                      • with multi account, I think It can crash the RPI … (so so so so … more loop)
                                      • in my dev platform (desktop with debian linux):
                                        • in idle: CPU 3%
                                        • with buggy playing multi-account : CPU 36%

                                      It’s very very high !!!

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

                                        So…

                                        I propose this (and i have already coded a part of it in other dev) :

                                        • a single account checking and displaying (default account in config)
                                        • Changing account is by vocal (like Jarvis ... Spotify account name)

                                        name is the USERNAME defined in the spotify.config.json file
                                        Of course, i will add this function in AMk2 Spotify recipe

                                        Result:
                                        Less CPU time, Less DNS request, Less Loop for Checking … More Free Memory and RPI will be better

                                        what do you think about this ?

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

                                          v1.4.0 (2020-05-16)

                                          • Added & Modified: Multi-account management by notification SPOTIFY_ACCOUNT
                                          • Fixed: Loop CONNECTED/DISCONNECTED on multi-account
                                          • Fixed: Less CPU time, Less DNS request
                                          • Fixed: Maybe RPI crashed when using multi-account (memory leaks)
                                          1 Reply Last reply Reply Quote 0
                                          • M Offline
                                            mmmmh Project Sponsor
                                            last edited by

                                            Regrettably, DNS requests are still too many. I see 1000 in 10 minutes (purple is a fresh install of MagicMirror with just the clock and the Spotify module):

                                            40ae5d0e-c676-43c6-b947-ef74e2640cad-image.png

                                            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
                                            • 6
                                            • 7
                                            • 8
                                            • 9
                                            • 10
                                            • 11
                                            • 12
                                            • 13
                                            • 8 / 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