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.jsonlike 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!' ], ...
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login