• Recent
  • Tags
  • Unsolved
  • Solved
  • MagicMirror² Repository
  • Documentation
  • 3rd-Party-Modules
  • Donate
  • Discord
  • Register
  • Login
MagicMirror Forum
  • Recent
  • Tags
  • Unsolved
  • Solved
  • MagicMirror² Repository
  • Documentation
  • 3rd-Party-Modules
  • Donate
  • Discord
  • Register
  • Login
A New Chapter for MagicMirror: The Community Takes the Lead
Read the statement by Michael Teeuw here.

Compliments are not shown on Mirror

Scheduled Pinned Locked Moved Troubleshooting
6 Posts 3 Posters 2.6k Views 2 Watching
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • B Offline
    broberg Project Sponsor @dboa
    last edited by May 2, 2017, 6:16 PM

    @dboa the time is different on the mirror, do you have put the compliments in the “anytime” section or the afternoon/evening section?

    D 1 Reply Last reply May 2, 2017, 6:32 PM Reply Quote 0
    • D Offline
      dboa @broberg
      last edited by May 2, 2017, 6:32 PM

      @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

      S 1 Reply Last reply May 3, 2017, 8:36 AM Reply Quote 0
      • S Offline
        strawberry 3.141 Project Sponsor Module Developer @dboa
        last edited by May 3, 2017, 8:36 AM

        @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

        Please create a github issue if you need help, so I can keep track

        D 1 Reply Last reply May 3, 2017, 11:39 AM Reply Quote 1
        • D Offline
          dboa @strawberry 3.141
          last edited by May 3, 2017, 11:39 AM

          @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.

          S 1 Reply Last reply May 3, 2017, 12:08 PM Reply Quote 0
          • S Offline
            strawberry 3.141 Project Sponsor Module Developer @dboa
            last edited by May 3, 2017, 12:08 PM

            @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

            Please create a github issue if you need help, so I can keep track

            1 Reply Last reply Reply Quote 0
            • 1 / 1
            1 / 1
            • First post
              6/6
              Last post
            Enjoying MagicMirror? Please consider a donation!
            MagicMirror created by Michael Teeuw.
            Forum managed by Sam, technical setup by Karsten.
            This forum is using NodeBB as its core | Contributors
            Contact | Privacy Policy