Skip to content

MagicMirror module that displays playing tracks on your Sonos network

License

Notifications You must be signed in to change notification settings

armybean/MMM-Sonos

 
 

Repository files navigation

MagicMirror Module: Sonos

MMM-Sonos is a module for MagicMirror that allows you to display playing tracks on your Sonos network. It supports the display of different rooms and track information.

Screenshot of the Sonos module

Usage

Setup

Clone this module into your MagicMirror's modules directory and install dependencies:

cd modules
git clone https://github.com/armybean/MMM-Sonos
cd MMM-Sonos
npm i

then add the module to your MagicMirror's configuration. Here is an example:

/* MagicMirror/config/config.js */
{
    /* ...your other config here */

    modules: [

        /* ...your other modules here */

        {
            module: 'MMM-Sonos',
            header: 'Now playing',
            position: 'top_left',
            config: {
                animationSpeed: 1000,
                showFullGroupName: false,
                showArtist: true,
                showAlbum: true,
                showMetadata: true,
                showAlbumCover: true
            }
        }
    ]
}

Configuration options

Configuration key Description Default Required
animationSpeed Animation speed to display/hide the module when tracks change. This value is in milliseconds 1000 No
showFullGroupName Whether or not to display all devices in the group. If false, the group name will be <coordinator-name> +<number-other-devices>, e.g. Kitchen +2. false No
showArtist Whether or not to display the artist name true No
showAlbum Whether or not to display the album name true No
showMetadata Whether or not to display the track metadata, i.e. room where it's played, length, volume true No
showAlbumCover Whether or not to display the Album cover of the currently played track true No

About

MagicMirror module that displays playing tracks on your Sonos network

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 91.7%
  • CSS 8.3%