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 129.3k 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.
    • D Offline
      Dask
      last edited by

      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.

      BKeyportB Mykle1M 2 Replies Last reply Reply Quote 0
      • BKeyportB Offline
        BKeyport Module Developer @Dask
        last edited by

        @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

          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 BKeyportB Mykle1M 3 Replies Last reply Reply Quote 0
          • S Offline
            sdetweil @Dask
            last edited by

            @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
            • BKeyportB Offline
              BKeyport Module Developer @Dask
              last edited by

              @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
              • Mykle1M Offline
                Mykle1 Project Sponsor Module Developer @Dask
                last edited by

                @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
                • Mykle1M Offline
                  Mykle1 Project Sponsor Module Developer @Dask
                  last edited by Mykle1

                  @Dask

                  I haven’t touched MMM-PilotWX in some time so I loaded it up. All is well.

                  This would be your default config entry. Once you have it up an running you can make your changes.

                  {
                  	disabled: false,
                  	module: "MMM-PilotWX",
                  	position: "top_left",         // for mode: "Static",  bottom_bar for mode: "Rotating",
                  	config: {
                  		ICAO: "KJFK,EGLL,UUDD,EDDT,RJAA,ZBAA,LFPG,LIRF", // list of INTL ICAO's
                  		colorCode: "Alternative", // Standard or Alternative
                  		mode: "Static",           // Static (List) or Rotating (one by one)
                  		mostRecentPerStation: true,	//limits observations to 1 per station
                  		sym: "@",                 // @ or / (Separator for Wind speed and direction)
                  		tempUnits: "C",		   // C or F (F converted from C)
                  		measure: "SM",            // SM or KM (KM converted from SM data)
                  		time: "Local",            // Zulu or Local (observation time)
                  		maxWidth: "100%",         // 100% for mode: Rotating, approx 300px for mode: Static
                  		useAltHeader: true,	  // Use alternative header
                  		useHeader: false,
                  		header: "",
                  	}
                  },
                  

                  Create a working config
                  How to add modules

                  1 Reply Last reply Reply Quote 0
                  • D Offline
                    Dask
                    last edited by

                    Thank you all for the help. I am slowly getting it. Honest.

                    1 Reply Last reply Reply Quote 0
                    • D Offline
                      Dask
                      last edited by

                      Mykle! I have the PilotMX instlled and working on the bottom bar with my chosen 2 airports but it takes up the full width of the screen. Can I make it narrower. I changed the maxWidth to 300px but it is still all the way across.

                      BKeyportB 1 Reply Last reply Reply Quote 0
                      • BKeyportB Offline
                        BKeyport Module Developer @Dask
                        last edited by

                        @Dask bottom bar is designed to do exactly that. you’d be better to use bottom_left, bottom_right, or bottom_center (or is it middle, I don’t recall, I keep my config organized by the regions, so I get reminded when I redesign)

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

                        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