MagicMirror Forum

    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • Donate
    • Discord

    Compliments are not shown on Mirror

    Troubleshooting
    3
    6
    2183
    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
      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.

      broberg 1 Reply Last reply Reply Quote 0
      • broberg
        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
          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.141 1 Reply Last reply Reply Quote 0
          • strawberry 3.141
            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
              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.141 1 Reply Last reply Reply Quote 0
              • strawberry 3.141
                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
                • 1 / 1
                • First post
                  Last post
                Enjoying MagicMirror? Please consider a donation!
                MagicMirror created by Michael Teeuw.
                Forum managed by Paul-Vincent Roll and Rodrigo Ramírez Norambuena.
                This forum is using NodeBB as its core | Contributors
                Contact | Privacy Policy