[MMM-NowPlayingOnSpotify] – Display the currently on Spotify playing song



  • @raywo Your module is amazing. I am using raspotify on my mirror, which is account independent and I was just wondering if there is a chance of implementing spotify connect meta data (e.g. from using raspotify). Instead of using your account as input for the track info using the output from

    systemctl raspotify status
    

    as the track id. And then use spotifys web api to get the song info?

    https://developer.spotify.com/console/get-track/?id=1yVhDVRJt9o8DQDU3J6R4X&market=
    

    like this?



  • It sounds like MMM-SpotifyConnectUI may be better suited for you. I haven’t tried it but it sounds like its exactly what your looking for… and exactly what I’m looking for.

    I have been using MMM-Now PlayingOnSpotify for a while and its really great, however in my house we have a family account, so the module only displays whats playing from my account, not my wife’s, or our guests. My MM is a mirrorless display that is out at our pool, so it’s rare that I’m the only person controlling the music and by rare I mean almost never…lol).



  • @murrayireland

    This is exactly what the MMM-SpotifyConnectUI does. you need a premium account though.



  • @sharpy400 thanks, I will try immediately. I honestly tried finding a module like that, but that must one I must have overseen.

    edit: nope, won’t work, seems spotify has changed the way they give out API keys none of the instructions will work. Spotify Connect Web seems to rely on libspotify which is obsolete.



  • Ahhhh Crud. I had high hopes. Sorry about that Thx for checking it out, you saved me some headache



  • @raywo ,How can play and hearing song from Magic Mirror directly (not only display spotify playing song)



  • @nobita just install raspotify https://github.com/dtcooper/raspotify

    the easy way (but I recommend reading the docs):

    curl -sL https://dtcooper.github.io/raspotify/install.sh | sh
    


  • Hi, would love to try this module but I keep failing installing it.
    First of all I have quite many messages after npm install. Newbie as I am I tried npm audit fix to fix vulnerabilities. Still had a few (not high) vulnerabilities.

    What happens is the nothing of this module comes up.

    Tried again by deleting the module folder and installing again.

    Druing npm install:
    npm notice created a lockfile as package-lock.json. You should commit this file.
    added 664 packages from 770 contributors and audited 4892 packages in 233.343s
    found 16 vulnerabilities (2 low, 7 moderate, 7 high)
    run npm audit fix to fix them, or npm audit for details
    pi@raspberrypi:~/MagicMirror/modules/MMM-NowPlayingOnSpotify $ npm WARN deprecat ed socks@1.1.10: If using 2.x branch, please upgrade to at least 2.1.6 to avoid a serious bug with socket data flow and an import issue introduced in 2.1.0

    I was playing with another module MMM-RTSPStream and I had to switch to wip develop branch. Is this my problem now?



  • @Zoran82 said in [MMM-NowPlayingOnSpotify] – Display the currently on Spotify playing song:

    Hi, would love to try this module but I keep failing installing it.
    First of all I have quite many messages after npm install. Newbie as I am I tried npm audit fix to fix vulnerabilities. Still had a few (not high) vulnerabilities.

    What happens is the nothing of this module comes up.

    Tried again by deleting the module folder and installing again.

    Druing npm install:
    npm notice created a lockfile as package-lock.json. You should commit this file.
    added 664 packages from 770 contributors and audited 4892 packages in 233.343s
    found 16 vulnerabilities (2 low, 7 moderate, 7 high)
    run npm audit fix to fix them, or npm audit for details
    pi@raspberrypi:~/MagicMirror/modules/MMM-NowPlayingOnSpotify $ npm WARN deprecat ed socks@1.1.10: If using 2.x branch, please upgrade to at least 2.1.6 to avoid a serious bug with socket data flow and an import issue introduced in 2.1.0

    I was playing with another module MMM-RTSPStream and I had to switch to wip develop branch. Is this my problem now?

    I made it work.

    I tried again and did a npm audit fix --force this time (without knowing what I actually do).
    I may have pressed ctrl + z first time, this time i pressed crtl + c (which means I didnt stop service. I think?).
    Now it’s working as it should.



  • Works 100%!
    Great Work! Thanx for that!