Read the statement by Michael Teeuw here.
MMM-Spotify
-
@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
-
@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.
-
@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 planagain verify how it works with the connect app. has nothing to do with mm
-
@sdetweil verify w the connect app
-
@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
-
@Abstr raspotify plays in the background
dont expect phone and other software to work the same. spotify doesnt care about not its platform
-
@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
-
@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
notificationReceivedfunction -
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:
notificationsOnSuspendandnotificationsOnResume- 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.
- @Abstr @razserv2010 I’ve recently re-worked the multi user authentication and fixed some problems with it:
-
@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. -
@luizcarlosnery Hi @skuethe, first of all: great module.
I have set
style: "mini"in my config which works well. However I have made some adjustments to picture size and text size in custom.css.
But I’m missing the scrolling title in this mode.Also, what happens to minibar mode.
I understand you plan to remove that?I have also corrected one issue resulting in an error if you’re not showing the account name, will send a PR on github for that.
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