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.1k 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.
    • L Offline
      Lauren0612 @Guest
      last edited by

      @Bugsounet if i put it on my rasberry pi and you take away the module again I’m assuming it won’t work anymore? Sorry I’m new to rasberry pi and still trying to figure everything out 😩

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

        don’t cry :)
        You know i will not stop coding … I prefer make good thing and take time …

        in All case, actually i have not many time … (changing job and location)
        So i prefer make on line my modules rather than make you wait a long time !

        but in the long run i will make my own mirror system (it’s planned!)

        L 1 Reply Last reply Reply Quote 1
        • L Offline
          Lauren0612 @Guest
          last edited by

          @Bugsounet good luck in your new job!

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

            Thx, i start it in 15 days !
            So imagine, i have not many time for coding !

            and besides what I tell you the internet connection will be really but really not great …
            (maybe LTE altenative needed … i think)

            1 Reply Last reply Reply Quote 0
            • A Offline
              Andresleonsalas @Guest
              last edited by

              @Bugsounet Thanks a lot! Your modules are GREAT!

              1 Reply Last reply Reply Quote 0
              • L Offline
                lotman9000
                last edited by

                Hey guys,
                I recently discovered this module and love it! Unfortunately, I can’t manage to enable the volume control via notifications. While other notifications such as “SPOTIFY_SHUFFLE” or “SPOTIFY_TOGGLE” work, “SPOTIFY_VOLUME_UP” or “_DOWN” won’t.

                I am using a usb macro pad as input device (mapped to numeric keys 1-10) with MMM-Keybindings. The following settings are a minimal working example from my config.js:

                modules: [
                		{
                			module: "alert",
                		},
                		{
                            		module: "MMM-KeyBindings",
                            		config: {
                				enableKeyboard: true,
                				handleKeys: ['1', '2', '3', '4', '5', '6', '7', '8', '9', '10'],
                				actions: [
                						{
                						key: "1",
                						notification: "SPOTIFY_SHUFFLE"
                						},
                						{
                						key: "2",
                						notification: "SPOTIFY_VOLUME_DOWN"
                						},
                		{
                  		module: "MMM-Spotify",
                  		position: "bottom_left",
                  		config: {
                			volumeSteps: 5,
                			debug: false, 
                			control: "hidden"
                 			 }
                		}
                	]
                

                I also realized that the module is not receiving the current volume from my devices but is rather stuck at 100%.

                Is there anyone who might have an idea of how to fix this problem? Thank you so much in advance!

                1 Reply Last reply Reply Quote 0
                • A Offline
                  Abstr @requiemmg
                  last edited by

                  @requiemmg

                  Hey Requiemmg, I’m dealing with the exact same problem, so im very curious if you managed to fix the problem? thnx!

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

                    @Abstr install the spotify connect app on your pc. it will.let u control spotify on the pi. install raspotify or librespot on the pi. spotify connect will.let u make sure spotify is working. i think.u can control the player volume from the connevt app

                    https://www.spotify.com/us/connect/

                    Sam

                    How to add modules

                    learning how to use browser developers window for css changes

                    1 Reply Last reply Reply Quote 0
                    • A Offline
                      Abstr @requiemmg
                      last edited by

                      @requiemmg , @sdetweil Thanks for the quick reply. Volume is working fine, but switching between 2 different “Client Id’s” isnt working. The MagicMirror only shows the accountdefault: 0. This means first device is working fine, but it isnt possible to switch to another device.

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

                        @Abstr device or account.

                        each system is one device. far as i know spotify bequires logoff/logon to switch
                        accounts. even family is multiple users under one payment plan

                        again verify how it works with the connect app. has nothing to do with mm

                        Sam

                        How to add modules

                        learning how to use browser developers window for css changes

                        S A 2 Replies Last reply Reply Quote 0
                        • S Offline
                          sdetweil @sdetweil
                          last edited by

                          @sdetweil verify w the connect app

                          Sam

                          How to add modules

                          learning how to use browser developers window for css changes

                          1 Reply Last reply Reply Quote 0
                          • A Offline
                            Abstr @sdetweil
                            last edited by

                            @sdetweil Sorry, you are right. But I mean, I can connect my phone (with account A) to the spotify module. It shows up on the MM and music plays with Raspotify.

                            But switching to another phone (with account B ) isnt working. Music plays with Raspotify but doesnt show up on the MagicMirror.

                            I’ll try the connect app

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

                              @Abstr raspotify plays in the background

                              dont expect phone and other software to work the same. spotify doesnt care about not its platform

                              Sam

                              How to add modules

                              learning how to use browser developers window for css changes

                              S A 2 Replies Last reply Reply Quote 0
                              • S Offline
                                sdetweil @sdetweil
                                last edited by

                                @sdetweil the mm aps show the music that is playing SOMEWHERE.

                                some modules will let u stop/start/move play somewhere. not all 100% functional all the time

                                Sam

                                How to add modules

                                learning how to use browser developers window for css changes

                                1 Reply Last reply Reply Quote 0
                                • A Offline
                                  Abstr @sdetweil
                                  last edited by

                                  @sdetweil ‘‘spotify doesnt care about not its platform’’, thats oke but my problem is switching between multiple spotify accounts.

                                  https://github.com/skuethe/MMM-Spotify

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

                                    @Abstr ok doc said u had to authorize each account in the order u set them up in the config json file

                                    did u get a request to allow for each account?

                                    never seen one work like this

                                    Sam

                                    How to add modules

                                    learning how to use browser developers window for css changes

                                    A 1 Reply Last reply Reply Quote 0
                                    • A Offline
                                      Abstr @sdetweil
                                      last edited by

                                      @sdetweil Yes, I got both both accounts allowed in the correct order. Username, ID’s and token work fine. I’ve setup two users in spotify.config.json like the sample below. The user which I put first in the spotify.config.json get to display the music in MagicMirror. The second user doesnt. No matter if I swap them.

                                      [
                                      {
                                      “USERNAME”: “AN NAME TO IDENTIFY THIS ACCOUNT”,
                                      “CLIENT_ID” : “PUT_YOUR_SPOTIFY_APP_CLIENT_ID”,
                                      “CLIENT_SECRET” : “PUT_YOUR_SPOTIFY_APP_CLIENT_SECRET”,
                                      “TOKEN” : “./username_token.json”
                                      },
                                      {
                                      “USERNAME”: “ANOTHER NAME TO IDENTIFY THIS ACCOUNT”,
                                      “CLIENT_ID” : “PUT_YOUR_SPOTIFY_APP_CLIENT_ID”,
                                      “CLIENT_SECRET” : “PUT_YOUR_SPOTIFY_APP_CLIENT_SECRET”,
                                      “TOKEN” : “./another_token.json”
                                      }
                                      ]

                                      L 1 Reply Last reply Reply Quote 0
                                      • L Offline
                                        lotman9000 @Abstr
                                        last edited by lotman9000

                                        @Abstr you might be able to hardcode it within the MMM-Spotify.js file by adding

                                              case "SPOTIFY_ACCOUNT_JONDOE":
                                                this.sendSocketNotification("ACCOUNT","JONDOE")
                                                break
                                        

                                        (e.g. after line 128) in order to create a notification that lets you address a specific account. Doesn’t allow toggling but might help you choosing a specific account. This should be the USERNAME from the spotify.config.json file.

                                        A 1 Reply Last reply Reply Quote 0
                                        • A Offline
                                          Abstr @lotman9000
                                          last edited by

                                          @lotman9000 Ill try. thank you!

                                          1 Reply Last reply Reply Quote 0
                                          • R Offline
                                            razserv2010 @Guest
                                            last edited by

                                            @sean
                                            hey, try to
                                            node first_auth.js
                                            but i always get INVALID_CLIENT: Invalid redirect URI massage
                                            and i get to my email that thare is new log in
                                            what is the issue?

                                            S 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