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.

    I need help with editing configs (mainly the compliments)

    Scheduled Pinned Locked Moved Troubleshooting
    configurationconfig
    5 Posts 2 Posters 3.5k 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.
    • chaseb1357C Offline
      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?

      Mykle1M 1 Reply Last reply Reply Quote 0
      • Mykle1M Offline
        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! ;-)

        Create a working config
        How to add modules

        chaseb1357C 1 Reply Last reply Reply Quote 2
        • Mykle1M Offline
          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

          Create a working config
          How to add modules

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

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

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

              @chaseb1357

              You’re welcome. Enjoy your mirror

              Create a working config
              How to add modules

              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 Sam, technical setup by Karsten.
              This forum is using NodeBB as its core | Contributors
              Contact | Privacy Policy