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.

    How do I configure a module?

    Scheduled Pinned Locked Moved Troubleshooting
    11 Posts 5 Posters 8.0k Views 4 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.
    • A Offline
      ArcherProject
      last edited by

      So I’ve just setup the magic mirror for the first time and I’m trying to edit just basic stuff like the default modules (weather being the one I want to sort out first).

      So how do I do this? is there a forum post on this?

      i managed to find out that if I type in MagicMirror/modules I get to the modules area but I have no idea where to go from here. COMPLETE beginner here with 0 experience so feel free to go into extra detail as if your talking to a child! :D

      yawnsY Mykle1M 2 Replies Last reply Reply Quote 0
      • yawnsY Offline
        yawns Moderator @ArcherProject
        last edited by

        @ArcherProject
        I assume you already created a valid copy of your config file, right? Then open up ~/MagicMirror/config/config.js in any editor. You can use an editor in terminal (nano for example) or you can use any text editor with gui (leafpad for example).

        What exactly would you like to do? I guess it would be some overkill listing all possible options.

        1 Reply Last reply Reply Quote 0
        • A Offline
          ArcherProject
          last edited by

          So I’ve realised I can open it in the default file explorer (something I’m a little more used to) and edit the configs in there. however I still cant seem to get the weather to come up. could this be becasue the API key from openweather takes a while to kick in or is it more likely something wrong in the formatting?

          Thanks for the help

          brobergB 1 Reply Last reply Reply Quote 0
          • brobergB Offline
            broberg Project Sponsor @ArcherProject
            last edited by

            @ArcherProject can you copy and paste your config file (removing your personal api-key)?

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

              @ArcherProject

              I was just like you a few weeks ago. I didn’t know a thing about this, or coding. A complete noob, as they say. My suggestion, because it helped me, is, don’t do your editing in the terminal. Do it in the graphical user interface (GUI). Navigate your desktop as you would on a PC with Windows or a Mac’s Finder.

              Click on File Manager (the folder at the top left of your desktop, usually)
              Double click the MagicMirror folder
              Double click the config folder
              Right click the config.js.sample file - select Copy
              Right click again somewhere else in that same window - select Paste
              Rename the file to config.js and click the Rename button
              The new config.js file that you just pasted is now your working config file for MagicMirror
              Double click it and it should open in a text editor.

              This is one of the places where you will customize your MM. It’s actually good enough to run your MM, although it will only show some of the modules but you’ll be encouraged by the fact that it is at least working. Every module folder has a ReadMe file that instructs you on what to add to your config.js file to get that module up and running.

              I think that’s good for now. If you want to run MM right now to see how your new config.js is working you will have to go back to the terminal. Do this:

              Open a new terminal
              type cd MagicMirror
              then type npm start

              Sit back and watch the magic happen. When you calm down after a minute or two of watching your MM actually working and you want to quit MM, press the Option key on your keyboard. Select QUIT from File menu that appears, top left of your screen

              Create a working config
              How to add modules

              A 1 Reply Last reply Reply Quote 0
              • A Offline
                ArcherProject @Mykle1
                last edited by

                @Mykle1 thanks miate exactly what I have ended up doing and now I’m feeling a lot more confident! attempting to add a few extra modules too and so far so good! hope to make another one of these for myself in the future (this one is a gift). feel like I’ve still got a lot to learn though!

                cowboysdudeC Mykle1M 3 Replies Last reply Reply Quote 1
                • cowboysdudeC Offline
                  cowboysdude Module Developer @ArcherProject
                  last edited by

                  @ArcherProject before you know it you’ll be an old pro at this!! It does get easier hang in there and if you run into trouble just ask! :)

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

                    @ArcherProject

                    Again, you sound just like I did. I took the time to help you because a few weeks ago I was in exactly the same place as you are now and someone here stepped in and answered my questions and was very explicit in their directions. It got my MM up and running, gave me some confidence and taught me something. I still ask questions but I’m not afraid to experiment beforehand.

                    Another piece of advice:

                    Make a copy of any files you are going to edit (e.g. your config file, your css files, etc…) and work on those. If you mess anything up, you go back to the original. In my config folder I have my working config.js file and I have backups named configV2.js, configV3.js, configV4.js (etc) for each time I edited the config.js file. More than a few times I messed up something but I had the backups as a safety net. I trash the one I messed up and renamed the last working backup to config.js and continued the process.

                    Create a working config
                    How to add modules

                    cowboysdudeC 1 Reply Last reply Reply Quote 0
                    • cowboysdudeC Offline
                      cowboysdude Module Developer @Mykle1
                      last edited by

                      @Mykle1 Oh good lord… I can’t count how many I messed up LOL

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

                        @cowboysdude My point exactly

                        Create a working config
                        How to add modules

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