EXT-Librespot
This plugin allow to play Spotify music on your mirror with Librespot
This module is an Extented plugins for
EXT-Spotify
In addition, you can use some plugins:
EXT-Alert
for display some information or error on your screen (Optional)
Clone the module into your MagicMirror module folder and execute npm intall
in the module's directory.
cd ~/MagicMirror/modules
git clone https://github.com/bugsounet/EXT-Librespot
cd EXT-Librespot
npm install
To display the module insert it in the config.js file.
{
module: 'EXT-Librespot',
config: {
debug: false,
email: "",
password: "",
deviceName: "MagicMirror",
minVolume: 40,
maxVolume: 100
}
},
field | description | type | default value |
---|---|---|---|
debug | Enable debug mode or not | BOOLEAN | false |
Your spotify email | STRING | null | |
password | Your spotify password | STRING | null |
deviceName | Define your spotify device name | STRING | MagicMirror |
minVolume | Min volume on Assistant activate | NUMBER | 40 |
maxVolume | Max volume when spotify playing | NUMBER | 100 |
To install Librespot player you have 2 choice:
npm run setup
commandIt will fetch
Librespot
player fromraspotify
preconfigured packet
(very quick install!)
cd ~/MagicMirror/modules/EXT-Librespot
npm run setup
npm run setup:source
commandIf you prefer build
Librespot
player from github source
(will take ~30 mins to install!)
cd ~/MagicMirror/modules/EXT-Librespot
npm run setup:source
For
EXT-Librespot
using, binary file ofLibrespot
will be automaticaly added incomponents/librespot
Folder
Librespot
playerAll logs of Librespot
player is managed with pm2
app
You can discover it with pm2 log librespot
command for debuging (if needed)
cd ~/MagicMirror/modules/EXT-Librespot
npm run update