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.

    MMM-Compliments doesn't load

    Scheduled Pinned Locked Moved Solved Requests
    16 Posts 5 Posters 7.2k Views 5 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.
    • A Offline
      Anthony Project Sponsor
      last edited by

      Re: Compliments text cycler without the randomizerHello, I have installed the module and configured it in my config.js but it doesn’t load. Here is my config:

      {
      			module: 'MMM-Compliments',
      			position: 'lower_third',
      			config: {
      				compliments: {
      				morning: [
      					'Good morning, handsome!',
      					'Enjoy your day!',
      					'How was your sleep?'
      				],
      				afternoon: [
      					'Hello, beauty!',
      					'You look sexy!',
      					'Looking good today!'
      				],
      				evening: [
      					'Wow, you look hot!',
      					'You look nice!',
      					'Hi, sexy!'
      				]
      				},
      			},
      		},
      
      Mykle1M 1 Reply Last reply Reply Quote 0
      • Mykle1M Offline
        Mykle1 Project Sponsor Module Developer @Anthony
        last edited by

        @anthony

        This is incorrect (At the beginning of your entry)

        module: 'MMM-Compliments',

        Change it to

        module: 'compliments',

        I tested it for you.

        Create a working config
        How to add modules

        A 1 Reply Last reply Reply Quote 0
        • A Offline
          Anthony Project Sponsor @Mykle1
          last edited by

          @mykle1 Are you sure because it is not the default module. It is a third party one so I can add personalized compliments. I tried to add them in the dafault compliments but after adding them nothing showed up. Not even the defaults. Although I’ll try it when I get home. Thank you very much.

          Mykle1M lavolp3L 2 Replies Last reply Reply Quote 0
          • Mykle1M Offline
            Mykle1 Project Sponsor Module Developer @Anthony
            last edited by

            @anthony said in MMM-Compliments doesn't load:

            Are you sure because it is not the default module.

            My bad. I did not notice that it was a different module from the default. I will install it and test for you when I get home from work unless someone gives you a hand before I get here

            Create a working config
            How to add modules

            A 1 Reply Last reply Reply Quote 0
            • A Offline
              Anthony Project Sponsor @Mykle1
              last edited by

              @mykle1
              I would appreciate that. Thnak you very much. I will wait for your results and suggestions. As for the MMM-EARTH it is working perfect again. I read your reply on github but I already had disabled it for a couple of days and after that it load perfectly again.

              1 Reply Last reply Reply Quote 0
              • lavolp3L Offline
                lavolp3 Module Developer @Anthony
                last edited by

                @Anthony you can add personalized comments to the core module.
                You shoudl consider using the core module and sparing yet another module in your 3rd-party folder. We can help you sort out the personalized things.

                How to troubleshoot modules
                MMM-soccer v2, MMM-AVStock

                lavolp3L 1 Reply Last reply Reply Quote 0
                • lavolp3L Offline
                  lavolp3 Module Developer @lavolp3
                  last edited by lavolp3

                  @lavolp3 For both modules you should add the additional compliments outside of the main module file but inside config.js OR a new referenced json file like this:

                          module: "compliments",
                          position: "lower_third",
                          config: {
                              classes: 'small',
                              remoteFile: 'xxxxx.json',
                              updateInterval: 12*60*60*1000,
                          }
                  

                  The json file sits in the module folder

                  How to troubleshoot modules
                  MMM-soccer v2, MMM-AVStock

                  A S 2 Replies Last reply Reply Quote 1
                  • A Offline
                    Anthony Project Sponsor @lavolp3
                    last edited by Anthony

                    @lavolp3
                    Can you give me a little more help? I created the json file by copy paste the original js file, added my compliments and saved it in the compliments folder named as compliments2.json (was this right?). I also added the lines in my config as you mentioned but still only the defaults are visible. Thank you.

                    lavolp3L 1 Reply Last reply Reply Quote 0
                    • lavolp3L Offline
                      lavolp3 Module Developer @Anthony
                      last edited by

                      @anthony Your json needs to look like this:

                      {
                          "anytime" : [
                             ".....",
                             "....."
                           ],
                           "morning": [
                             ".....",
                             "....."
                           ]
                           ....
                      }
                      

                      Nothing else…

                      If you want you can post your config.js entry and the json file here or via pm. But it’s important you understand how it needs to look and why.

                      How to troubleshoot modules
                      MMM-soccer v2, MMM-AVStock

                      A 1 Reply Last reply Reply Quote 1
                      • A Offline
                        Anthony Project Sponsor @lavolp3
                        last edited by

                        @lavolp3
                        FIXED! Thank you very much for your help.

                        S 1 Reply Last reply Reply Quote 0
                        • S Offline
                          sdetweil @Anthony
                          last edited by

                          @anthony can u mark your problem resolved please

                          Sam

                          How to add modules

                          learning how to use browser developers window for css changes

                          A 1 Reply Last reply Reply Quote 0
                          • A Offline
                            Anthony Project Sponsor @sdetweil
                            last edited by

                            @sdetweil
                            Whatever module you use (default compliments or MMM-Compliments for not crowding your config.js with a big array you can create a json file containing the array with the compliments you want and save it in your compliments folder. After that you must edit your config.js for the compliments module to target that json you created by adding the line remoteFile: "your_file's_name.json", under the config: {. If you don’t have a programm to create the .json file you can do it on line.

                            1 Reply Last reply Reply Quote 0
                            • S Offline
                              sdetweil
                              last edited by

                              I understand… but this shows as not solved…

                              click the 3 dots to the right of one of your posts, select ‘mark this post as the correct answer’.
                              I cannot, as you are the topic owner

                              Sam

                              How to add modules

                              learning how to use browser developers window for css changes

                              A 1 Reply Last reply Reply Quote 0
                              • A Offline
                                Anthony Project Sponsor @sdetweil
                                last edited by

                                @sdetweil
                                My mistake. Sorry. I will Mark the topic as solved right now! Thank you.

                                1 Reply Last reply Reply Quote 0
                                • S Offline
                                  stuartiannaylor @lavolp3
                                  last edited by

                                  @lavolp3

                                  classes: ‘small’,
                                  remoteFile: ‘xxxxx.json’,
                                  updateInterval: 126060*1000,

                                  Is that all you need to do to partition config.js?

                                  As that is a top tip and ‘small’ ? remoteFile: can that be a local folder such as the corresponding modules folder?

                                  lavolp3L 1 Reply Last reply Reply Quote 0
                                  • lavolp3L Offline
                                    lavolp3 Module Developer @stuartiannaylor
                                    last edited by

                                    @stuartiannaylor yes that’s all you need in the config part.

                                    The module entry looks like this for me:

                                        },
                                            {
                                            //disabled: true,
                                            module: "compliments",
                                            position: "lower_third",
                                            config: {
                                                classes: 'small',
                                                remoteFile: 'xxxxxxx.json',
                                                updateInterval: 12*60*60*1000,
                                            }
                                        },
                                    

                                    As that is a top tip and ‘small’ ?
                                    Dont know what you mean with that. I think you don’t need to give it a class but with this class you can determine the size of the text.

                                    remoteFile is a file, not a folder. But it can be anywhere, however if it’s not in the module directory you ned to give the absolute path “/home/pi/…”

                                    How to troubleshoot modules
                                    MMM-soccer v2, MMM-AVStock

                                    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