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.

    CANNOT ADD MODULES

    Scheduled Pinned Locked Moved Unsolved Troubleshooting
    14 Posts 7 Posters 5.3k Views 6 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.
    • brobergB Offline
      broberg Project Sponsor
      last edited by

      This post is deleted!
      1 Reply Last reply Reply Quote 0
      • lavolp3L Offline
        lavolp3 Module Developer
        last edited by lavolp3

        Try finding errors with

        npm run config:check
        

        to find errors in the config.

        You can also use online tools like jslint.com (past your code there)

        You need to remove commas in line 19 and 54
        and need to add one in line 59.

        …and maybe even more.

        How to troubleshoot modules
        MMM-soccer v2, MMM-AVStock

        1 Reply Last reply Reply Quote 0
        • lavolp3L Offline
          lavolp3 Module Developer
          last edited by

          and your indentation is messed up making it more difficult to find errors.
          You may have too much curled brackets.

          How to troubleshoot modules
          MMM-soccer v2, MMM-AVStock

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

            @anhanyoung

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

            Create a working config
            How to add modules

            1 Reply Last reply Reply Quote 0
            • yawnsY Offline
              yawns Moderator
              last edited by

              I prefer jshint.com
              In this case you missed a single comma in line userlon, so it should be:

              		userlat: "47.302604", //MUST HAVE BOTH
              	        userlon: "-122.33621",  //MUST HAVE BOTH
              		zip: "98023"
              
              lavolp3L 1 Reply Last reply Reply Quote 1
              • lavolp3L Offline
                lavolp3 Module Developer @yawns
                last edited by

                @yawns said in CANNOT ADD MODULES:

                I prefer jshint.com

                This really is way better! Great! Doesn’t complain about tabs for indentation which is annoying with the other tool.

                How to troubleshoot modules
                MMM-soccer v2, MMM-AVStock

                1 Reply Last reply Reply Quote 1
                • A Offline
                  anhanyoung
                  last edited by

                  Thank you guys! I will try using those sites. Didn’t know they existed. Oh man. Would that be a help. Another question, for d ample, the compliments and weather module, when I change it in the config, do I have to change it in the module folder as well? Adding more compliments and such?

                  lavolp3L 2 Replies Last reply Reply Quote 0
                  • lavolp3L Offline
                    lavolp3 Module Developer @anhanyoung
                    last edited by

                    @anhanyoung Every module is designed in a way that you don’t have to mess with the module files (MMM-*.js, node_helper.js) themselves.
                    Otherwise, if you’re not common with git, you will run into problems as soon as you want/need to update the module.
                    So always try to use config/config.js, css/customs.css or external files for tpurposes like these. In most caeses it’s described in the Readme of the config or here in the forum.

                    How to troubleshoot modules
                    MMM-soccer v2, MMM-AVStock

                    1 Reply Last reply Reply Quote 0
                    • lavolp3L Offline
                      lavolp3 Module Developer @anhanyoung
                      last edited by

                      @anhanyoung said in CANNOT ADD MODULES:

                      when I change it in the config, do I have to change it in the module folder as well? Adding more compliments and such?

                      No, you only need to change it in the config.js, or in the external json. The module file contains default values that will be overwritten by the values in the config.js or external files (e.g. for compliments)

                      How to troubleshoot modules
                      MMM-soccer v2, MMM-AVStock

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

                        @mykle1

                        Thank you. I have been using your tutorials all night. It has helped me get to where I am. I tried folllowing these steps for different modules and it didn’t seem to work for me

                        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