• 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 35.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 @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
            • S Offline
              Stacy @lavolp3
              last edited by Jan 29, 2018, 7:48 PM

              @lavolp3 so I go to modules, default, compliments, and change it there? I just want to make sure I am in the right folder. Thank u SO much for helping.

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

                @Stacy No.
                I thought you had changed the config/config.js file. This is the central MM config file. If there is one synthax error in this file, the mirror won’t load. Post the content of that here without personal info (like API keys or passwords) OR go into the magicmirror folder and do “npm run config:check”, which will tell you where the error is.

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

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

                  @lavolp3 so how do I get to the modules to change them?

                  M 1 Reply Last reply Jan 29, 2018, 8:05 PM Reply Quote 0
                  • M Offline
                    Mykle1 Project Sponsor Module Developer @Stacy
                    last edited by Jan 29, 2018, 8:05 PM

                    @Stacy

                    MagicMirror/config/config.js is the file you want to edit.

                    If you edit the actual modules files (which is not recommended) then you risk breaking MM altogether.

                    Create a working config
                    How to add modules

                    1 Reply Last reply Reply Quote 1
                    • D Offline
                      doubleT Module Developer
                      last edited by Jan 29, 2018, 8:41 PM

                      @Stacy said in Changing compliments:

                      @lavolp3 so how do I get to the modules to change them?

                      All the modules get their information from the config.js cruunnerr and Mykle mentioned. You don’t need to change anything in the module folders.

                      If the module code is broken at the moment, you can rebuild it from – or completely replace it with – the original here if you don’t want to start over again.

                      This is the basic code for the compliment module to be added/changed/edited in the MagicMirror/config/config.js :

                          {
                              module: "compliments",
                              position: "lower_third",	// This can be any of the regions.
                                                              // Best results in one of the middle regions like: lower_third
                              config: {
                                  compliments: {
                                      anytime: [
                                          "Hey!",   // properties are followed by commas – most common mistake
                                          "Hello."  // last property within brackets doesn't get a comma
                                      ],
                                      morning: [
                                          "Hey!"
                                      ],
                                      evening: [
                                          "Hey!"
                                      ]
                                  }
                              }
                          } // add a comma (,) if another module's config is following
                      

                      See the comments in the code. The most common mistakes are missing commas or missing brackets.

                      S 1 Reply Last reply Jan 29, 2018, 9:28 PM Reply Quote 1
                      • 1
                      • 2
                      • 3
                      • 4
                      • 5
                      • 1 / 5
                      1 / 5
                      • First post
                        10/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