This is an extension to the MagicMirror project, allowing the modules to be displayed in a rotating carousel instead of displaying all of them at once. This is particularly useful on small screens where there may not be enough space to display several components at once. Each module is displayed in turn for a configurable amount of time before displaying the next module in the list.
Run these commands at the root of your magic mirror install.
cd modules
git clone https://github.com/barnabycolby/MMM-Carousel
To use this module, add the following configuration block to the modules array in the config/config.js
file:
{
module: 'MMM-Carousel',
config: {
// See below for configurable options
}
}
Note that a position
setting is not required.
A typical config file is also provided: config.sample.js
Type: String array
Default value: []
A list of module names whom should not be considered as part of the carousel. For example, the alert
module should be able to display the a notification at any time, by ignoring it we can prevent the plugin from hiding any notifications.
Type: Integer
Default value: 10000
The number of milliseconds to display each module for.