• 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 to add modules. For absolute beginners.

Scheduled Pinned Locked Moved Troubleshooting
91 Posts 16 Posters 110.6k Views 24 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.
  • M Offline
    Mykle1 Project Sponsor Module Developer @johnnyboy
    last edited by Jul 13, 2019, 12:28 AM

    @johnnyboy said in How to add modules. For absolute beginners.:

    —Just a thought you may consider?.. Seeing as your ‘‘How To’’ threads are popular amongst the new members, would it be an idea to have a pinned post of all your ‘‘How To’s’’ ? One pinned post, with named links to all your tutorials? " How to Tutorials - For absolute beginners"
    1/ How to add modules - < insert link >
    2/ How to install MM on PC - < insert link >
    3/ How to post code on the forum - < insert link >
    4/ How to create a working config - < insert link >
    Then lock the post so it does not become cluttered with questions? … Just a thought.

    That would be up to the administration of the forum. However, thank you for your vote of confidence, bro. :thumbsup:

    Create a working config
    How to add modules

    1 Reply Last reply Reply Quote 1
    • C Offline
      Chrisflex
      last edited by Apr 30, 2020, 7:25 AM

      Where do I find the Windows version of what needs to be done here?

      https://forum.magicmirror.builders/topic/4231/how-to-add-modules-for-absolute-beginners/2

      @Mykle1 said in How to add modules. For absolute beginners.:

      Go to your Pi desktop

      Click the File Manager folder. (Top menu bar, 3rd from the left, in Raspbian Jessie)

      Double click the MagicMirror folder.

      Double click the config folder.

      Double click the config.js file. (Not the sample! The config.js file you made during setup)

      Your config.js file is now open in a text editor. If not, open it in your text editor.

      You have to add an entry for the module you just downloaded so that MM knows to load it.

      Lets put the entry for MMM-JEOPARDY under your calendar module entry.

      Modules that occupy the same postition display in the order they appear in the config.js file.

      Scroll down to the calendar entry in the config.js file.

      The calendar entry “ends” at the last }, and the compliments module entry begins with a {.
      So, all module entries in the config.js file begin with a { and end with a },
      Look at the way the modules are entered. What I just described should be evident.

      Copy and paste the following “between” the ending of the calendar module entry - },

      And the beginning of the compliments module entry - {

      M 1 Reply Last reply Apr 30, 2020, 1:54 PM Reply Quote 0
      • M Offline
        Mykle1 Project Sponsor Module Developer @Chrisflex
        last edited by Apr 30, 2020, 1:54 PM

        @Chrisflex

        There isn’t one because the only difference is the path to your config folder. So, navigate to your config folder (inside the MagicMirror folder) and open it. If you don’t find a config.js file there then you need to copy and paste the config.js.sample file and rename the copy to config.js. Once you have made or found a config.js file then you can just follow the tutorial from there.

        Create a working config
        How to add modules

        1 Reply Last reply Reply Quote 0
        • C Offline
          Chrisflex
          last edited by May 1, 2020, 3:52 AM

          @Mykle1 said in How to add modules. For absolute beginners.:

          There isn’t one because the only difference is the path to your config folder. So, navigate to your config folder (inside the MagicMirror folder) and open it. If you don’t find a config.js file there then you need to copy and paste the config.js.sample file and rename the copy to config.js. Once you have made or found a config.js file then you can just follow the tutorial from there.

          Thank you very much, I will follow the instructions and see how I go.

          1 Reply Last reply Reply Quote 0
          • D Offline
            Dask
            last edited by Jun 16, 2020, 3:49 PM

            First of all I would like to say thank you for the step by step tutorial. It helped me a lot and I can now install some MM modules.
            I do have a question though, I don’t really understand how to add dependencies. You say add it to the folder via the terminal??? I tried this on your PilotWX module but I don’t really know how to do it. I thought I did it eventually but nothing come up in my MM. I have also copied and pasted the other part into config.
            Any help would be appreciated.

            B M 2 Replies Last reply Jun 16, 2020, 6:45 PM Reply Quote 0
            • B Offline
              BKeyport Module Developer @Dask
              last edited by Jun 16, 2020, 6:45 PM

              @Dask Dependencies are on a case by case basis. In many cases, it’s as simple as installing it into npm, by using npm install

              In some cases, however, there’s additional outside programs or such that’s not covered by the npm install method. I’ve yet to see a module that requires additional software not include an installer script to take care of that for you, generally the readme will tell you if that’s the case.

              Bottom line, follow the instructions in the readme.

              The "E" in "Javascript" stands for "Easy"

              1 Reply Last reply Reply Quote 2
              • D Offline
                Dask
                last edited by Jun 17, 2020, 9:58 PM

                BKeyport
                Thank you for your reply. But I’m sorry to say I still don’t get it so let me explain my problem a little better.
                The module says “npm install in your ~/MagicMirror/modules/MMM-PilotWX directory.” How do I do this. I tried going into ~/MagicMirror/modules/MMM-PilotWX but that command is not recognised in the terminal. How do I get into the correct place to add npm install.
                Sorry if I am being stupid but this is all new to me.
                Thanks

                S B M 3 Replies Last reply Jun 17, 2020, 10:34 PM Reply Quote 0
                • S Away
                  sdetweil @Dask
                  last edited by Jun 17, 2020, 10:34 PM

                  @Dask you should use a terminal window, and cd ~/MagicMirror/modules/??? where ??? is the module name

                  and then type
                  ``
                  npm install

                  ONLY of there is a file called package.json present in the module folder
                  (npm install reads that file)
                  
                  and hit enter
                  node and npm are installed system wide so there should be no problem

                  Sam

                  How to add modules

                  learning how to use browser developers window for css changes

                  1 Reply Last reply Reply Quote 0
                  • B Offline
                    BKeyport Module Developer @Dask
                    last edited by Jun 18, 2020, 12:32 AM

                    @Dask I’ll walk you through this one, same for most non-scripted modules:

                    assuming MagicMirror is installed with defaults:

                    1. go to your modules directory: cd ~/MagicMirror/modules/
                    2. Clone the module to get it on your machine: git clone https://github.com/mykle1/MMM-PilotWX.git
                    3. go to the module’s directory: cd MMM-PilotWX
                    4. install the dependencies npm install
                    5. configure, and restart magic mirror.

                    Cheers.

                    The "E" in "Javascript" stands for "Easy"

                    1 Reply Last reply Reply Quote 0
                    • M Offline
                      Mykle1 Project Sponsor Module Developer @Dask
                      last edited by Jun 18, 2020, 1:15 AM

                      @Dask said in How to add modules. For absolute beginners.:

                      First of all I would like to say thank you for the step by step tutorial. It helped me a lot and I can now install some MM modules.

                      You’re welcome, mate.

                      Create a working config
                      How to add modules

                      1 Reply Last reply Reply Quote 0
                      • 1
                      • 2
                      • 3
                      • 4
                      • 5
                      • 9
                      • 10
                      • 3 / 10
                      • 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