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

Editing Default Settings

Scheduled Pinned Locked Moved Solved Troubleshooting
8 Posts 2 Posters 4.1k Views 1 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.
  • L Offline
    LeashP15
    last edited by Apr 25, 2017, 5:51 PM

    I was able to install the Magic Mirror and pull up the sample config file; however, it will not allow me to edit it. For example, I’d like to change the weather to be for my area instead of New York. How do I fix this?

    B 1 Reply Last reply Apr 25, 2017, 6:54 PM Reply Quote 0
    • B Offline
      broberg Project Sponsor @LeashP15
      last edited by Apr 25, 2017, 6:54 PM

      @LeashP15 did you copy the sample config file first? ( So you have config.js instead of config.js.sample)?

      Are you using the nano text editor to edit the file?

      Have you gotten your own api-key for the weather modules?

      1 Reply Last reply Reply Quote 0
      • L Offline
        LeashP15
        last edited by Apr 25, 2017, 6:56 PM

        @broberg what would the code line look like for that? I copied what it had in the MagPi pdf file. I did use the nano text editor, but it didn’t allow me to edit, and yes I have my own api-key for the weather modules.

        B 1 Reply Last reply Apr 25, 2017, 7:11 PM Reply Quote 0
        • B Offline
          broberg Project Sponsor @LeashP15
          last edited by Apr 25, 2017, 7:11 PM

          @LeashP15

          to copy and rename the config.js.sample file you write

          cp config/config.js.sample config/config.js

          to edit using nano with sudo

          sudo nano config/config.js

          based on that you are in the MagicMirror folder to start with.

          1 Reply Last reply Reply Quote 0
          • L Offline
            LeashP15
            last edited by Apr 25, 2017, 7:23 PM

            @broberg
            It created an empty config file. Should I just rewrite everything, but change the parts that I needed changed?

            B 1 Reply Last reply Apr 25, 2017, 7:29 PM Reply Quote 0
            • B Offline
              broberg Project Sponsor @LeashP15
              last edited by Apr 25, 2017, 7:29 PM

              @LeashP15 that’s odd, it shouldn’t be empty unless your sample file is empty.

              do this first

              rm config/config.js(It’s to remove the empty config.js file)

              and then do the copy again

              cp config/config.js.sample config/config.js

              L 1 Reply Last reply Apr 25, 2017, 7:34 PM Reply Quote 0
              • L Offline
                LeashP15 @broberg
                last edited by Apr 25, 2017, 7:34 PM

                @broberg It finally worked! Thanks for your help!

                B 1 Reply Last reply Apr 25, 2017, 7:36 PM Reply Quote 0
                • B Offline
                  broberg Project Sponsor @LeashP15
                  last edited by broberg Apr 25, 2017, 7:36 PM Apr 25, 2017, 7:36 PM

                  @LeashP15 you’re welcome! :)

                  1 Reply Last reply Reply Quote 0
                  • 1 / 1
                  1 / 1
                  • First post
                    1/8
                    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