I no longer own a Magic Mirror, so I'm not maintaining this anymore. Last time I used it in 2021, it worked fine.
A module for the MagicMirror project displaying the song currently playing on Spotify via the librespot-java API.
I've modified MMM-NowPlayingOnSpotify, so I could integrate it with the librespot-java API.
I've also modified a few other things to my liking. I removed some options (cover art not configurable) to reduce maintenance burden for me.
Multiple instances of this module are now also supported, if you've got more than one Librespot speaker.
In your MagicMirror directory:
cd MagicMirror/modules
git clone https://github.com/l3d00m/MMM-LibrespotJava.git
cd MMM-LibrespotJava
npm install
Here is an example for an entry in config.js
{
module: "MMM-LibrespotJava",
position: "top_right",
config: {
librespotApiHost: "localhost", // librespot java API host address (ip)
librespotApiPort: "24879", // librespot java API port, default is 24789
updatesEvery: 1, // How often should the song be fetched from librespot API in s?
deviceName: '', // Optional device name to display next to the progress time
}
}
Make sure your librespot java is build with API support and the config.toml
contains the following:
### API ###
[api]
# API port (`api` module only)
port = 24879
# API listen interface (`api` module only)
host = "0.0.0.0"
If it doesn't display anything after start, simply skip at least one song (or pause/play) and it'll probably work. Also note that there's no display at all when no song is playing.
- To the original MMM-NowPlayingOnSpotify <3
- Michael Teeuw for inspiring me and many others to build a MagicMirror module.
- The community of magicmirror.builders for help in the development process and all contributors for finding and fixing errors in this module.