A New Chapter for MagicMirror: The Community Takes the Lead
Read the statement by Michael Teeuw here.
Read the statement by Michael Teeuw here.
Compliments - remoteFile - How to?!
-
Hey guys, i need some help with the remoteFile for the compliments. I tried this:
module: 'compliments', position: 'lower_third', config: { updateInterval: 15000, compliments: { remoteFile: '~/MagicMirror/modules/default/compliments/remote_compliments.json', morning: [ 'Guten Morgen!', 'Wie hast du geschlafen?', 'Ich wünsche dir einen schönen Tag!' ], ...
but it´s not working.
Content of remote_compliments.json:
{ "morning" : [ "Du siehst aber gut aus heute !", "Gut geschlafen ?", "Moin, Moin...." ], "afternoon" : [ "Ab Fussball spielen !", "Lass uns auf den Abend vorbereiten....", "Musik hören ?" ], "evening" : [ "Einen Cocktail ?", "Wow, Du bist aber heiss heute...", "Wollen wir heute abend weggehen ?" ] }
-
I never played around with this, but the sample file content in the readme looks different.
https://github.com/MichMich/MagicMirror/blob/master/modules/default/compliments/README.md
-
@yawns tried it with the sample code… nothing happend
-
@schlachtkreuzer6 I’m a bit late to the party, but he path is correct. You just have to define
remote_compliments.json
like this.module: 'compliments', position: 'lower_third', config: { updateInterval: 15000, compliments: { remoteFile: 'remote_compliments.json', morning: [ 'Guten Morgen!', 'Wie hast du geschlafen?', 'Ich wünsche dir einen schönen Tag!' ], ...