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

How do I configure a module?

Scheduled Pinned Locked Moved Troubleshooting
11 Posts 5 Posters 8.1k 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.
  • B Offline
    broberg Project Sponsor @ArcherProject
    last edited by Feb 4, 2017, 11:58 AM

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

    1 Reply Last reply Reply Quote 0
    • M Offline
      Mykle1 Project Sponsor Module Developer @ArcherProject
      last edited by Feb 4, 2017, 1:05 PM

      @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 Feb 4, 2017, 1:41 PM Reply Quote 0
      • A Offline
        ArcherProject @Mykle1
        last edited by Feb 4, 2017, 1:41 PM

        @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!

        C M 3 Replies Last reply Feb 4, 2017, 1:50 PM Reply Quote 1
        • C Offline
          cowboysdude Module Developer @ArcherProject
          last edited by Feb 4, 2017, 1:50 PM

          @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
          • M Offline
            Mykle1 Project Sponsor Module Developer @ArcherProject
            last edited by Feb 4, 2017, 5:06 PM

            @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

            C 1 Reply Last reply Feb 4, 2017, 5:07 PM Reply Quote 0
            • C Offline
              cowboysdude Module Developer @Mykle1
              last edited by Feb 4, 2017, 5:07 PM

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

              M 1 Reply Last reply Feb 4, 2017, 5:08 PM Reply Quote 0
              • M Offline
                Mykle1 Project Sponsor Module Developer @cowboysdude
                last edited by Feb 4, 2017, 5:08 PM

                @cowboysdude My point exactly

                Create a working config
                How to add modules

                1 Reply Last reply Reply Quote 0
                • C Offline
                  cowboysdude Module Developer @ArcherProject
                  last edited by Feb 4, 2017, 5:09 PM

                  @ArcherProject said in How do I configure a module?:

                  @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!

                  HEY do yourself a HUGE favor… when you have a working config.js just copy it to config.bak for a backup!! That way you can always look at it and see perhaps where you went wrong… trust me it’s a HUGE time saver!! :)

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