SpotifyHelper for MMM-Spotify.
- Expose an event to increase/decrease volume
- Expose an event to play previous/next Spotify URI based on a list
cd modules
git clone https://github.com/victor-paumier/MMM-SpotifyHelper
Edit your config/config.js
file and add a new object to the modules
:
{
module: "MMM-SpotifyHelper",
config: {
showNotif: true,
volume: 50,
volumeStep: 10,
urls: []
}
}
Option | Description |
---|---|
showNotif |
Show a notification on event sent. Default value: true |
volume |
The volume level on MagicMirror start. Possible values: 0 - 100 Default value: 50 |
volumeStep |
The volume step level to increase or decrease on event fired. Default value: 10 |
urls |
Array of urls to play. (see Urls options) Default value: [] |
Option | Description |
---|---|
title |
The title of the URI. Used in the notification. Optional |
uri |
The URI of the album, artist, playlist or track. Required |
SPOTIFY_HELPER_VOLUME
: setting volume of current playback. UseUP
to increase orDOWN
to decrease
this.sendNotification("SPOTIFY_HELPER_VOLUME", 'UP')
SPOTIFY_HELPER_SOURCE
: Change the Spotify URI. UseNEXT
to load the next URI orPREVIOUS
to load the previous one
this.sendNotification("SPOTIFY_HELPER_SOURCE", "NEXT")