Read the statement by Michael Teeuw here.
Compliments setup
-
{ module: 'compliments', position: 'lower_third', config: { anytime: [ "Compliment 1", "Compliment 2", "Compliment 3" ], morning: [ "morning Compliment 1", "morning Compliment 2", "morning Compliment 3" ], afternoon: [ "afternoon Compliment 1", "afternoon Compliment 2", "afternoon Compliment 3" ], evening: [ "evening Compliment 1", "evening Compliment 2", "evening Compliment 3" ] } },
try this please. I do remember there was something like “all 3 cases need to exist, otherwise it takes default values for this”
-
Ohhh, interesting. I’ll have a go and report back later.
Thank you. -
No difference, still uses default compliments:
config: { anytime: [ "Compliment 1", "Compliment 2", "Compliment 3" ], morning: [ "morning Compliment 1", "morning Compliment 2", "morning Compliment 3" ], afternoon: [ "afternoon Compliment 1", "afternoon Compliment 2", "afternoon Compliment 3" ], evening: [ "evening Compliment 1", "evening Compliment 2", "evening Compliment 3" ] } },
-
Changing it to remoteFile, as described here, it works.
Well, only after it’s still displayed all the default messages.
-
Still not picking up different compliments:
{ module: 'compliments', position: 'lower_third', config: { anytime: [ "Hey!" ], morning: [ "Good morning, handsome!", "Enjoy your day!", "How was your sleep?" ], afternoon: [ "Hello, beauty!", "You look sexy!", "Looking good today!" ], evening: [ "Wow!", "You!", "Hi!" ] }, updateInterval: 30000, remoteFile: null, fadeSpeed: 4000 /*config: { remoteFile: 'compliments.json' }*/ },
-
Another day, still no change, compliments ignoring whatever is in config.js.
Thank you.
-
Do you edit the config.js?
Well… you could be a outlaw and edit the “~/MagicMirror/modules/default/compliments/compliments.js”.
I’ve done that before and it works. But beware of typos. Make a backup! :) -
That’s what I have done now, but it is only a fudge, a workaround.
What’s the problem with using config.js to make changes to the compliments module, why doesn’t it work?
-
@Richard238 I live with the idea that “if it work, dont ask why”.
So I can’t explain why config.js dont work.