I don't support this module anymore. Few free to fork and modify it if you want to use it or fork another fork.
This a module for the MagicMirror. It will show a random photo from an url.
- Navigate into your MagicMirror's
modulesfolder and executegit clone https://github.com/diego-vieira/MMM-RandomPhoto.git. - cd
cd MMM-RandomPhoto - Execute
npm installto install the node dependencies.
The entry in config.js can include the following options:
| Option | Description |
|---|---|
opacity |
The opacity of the image. Type: doubleDefault 0.3 |
animationSpeed |
How long the fade out and fade in of photos should take. Type: intDefault 500 |
updateInterval |
How long before getting a new image. Type: intDefault 60 seconds |
url |
URL to pull a new image from. Type: stringDefault https://unsplash.it/1920/1080/?random |
Here is an example of an entry in config.js
{
module: 'MMM-RandomPhoto',
position: 'fullscreen_below',
config: {
opacity: 0.3,
animationSpeed: 500,
updateInterval: 60,
url: 'https://unsplash.it/1920/1080/?random'
}
},
- jquery (installed via
npm install)
- Michael Teeuw for creating the awesome MagicMirror2 project that made this module possible.