Navigation

    MagicMirror Forum

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

    I need help with editing configs (mainly the compliments)

    Troubleshooting
    config configuration
    2
    5
    2718
    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.
    • chaseb1357
      chaseb1357 last edited by

      I am very new to Linux and the raspberry pi. I was inspired to build a smart mirror so I got everything set up right, I installed Magic Mirror and then I hit a wall. I don’t quite understand on how to edit the configs, I am specifically trying to edit what the compliments say and get them to fade after 5 seconds. Can someone explain to me how I go about doing this?

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

        @chaseb1357 said in I need help with editing configs (mainly the compliments):

        Can someone explain to me how I go about doing this?

        The readme for the compliments module has all the information you need. I suggest you read it. With that, here is one way of adding compliments, in your config entry. However, this way can make your config cumbersome, but it does work. The readme explains how to use a remote file so you don’t fill up your config with compliments.
        https://github.com/MichMich/MagicMirror/tree/develop/modules/default/compliments

        And here is a config entry you can use. See how I added compliments to the file? Just follow that format and you’ll be fine.

        		{
        		module: "compliments",
        		position: "lower_third",
        			config: {
        				updateInterval: 5000,
        				fadeSpeed: 1000,
        				compliments: {
        		anytime: [
        			"Hey there sexy!",
        			"RTFM!",
        			"The readme will help!",
        			"Last one no comma"
        		],
        		morning: [
        			"Good morning, handsome!",
        			"Enjoy your day!",
        			"How was your sleep?",
        			"Last one no comma"
        		],
        		afternoon: [
        			"Hello, beauty!",
        			"You look sexy!",
        			"Looking good today!",
        			"Last one no comma"
        		],
        		evening: [
        			"Wow, you look hot!",
        			"You look nice!",
        			"Hi, sexy!",
        			"Add your own like this!",
        			"Watch your formatting!",
        			"Last one no comma"
        		]
        	}
        }
        },
        

        You can copy and paste it and edit it if you like.

        Then read the readme! 😉

        chaseb1357 1 Reply Last reply Reply Quote 2
        • Mykle1
          Mykle1 Project Sponsor Module Developer last edited by

          @chaseb1357 said in I need help with editing configs (mainly the compliments):

          get them to fade after 5 seconds.

          The updateInterval: 5000, is in milliseconds, so 5000 = 5 seconds. You change that to set the time that a new compliment appears

          1 Reply Last reply Reply Quote 1
          • chaseb1357
            chaseb1357 @Mykle1 last edited by

            @Mykle1 Works like a charm, thank you for the guidance!

            Mykle1 1 Reply Last reply Reply Quote 1
            • Mykle1
              Mykle1 Project Sponsor Module Developer @chaseb1357 last edited by

              @chaseb1357

              You’re welcome. Enjoy your mirror

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