Read the statement by Michael Teeuw here.
Compliments are not shown on Mirror
-
Te Module is working, if I try to acess the server from my desktop windows, the compliments appear, but on the Mirror, it does not show:
[EDIT]
forgot to say, I’m using a Raspberry Pi Zero, with manual this installation: https://forum.magicmirror.builders/topic/1183/how-i-got-my-magic-mirror-working-on-a-raspberry-pi-0-zero
[/EDIT]Thank you all in advance.
-
@dboa the time is different on the mirror, do you have put the compliments in the “anytime” section or the afternoon/evening section?
-
@broberg I didn’t change anything from the original configuration, so it shoud say “Hey there sexy!” like on chrome. Also I just fixed the time, and the Compliments still don’t show
forgot to say, I’m using a Raspberry Pi Zero, with manual this installation: https://forum.magicmirror.builders/topic/1183/how-i-got-my-magic-mirror-working-on-a-raspberry-pi-0-zero
-
@dboa The compliments module makes use of an arrow function which is not supported within midori browser. So this might be the reason it doesn’t show up.
https://forum.magicmirror.builders/topic/2031/compliments-not-displaying
-
@strawberry-3.141 yes, that was the problem. I made the changes suggested in the topic, and it worked.
Thank you so much.The Changes was:
in the compliments.js file (found in /MagicMirror/modules/default/compliments folder), change:
if (this.config.remoteFile != null) { this.complimentFile((response) => { this.config.compliments = JSON.parse(response); }); }
to:
if (this.config.remoteFile != null) { this.complimentFile( function(response){ this.config.compliments = JSON.parse(response); }); }
Thank you all for your help.
-
@dboa thats not right as I posted in the other thread as well, as soon as you want to use a remotefile it will fail. I posted the correct code in the other thread.
Keep in mind when you want to update the MagicMirror next time this can cause a conflict