kolbyjack / MMM-Wallpaper

MagicMirror module to display wallpapers from various online sources
https://magicmirror.builders/
MIT License
99 stars 31 forks source link

Source Array Help #61

Closed wsc96 closed 2 years ago

wsc96 commented 2 years ago

Hi,

Can anyone help with an example of how to use an array for multiple sources?

I'd like to add multiple iCloud album sources to my config file but struggling on the syntax.

Thanks!

kolbyjack commented 2 years ago

Something like this should work:


modules: [
  {
    module: "MMM-Wallpaper",
    position: "fullscreen_below",
    config: { // See "Configuration options" for more information.
      source: [
        "icloud:12345678",
        "icloud:87654321",
      ],
      slideInterval: 60 * 1000 // Change slides every minute
    }
  }
]```
wsc96 commented 2 years ago

Great thanks!