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.

    Help again...

    Scheduled Pinned Locked Moved General Discussion
    15 Posts 2 Posters 2.4k 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.
    • S Offline
      smart_user
      last edited by

      Hello, Is it possible to show 2 different compliments at the same time on the display.
      I want one in the middle and one in the lower third.

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

        @smart_user yes, you could have two instances in config.js with different positions and info

        Sam

        How to add modules

        learning how to use browser developers window for css changes

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

          How do I differentiate between the two different compliment purposes in the congif.js?

          Do I use the “/n” to split them?

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

            @smart_user two completely different setups

            {
            module: 'compliments',
            position: 'middle',
             config:  {
                 compliments:......
              }
            },
            {
              module:'compliments',
               position:'bottom',
                config:{
                     compliments:.....
                 }
            }
            

            Sam

            How to add modules

            learning how to use browser developers window for css changes

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

              @sdetweil The display is showing an “undefined” with a line

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

                @smart_user that is the module header, don’t know why

                add

                header: '',  
                

                after position line on both

                Sam

                How to add modules

                learning how to use browser developers window for css changes

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

                  @sdetweil after adding the header all I see is the line. The “undefined” is not there

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

                    @smart_user u did define the compliments data , right?

                    here is the default, if you remove the compliments: value completely from the config section
                    from https://docs.magicmirror.builders/modules/compliments.html#configuration-options

                    Default value:
                    config: {
                    	compliments: {
                    		anytime: [
                    			"Hey there sexy!"
                    		],
                    		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!"
                    		],
                    		"....-01-01": [
                    			"Happy new year!"
                    		]
                    	}
                    }
                    

                    Sam

                    How to add modules

                    learning how to use browser developers window for css changes

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

                      @sdetweil ummmmm I’m not sure? By that do you mean in the compliments.js?

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

                        @smart_user no… in config.js … NEVER edit the module source

                        		{
                        			disabled:false,
                        			module: "compliments",
                        			position: "middle"
                        		},
                        		{
                        			disabled:false,
                        			module: "compliments",
                        			position: "lower_third"
                        		},
                        

                        Sam

                        How to add modules

                        learning how to use browser developers window for css changes

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