• 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.

magic mirror 2 config.js file

Scheduled Pinned Locked Moved Solved Troubleshooting
38 Posts 5 Posters 11.5k Views 5 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.
  • E Offline
    elaineezhu
    last edited by Dec 27, 2019, 4:05 AM

    after downloading the magicmirror2 onto my raspberry pi, i wanted to customize the compliments. i read that i’m supposed to edit the config.js file, but i can’t seem to find the file in the magic mirror folder? all i have in the config folder is config.js.sample.

    C S 2 Replies Last reply Dec 27, 2019, 4:26 AM Reply Quote 0
    • E Offline
      elaineezhu @sdetweil
      last edited by Dec 27, 2019, 3:01 PM

      @sdetweil ohhhhh okay i get it. i’ve tried to edit the actual magicmirror folder (i think i might’ve had 2 or 3) and now it works! thank you so much for all your help :) i appreciate it!

      1 Reply Last reply Reply Quote 0
      • C Offline
        cskenney @elaineezhu
        last edited by Dec 27, 2019, 4:26 AM

        @elaineezhu Make a copy of the config.js.sample file and name the copy config.js. Then you can edit the config.js file as needed.

        E 2 Replies Last reply Dec 27, 2019, 11:34 AM Reply Quote 0
        • S Away
          sdetweil @elaineezhu
          last edited by sdetweil Dec 27, 2019, 12:48 PM Dec 27, 2019, 4:45 AM

          @elaineezhu the instructions for manual install say to copy the sample

          In the config folder do

          cp config.js.sample  config.js 
          

          Sam

          How to add modules

          learning how to use browser developers window for css changes

          1 Reply Last reply Reply Quote 0
          • E Offline
            elaineezhu @cskenney
            last edited by Dec 27, 2019, 11:34 AM

            @cskenney i’ve done that, but i can’t seem to change the compliments displayed. i’ve also customized the compliments from the compliments folder, but magicmirror2 shows the default compliments?

            F 1 Reply Last reply Dec 27, 2019, 11:57 AM Reply Quote 0
            • E Offline
              elaineezhu @cskenney
              last edited by Dec 27, 2019, 11:39 AM

              @cskenney do you think it has anything to do with the fact that i’m using a macbook terminal and not a monitor and keyboard?

              1 Reply Last reply Reply Quote 0
              • F Offline
                Fozi Project Sponsor @elaineezhu
                last edited by Fozi Dec 27, 2019, 12:02 PM Dec 27, 2019, 11:57 AM

                @elaineezhu maybe a superficious question from my side, but have you checked the module description for compliments?
                This gives you all options how to configure the module. You don’t need to customize the module itself. All configurations are done in config.js.

                And no, using the Mac terminal and connect to MM via ssh is just good! This is how I configure my MM all the time.:smiling_face_with_smiling_eyes:

                Maybe you can post us, what you want to achieve (or how you want to adjust the compliments) and provide your current config or compliments looks. That would lever the chance to provide you concise help.

                Edit: I forgot to mention…when you make changes to config.js the MM has to be restarted. Either this is done automatically when you installed MM via @sdetweil script (what I highly recommend!) or you enter in terminal

                pm2 restart all
                

                (given that MM is controlled by pm2)

                HowTo: Replace PIR Sensor with a RCWL-0516 Microwave Sensor

                E 1 Reply Last reply Dec 27, 2019, 1:13 PM Reply Quote 0
                • E Offline
                  elaineezhu @Fozi
                  last edited by Dec 27, 2019, 1:13 PM

                  @Fozi i’ve tried editing the compliments in the config.js file, but MM won’t run those compliments, even after restarting it. attached is what is displayed and the config.js code i edited. 1_1577452392569_Screen Shot 2019-12-27 at 8.11.26 PM.png 0_1577452392568_Screen Shot 2019-12-27 at 8.10.41 PM.png

                  S C 2 Replies Last reply Dec 27, 2019, 1:26 PM Reply Quote 0
                  • S Away
                    sdetweil @elaineezhu
                    last edited by Dec 27, 2019, 1:26 PM

                    @elaineezhu that all looks good… where is that config.js file located? it MUST be in the
                    ~/MagicMirror/config folder

                    Sam

                    How to add modules

                    learning how to use browser developers window for css changes

                    E 1 Reply Last reply Dec 27, 2019, 1:45 PM Reply Quote 0
                    • C Offline
                      cskenney @elaineezhu
                      last edited by Dec 27, 2019, 1:32 PM

                      @elaineezhu it looks to me like you may need to use quotes (“) around module name and position instead of apostrophe (‘). I can’t verify this makes a difference because I am not able to test it.

                      S 1 Reply Last reply Dec 27, 2019, 1:33 PM Reply Quote 0
                      • S Away
                        sdetweil @cskenney
                        last edited by Dec 27, 2019, 1:33 PM

                        @cskenney single or double quote is ok, long as they are the same

                        Sam

                        How to add modules

                        learning how to use browser developers window for css changes

                        C 1 Reply Last reply Dec 27, 2019, 1:37 PM Reply Quote 0
                        • 1
                        • 2
                        • 3
                        • 4
                        • 1 / 4
                        1 / 4
                        • First post
                          1/38
                          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