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 setup

    Scheduled Pinned Locked Moved Troubleshooting
    14 Posts 4 Posters 10.2k Views 4 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.
    • R Offline
      Richard238
      last edited by Richard238

      In config.js

      		{
      			module: 'compliments',
      			position: 'lower_third'
                  config: {
                      anytime: [
                          "Compliment 1",
                          "Compliment 2",
                          "Compliment 3"
                      ]
      		},  
      		{
      			module: 'currentweather',
      

      Gives the “Please create a config file” error

      Take out the. . .

              config: {
                  anytime: [
                      "Compliment 1",
                      "Compliment 2",
                      "Compliment 3"
                  ]
      

      . . .lines, and it’s OK.

      0_1491344434970_CaptureMM2.JPG

      What’s it not liking in there?

      Mykle1M 1 Reply Last reply Reply Quote 0
      • Mykle1M Offline
        Mykle1 Project Sponsor Module Developer @Richard238
        last edited by

        @Richard238 said in Compliments setup:

        What’s it not liking in there?

        The , (comma) after ‘lower_third’. It should look like this

        {
        			module: 'compliments',
        			position: 'lower_third',
                    config: {
                        anytime: [
                            "Compliment 1",
                            "Compliment 2",
                            "Compliment 3"
                        ]
        		},

        Create a working config
        How to add modules

        1 Reply Last reply Reply Quote 2
        • R Offline
          Richard238
          last edited by

          Thanks, it was that, and a missing } close curly bracket.

          Mykle1M 1 Reply Last reply Reply Quote 1
          • Mykle1M Offline
            Mykle1 Project Sponsor Module Developer @Richard238
            last edited by

            @Richard238 said in Compliments setup:

            Thanks, it was that, and a missing } close curly bracket.

            Oh! Yes, I missed that one. Good catch on your part. So lets fix it in case anyone else looks at this for help. The correct entry would be this:

             {
            	module: 'compliments',
            	position: 'lower_third',
                        config: {
                            anytime: [
                                "Compliment 1",
                                "Compliment 2",
                                "Compliment 3"
                            ]
                            }
            		}, 
            

            That’s better.

            Create a working config
            How to add modules

            yawnsY 1 Reply Last reply Reply Quote 0
            • R Offline
              Richard238
              last edited by

              Whilst the config.js now loads, it’s not showing the new, replacement compliments.

              I’ve restarted NPM, no change.

              I’ve powered Pi off & on, no change.

              1 Reply Last reply Reply Quote 0
              • yawnsY Offline
                yawns Moderator @Mykle1
                last edited by

                 {
                	module: 'compliments',
                	position: 'lower_third',
                            config: {
                                anytime: [
                                    "Compliment 1",
                                    "Compliment 2",
                                    "Compliment 3"
                                ],
                		morning: [
                                    "morning Compliment 1",
                                    "morning Compliment 2",
                                    "morning Compliment 3"
                		],
                		afternoon: [
                                    "afternoon Compliment 1",
                                    "afternoon Compliment 2",
                                    "afternoon Compliment 3"
                		],
                		evening: [
                                    "evening Compliment 1",
                                    "evening Compliment 2",
                                    "evening Compliment 3"
                		]
                                }
                		}, 
                

                try this please. I do remember there was something like “all 3 cases need to exist, otherwise it takes default values for this”

                1 Reply Last reply Reply Quote 0
                • R Offline
                  Richard238
                  last edited by

                  Ohhh, interesting. I’ll have a go and report back later.
                  Thank you.

                  1 Reply Last reply Reply Quote 0
                  • R Offline
                    Richard238
                    last edited by

                    No difference, still uses default compliments:

                                config: {
                                    anytime: [
                                        "Compliment 1",
                                        "Compliment 2",
                                        "Compliment 3"
                                    ],
                                    morning: [
                                        "morning Compliment 1",
                                        "morning Compliment 2",
                                        "morning Compliment 3"
                                    ],
                                    afternoon: [
                                        "afternoon Compliment 1",
                                        "afternoon Compliment 2",
                                        "afternoon Compliment 3"
                                    ],
                                    evening: [
                                        "evening Compliment 1",
                                        "evening Compliment 2",
                                        "evening Compliment 3"
                                    ]
                                }
                    		},  
                    
                    
                    1 Reply Last reply Reply Quote 0
                    • R Offline
                      Richard238
                      last edited by

                      Changing it to remoteFile, as described here, it works.

                      Well, only after it’s still displayed all the default messages.

                      1 Reply Last reply Reply Quote 0
                      • R Offline
                        Richard238
                        last edited by

                        Still not picking up different compliments:

                        		{
                        			module: 'compliments',
                        			position: 'lower_third',
                                    config: {
                        			anytime: [
                        				"Hey!"
                        			],
                        			morning: [
                        				"Good morning, handsome!",
                        				"Enjoy your day!",
                        				"How was your sleep?"
                        			],
                        			afternoon: [
                        				"Hello, beauty!",
                        				"You look sexy!",
                        				"Looking good today!"
                        			],
                        			evening: [
                        				"Wow!",
                        				"You!",
                        				"Hi!"
                        			]
                        		},
                        		updateInterval: 30000,
                        		remoteFile: null,
                        		fadeSpeed: 4000
                        			/*config: {
                        				remoteFile: 'compliments.json'
                        			}*/
                        		},  
                        
                        1 Reply Last reply Reply Quote 0
                        • R Offline
                          Richard238
                          last edited by

                          Another day, still no change, compliments ignoring whatever is in config.js.

                          Thank you.

                          1 Reply Last reply Reply Quote 0
                          • G Offline
                            gshimself
                            last edited by gshimself

                            Do you edit the config.js?
                            Well… you could be a outlaw and edit the “~/MagicMirror/modules/default/compliments/compliments.js”.
                            I’ve done that before and it works. But beware of typos. Make a backup! :)

                            R 1 Reply Last reply Reply Quote 0
                            • R Offline
                              Richard238 @gshimself
                              last edited by

                              That’s what I have done now, but it is only a fudge, a workaround.

                              What’s the problem with using config.js to make changes to the compliments module, why doesn’t it work?

                              G 1 Reply Last reply Reply Quote 0
                              • G Offline
                                gshimself @Richard238
                                last edited by

                                @Richard238 I live with the idea that “if it work, dont ask why”.
                                So I can’t explain why config.js dont work.

                                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