• Recent
  • Tags
  • Unsolved
  • Solved
  • MagicMirror² Repository
  • Documentation
  • 3rd-Party-Modules
  • Donate
  • Discord
  • Register
  • Login
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.

Changing compliments

Scheduled Pinned Locked Moved Troubleshooting
49 Posts 9 Posters 31.7k Views 9 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
    Stacy
    last edited by Jan 29, 2018, 5:55 PM

    Totally new to Linux and Magic Mirror. I tried to change a complimenT in the config.js file of the compliment module and I got the error to install a configuration file. I kept my changes in between the double quotes. Am I doing this wrong? Thanks.

    1 Reply Last reply Reply Quote 0
    • C Offline
      cruunnerr
      last edited by cruunnerr Jan 29, 2018, 6:33 PM Jan 29, 2018, 6:31 PM

      @Stacy
      you don’t need to change compliments in the config of the module. When u ever update your mirror the changes will be overwrite.

      Just do it in the normal “MagicMirror/config/config.js”

      Your compliments sector should look like this:

                  {
      			module: "compliments",
      			position: "lower_third",
                              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!"
      		                   ]
      	                     }
                             }
      		},
      

      instead of just using “morning, afternoon, evening” u can also use these:

      day_sunny
      day_cloudy
      cloudy
      cloudy_windy
      showers
      rain
      thunderstorm
      snow
      fog
      night_clear
      night_cloudy
      night_showers
      night_rain
      night_thunderstorm
      night_snow
      night_alt_cloudy_windy
      

      just take a look here: https://github.com/MichMich/MagicMirror/tree/master/modules/default/compliments

      S 1 Reply Last reply Jan 29, 2018, 6:40 PM Reply Quote 1
      • S Offline
        Stacy @cruunnerr
        last edited by Jan 29, 2018, 6:40 PM

        @cruunnerr Thanks for your reply. That is where I changed the compliment and I got the error message. I am not sure what I am doing wrong.

        L 1 Reply Last reply Jan 29, 2018, 6:47 PM Reply Quote 0
        • C Offline
          cruunnerr
          last edited by Jan 29, 2018, 6:45 PM

          post your whole config file (hide personal stuff as calendar or APIs) in a code box and i will check.

          Or try it yourself by using www.jshint.com

          1 Reply Last reply Reply Quote 0
          • L Offline
            lavolp3 Module Developer @Stacy
            last edited by Jan 29, 2018, 6:47 PM

            @Stacy you have a synthax error in the config. Just check it by running

            npm run config:check
            

            from the magicmirror directory.
            OR post your compliments part of the config here.

            How to troubleshoot modules
            MMM-soccer v2, MMM-AVStock

            S 1 Reply Last reply Jan 29, 2018, 7:21 PM Reply Quote 1
            • S Offline
              Stacy @lavolp3
              last edited by Jan 29, 2018, 7:21 PM

              @lavolp3 after I make changes to config/config.J’s did I save it as the same file or give it a new name?

              S L 2 Replies Last reply Jan 29, 2018, 7:28 PM Reply Quote 0
              • S Offline
                Stacy @Stacy
                last edited by Jan 29, 2018, 7:28 PM

                @Stacy do I

                1 Reply Last reply Reply Quote 0
                • L Offline
                  lavolp3 Module Developer @Stacy
                  last edited by Jan 29, 2018, 7:30 PM

                  @Stacy save it as the same file. But please do not use windows programs like word or wordpad to edit it. They will break the file. In windows you should use e.g. notepad or notepad++. On debian/raspbian you can use whatever you like

                  How to troubleshoot modules
                  MMM-soccer v2, MMM-AVStock

                  S 2 Replies Last reply Jan 29, 2018, 7:35 PM Reply Quote 0
                  • S Offline
                    Stacy @lavolp3
                    last edited by Jan 29, 2018, 7:35 PM

                    @lavolp3 thanks. I am using nano.

                    S 1 Reply Last reply Jan 29, 2018, 7:42 PM Reply Quote 0
                    • S Offline
                      Stacy @Stacy
                      last edited by Jan 29, 2018, 7:42 PM

                      @Stacy so, just to clear, I go to modules folder, then default, then compliments, then compliments.js. to edit?

                      L 1 Reply Last reply Jan 29, 2018, 7:52 PM Reply Quote 0
                      • 1
                      • 2
                      • 3
                      • 4
                      • 5
                      • 1 / 5
                      1 / 5
                      • First post
                        1/49
                        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