• Recent
  • Tags
  • Unsolved
  • Solved
  • MagicMirror² Repository
  • Documentation
  • 3rd-Party-Modules
  • Donate
  • Discord
  • Register
  • Login
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
242 Posts 50 Posters 218.7k Views 53 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.
  • A Offline
    Abstr @sdetweil
    last edited by Jan 18, 2021, 9:28 AM

    @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 Jan 19, 2021, 1:18 PM Reply Quote 0
    • L Offline
      lotman9000 @Abstr
      last edited by lotman9000 Jan 19, 2021, 1:18 PM Jan 19, 2021, 1:18 PM

      @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 Jan 19, 2021, 7:16 PM Reply Quote 0
      • A Offline
        Abstr @lotman9000
        last edited by Jan 19, 2021, 7:16 PM

        @lotman9000 Ill try. thank you!

        1 Reply Last reply Reply Quote 0
        • R Offline
          razserv2010 @Guest
          last edited by Feb 25, 2021, 2:49 PM

          @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 Feb 25, 2021, 4:09 PM Reply Quote 0
          • S Online
            sdetweil @razserv2010
            last edited by sdetweil Feb 25, 2021, 4:16 PM Feb 25, 2021, 4:09 PM

            @razserv2010 sean has left mm for family reasons, now a year ago.

            the was taken over by another user.

            who is not here on these forums currently, see
            http://forum.bugsounet.fr

            Sam

            How to add modules

            learning how to use browser developers window for css changes

            1 Reply Last reply Reply Quote 0
            • C Offline
              crisvdn
              last edited by Mar 3, 2021, 7:27 PM

              Hi there,
              I am currently using this module in combination with the GroveGesture module. I can use simple gesture commands (up, down, left, right etc).

              I want to implement a solution to quickly switch between artists, playlists, tracks etc.
              However, do you guys know if there’s a module that works well for this? I haven’t found anything like this just yet…
              I am completely fine with adding the playlists hardcoded in the config file.

              If this does not exist, I might consider making this as an addition to the MMM-Spotify module.

              1 Reply Last reply Reply Quote 0
              • L Offline
                luizcarlosnery
                last edited by Mar 27, 2021, 11:38 AM

                Hello, thanks for this excellent module, I’ve been using it for some time but only now I came across a problem that I don’t know how to solve …
                I need to hide another module when MMM-SPOTIFY is in play mode, and hide when MMM-SPOTIFY is in PAUSE.
                Has as ?

                L 1 Reply Last reply Mar 28, 2021, 12:45 PM Reply Quote 0
                • L Offline
                  lavolp3 Module Developer @luizcarlosnery
                  last edited by lavolp3 Mar 28, 2021, 12:45 PM Mar 28, 2021, 12:45 PM

                  @luizcarlosnery i haven’t looked in the code yet but a possibility might be too look if the spotify module sends notifications. If it does you might fetch these to hide your module using the notificationReceived function

                  How to troubleshoot modules
                  MMM-soccer v2, MMM-AVStock

                  L 1 Reply Last reply Mar 30, 2021, 3:14 PM Reply Quote 0
                  • S Offline
                    skuethe
                    last edited by Mar 29, 2021, 8:39 AM

                    Hi everybody. I am the new owner of this module (as of last year October). I haven’t monitored these forums / this post for problems so far. If you do have technical problems with this module please be so kind to directly open an issue in the git repo:

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

                    It makes working on issues a lot easier. Thanks!

                    As to some of the open topics / questions here of the last weeks:

                    • @Abstr @razserv2010 I’ve recently re-worked the multi user authentication and fixed some problems with it:
                      https://github.com/skuethe/MMM-Spotify/releases/tag/v2.0.1
                    • @crisvdn I am using it with MMM-Touch (which, of course, requires a touch screen) - it is a very powerful module
                    • @luizcarlosnery there is no direct option to do this. But you can definitely get something to work. There is a build-in config option to send custom notifications on suspend / resume:
                      notificationsOnSuspend and notificationsOnResume - see README for more details
                      You could, for example, use it in addition with MMM-pages which has some nice options to handle suspending / resuming special modules based on different pages

                    I hope that helps for now. I have some more fixes and improvements in the pipe that will be merged in the next comming weeks.

                    1 Reply Last reply Reply Quote 1
                    • L Offline
                      luizcarlosnery @lavolp3
                      last edited by Mar 30, 2021, 3:14 PM

                      @lavolp3 Thanks, but I managed to solve it by editing “Spotify.js” in play (param, cb) {
                      this.doRequest (“/ v1 / me / player / play”, “PUT”, null, param, cb)
                      }

                      pause (cb) {
                      this.doRequest (“/ v1 / me / player / pause”, “PUT”, null, null, cb)
                      }
                      I included the url commands for the remote control and solved the problem.

                      L 1 Reply Last reply Apr 15, 2021, 1:13 PM Reply Quote 0
                      • 1
                      • 2
                      • 21
                      • 22
                      • 23
                      • 24
                      • 25
                      • 23 / 25
                      • 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