Read the statement by Michael Teeuw here.
MMM-Spotify
-
@sdetweil ‘‘spotify doesnt care about not its platform’’, thats oke but my problem is switching between multiple spotify accounts.
-
@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
-
@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”
}
] -
@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.
-
@lotman9000 Ill try. thank you!
-
@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? -
@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 -
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.
-
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 ? -
@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