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 3.0k 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.
    • D Offline
      dboa
      last edited by dboa

      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:

      0_1493748656521_IMG_20170502_150600+menor.jpg

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

      brobergB 1 Reply Last reply Reply Quote 0
      • brobergB Offline
        broberg Project Sponsor @dboa
        last edited by

        @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 Reply Quote 0
        • D Offline
          dboa @broberg
          last edited by

          @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

          strawberry 3.141S 1 Reply Last reply Reply Quote 0
          • strawberry 3.141S Offline
            strawberry 3.141 Project Sponsor Module Developer @dboa
            last edited by

            @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 Reply Quote 1
            • D Offline
              dboa @strawberry 3.141
              last edited by

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

              strawberry 3.141S 1 Reply Last reply Reply Quote 0
              • strawberry 3.141S Offline
                strawberry 3.141 Project Sponsor Module Developer @dboa
                last edited by

                @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

                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
                • 1 / 1
                • First post
                  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