@artworks79 Sure, no problem.
For starters, you probably copied the config.js.sample
file to config.js
to get you started. That’s great, as the config.js
file is what the Magic Mirror software reads in order to arrange and configure the various modules. For future installations, I recommend making a local copy of the config.js
file and then dropping that in your new mirrors.
In the config.js
file, you’ll see an entry for the compliments module that tells the system which module to load (compliments), where to place it and what configuration values to pass into the module (config: {...}
). This part of the config.js file modifies how the Magic Mirror software treats the compliments module.
Inside that config section, you can modify the behavior of the module itself. You can change the update interval or change the compliments themselves. Here’s the one pulled from my config.js
.
{
module: 'compliments',
position: 'bottom_center',
config: {
updateInterval: 30000,
compliments: {
morning: [
"Good morning, sunshine!"
],
afternoon: [
"It's a pretty day outside. Go play in it!"
],
evening: [
"Wasn't the sunset beautiful?",
"Wasn't the day just spectacular?"
]
}
}
},
Inside the config: {...}
section there is a variable called compliments
. The value of this variable must be an array, as specified by the morning: [...]
structure. Please note that arrays require square brackets. Each compliment must be enclosed in double quotes "
and each compliment is separated by a comma. You can have as many compliments as you like in each array. In the compliments:{...}
variable you are allowed a morning array, an afternoon array and an evening array. No other array names will have any effect.