MMM-StyledSlideshow is a module for MagicMirror² that displays a slideshow of images at a regular interval.
In your terminal, go to the modules directory and clone the repository:
cd ~/MagicMirror/modules
git clone https://github.com/Lbork45/MMM-StyledSlideshow.gitGo to the module directory and pull the latest changes:
cd ~/MagicMirror/modules/MMM-Template
git pullTo use this module, you have to add a configuration object to the modules array in the config/config.js file.
Minimal configuration to use the module:
{
module: 'MMM-StyledSlideshow',
position: 'middle_center'
},Configuration with all options:
{
module: 'MMM-StyledSlideshow',
position: 'middle_center',
config: {
imageFolder: 'my_images',
scrollInterval: 1000,
width: 50,
height: 40,
}
},| Option | Possible values | Default | Description |
|---|---|---|---|
imageFolder |
string |
example_images |
The folder to draw images from. MUST be a subfolder of MMM-StyledSlideshow. |
scrollInterval |
integer |
30000 |
The rotation interval, in milliseconds |
refreshInterval |
integer |
360000 |
The interval on which the program reloads all pictures from the folder |
width |
integer |
40 |
The width of all pictures, in % of screen width |
height |
integer |
40 |
The height of all pictures, in % of screen height |
As of now, the refreshInterval is a placeholder because of a bug I haven't figured out yet. If anyone wants to try, please fork the repo and once fixed, I will merge it.
| Notification | Description |
|---|---|
| CHANGE_IMAGE | Change the current image |
This project is licensed under the MIT License - see the LICENSE file for details.
