Skip to content

Latest commit

 

History

History
51 lines (44 loc) · 1.79 KB

README.md

File metadata and controls

51 lines (44 loc) · 1.79 KB

MMM-SpotifyHelper

SpotifyHelper for MMM-Spotify.

Features

  • Expose an event to increase/decrease volume
  • Expose an event to play previous/next Spotify URI based on a list

Install

cd modules
git clone https://github.com/victor-paumier/MMM-SpotifyHelper

Using the module

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: []
  }
}

Configuration options:

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: []

Urls options:

Option Description
title The title of the URI. Used in the notification.

Optional
uri The URI of the album, artist, playlist or track.

Required

Control with notification

  • SPOTIFY_HELPER_VOLUME : setting volume of current playback. Use UP to increase or DOWN to decrease
  this.sendNotification("SPOTIFY_HELPER_VOLUME", 'UP')
  • SPOTIFY_HELPER_SOURCE : Change the Spotify URI. Use NEXT to load the next URI or PREVIOUS to load the previous one
  this.sendNotification("SPOTIFY_HELPER_SOURCE", "NEXT")