@philreis This is unfortunately not possible. The waySpotify works is that no song is actually ever stopped but it is paused. That is why the API can’t differentiate between stopped or paused songs. The only way to force the display to show nothing is by quitting the Spotify client.
Read the statement by Michael Teeuw here.
Posts
-
RE: [MMM-NowPlayingOnSpotify] – Display the currently on Spotify playing song
-
RE: p5.js and Magic Mirror
@leejaeuk You should create a GitHub repository for your code so that someone can have a look at it.
-
RE: [MMM-NowPlayingOnSpotify] – Display the currently on Spotify playing song
@schlachtkreuzer6 You need to enter both your secret ID and client secret in the input boxes and then click “Authorize my app!”. After that the message in Step 3 should disappear and show you exactly what you need to copy in your
config.js
.You need to make sure that you put the shown callback url in the app’s setting on Spotify.
-
RE: p5.js and Magic Mirror
@leejaeuk The
getScript
function is responsible for making p5.js available to your code. Thats why it reads likegetScripts: function() { return [ "https://cdnjs.cloudflare.com/ajax/libs/p5.js/0.6.0/p5.js" ]; },
Keep in mind that p5.js runs in the client. That’s why you need it in your module’s js file.
The easiest way to incorporate your sound frequency code would be to insert it in the
makeSketch
function.makeSketch: function(conf) { return function(pFive) { YOUR CODE HERE } }
Your code will have a
setup
and adraw
function. These need to be prefixed withpFive
. Just look at my code to get the idea. -
RE: [MMM-NowPlayingOnSpotify] – Display the currently on Spotify playing song
@tidus5 Controlling volume and playback should be feasible. But changing the playlist? That would require an interface and a lot of interaction. That kind of defeats the purpose of a MagicMirror.
Actually I don’t know whether I will work on this control features but feel free to fork the project and add as much as you want.
-
RE: p5.js and Magic Mirror
@leejaeuk Have look at my GameOfLife Module. It uses p5.js.
-
RE: [MMM-NowPlayingOnSpotify] – Display the currently on Spotify playing song
@goprojojo The width of the cover art is determined by the width of the column you placed the module in. It is set to 100%. You can change it by adjusting the
width
property of the.NPOS_albumCover
class incss/styles.css
. -
RE: [MMM-NowPlayingOnSpotify] – Display the currently on Spotify playing song
@tidus5 what should that version do?
-
RE: [MMM-NowPlayingOnSpotify] – Display the currently on Spotify playing song
@BananaBro glad to hear that it is working now.
-
RE: [MMM-NowPlayingOnSpotify] – Display the currently on Spotify playing song
@BananaBro sounds weird. Do you have a free or a premium account?