Navigation

    MagicMirror Forum

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

    SOLVED Compliments config

    Troubleshooting
    4
    7
    1154
    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.
    • D
      dgregory19 last edited by

      How do you change the default compliments. Where are they. I don’t see them under compliments module. They must be somewhere if they are showing up when MM is running.

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

        @dgregory19

        They are in the config.js file. You can change them there or use a remote file. The README file for compliments has all the instructions

        D 1 Reply Last reply Reply Quote 0
        • D
          dgregory19 @Mykle1 last edited by

          @mykle1 Found my problem. Thanks for the help. Read your “absolute-beginners” topics. Huge help!

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

            @dgregory19

            Ahhh cool. 👍

            1 Reply Last reply Reply Quote 0
            • M
              motdog last edited by

              I went out and found https://gist.github.com/ryck/e28a69665b8839f6e9a7acd6b4acc97d (which is awesome)

              I modified and removed what I didn’t want, but I left the weather stuff in even though I haven’t configured the default weather module.

              I then created https://github.com/motdog/compliments/blob/master/compliments.json

              I went into compliments.js and at remote file removed null and added that link followed by a comma.

              It didn’t run when I restarted my mirror. Do I need to change anything on main config.

              Module.register("compliments", {
              
              	// Module config defaults.
              	defaults: {
              		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!"
              			]
              		},
              		updateInterval: 30000,
              		remoteFile: https://github.com/motdog/compliments/blob/master/compliments.json,
              		fadeSpeed: 4000,
              		morningStartTime: 3,
              		morningEndTime: 12,
              		afternoonStartTime: 12,
              		afternoonEndTime: 17
              	},
              

              Thanks for the help

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

                @motdog that is not config, that looks like the source for compliments.js, and only a little bit of the source

                M 1 Reply Last reply Reply Quote 0
                • M
                  motdog @sdetweil last edited by

                  @sdetweil ok I am so confused. I took an existing list of compliments and saved/edited it. I then saved it as a .json file (or so I thought) . I went to the default modules folder and changed remote folder from null to that web address.

                  I thought that was the way to go about it. Never created anything in github before. so Im grasping at straws

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