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

Changing compliments?

Scheduled Pinned Locked Moved Development
17 Posts 10 Posters 19.8k Views 9 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.
  • M Offline
    MichMich Admin @VirtualLeonard
    last edited by Dec 22, 2016, 8:22 AM

    @VirtualLeonard You probably modified the compliments module. Which is something you shouldn’t do. I suggest you backup you config and reinstall the mirror.

    All customisations should be done using the config.js, you should never need to modify a default module.

    1 Reply Last reply Reply Quote 0
    • B Offline
      bhepler Module Developer @VirtualLeonard
      last edited by Dec 23, 2016, 5:37 PM

      @VirtualLeonard Hmm. Give @MichMich 's suggestion a try. Don’t forget that after you reinstall the mirror software you drop your config.js file back into its proper place.

      If that still doesn’t work, either post your config.js file here and let us take a look at it or upload it somewhere such as dropbox so we can try to drop it into our mirrors.

      1 Reply Last reply Reply Quote 0
      • A Offline
        AAPS
        last edited by Jan 2, 2017, 1:57 AM

        What exactly should the config.js file look like when I try to change the compliments?

        B 1 Reply Last reply Jan 2, 2017, 8:05 PM Reply Quote 0
        • B Offline
          bhepler Module Developer @AAPS
          last edited by Jan 2, 2017, 8:05 PM

          @AAPS See my post in this thread from November 4th. If you compare the code I included to the default entry for the compliments module, it should get you started. The default code is only this:

          {
              module: 'compliments',
              position: 'bottom_center'
          },
          

          Basically, everything I included in the config section on Nov 4th is new code that will modify how the module behaves.

          1 Reply Last reply Reply Quote 2
          • M Offline
            matic55maci
            last edited by May 25, 2018, 9:50 AM

            hello,

            this helped me a lot. I only have one problem left and that’s when I tried to put more than 3 compliments for each part of a day, the mirror didn’t want to show any of compliments. Is there a ways to change the amount of compliments for each part or is it limited to only 3?

            Thank you

            M 1 Reply Last reply May 26, 2018, 2:19 AM Reply Quote 0
            • M Offline
              Mykle1 Project Sponsor Module Developer @matic55maci
              last edited by May 26, 2018, 2:19 AM

              @matic55maci

              I think it’s likely that there is an error in the way you added the compliments (formatting?). Post your config for compliments in a code block

              Create a working config
              How to add modules

              1 Reply Last reply Reply Quote 0
              • A Offline
                Algl
                last edited by May 31, 2018, 9:46 AM

                Hello
                is there an option to define compliments in languages other than English ?
                thanks.

                M 1 Reply Last reply Jun 1, 2018, 12:49 AM Reply Quote 0
                • M Offline
                  Mykle1 Project Sponsor Module Developer @Algl
                  last edited by Jun 1, 2018, 12:49 AM

                  @algl

                  You can simply add your own compliments in any language you want and they will appear as you enter them.

                  Create a working config
                  How to add modules

                  O 1 Reply Last reply Aug 10, 2018, 7:57 PM Reply Quote 1
                  • O Offline
                    orbezo @Mykle1
                    last edited by Aug 10, 2018, 7:57 PM

                    @mykle1 Would you happen to know about special characters?
                    In the Spanish language, we “open” exclamation and interrogation marks (¡Text! ¿Text?), I’ve typed those characters directly, and they end up as a weird symbol once I run MM, then I tried specifying the encoding table (ISO-8859-1 and/or UTF-8) and it seems I missplaced the code, as MM told me there was no config.js file, then I tried using common HTML code using & # 1 6 1 ; (without spaces) for the “inverted” exclamation mark, and didn’t work either (I got the full “& # 1 6 1 ;” string displaced preceding the compliment’s normal text.

                    M ? 3 Replies Last reply Aug 10, 2018, 9:48 PM Reply Quote 0
                    • M Offline
                      Mykle1 Project Sponsor Module Developer @orbezo
                      last edited by Aug 10, 2018, 9:48 PM

                      @orbezo

                      Sorry, but I don’t know what special characters are available within MM. Perhaps someone else will chime in on that.

                      However, if you have a font that has those special characters, you might then assign that font to the compliments module through your custom.css file.

                      Create a working config
                      How to add modules

                      1 Reply Last reply Reply Quote 0
                      • 1
                      • 2
                      • 1 / 2
                      • 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