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 128.8k 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
      doubleT Module Developer
      last edited by doubleT

      By the way, if you start the mirror with npm start dev instead of just npm start, it’ll start up with a console at the side where it will show you errors that often point you to the line of code that has an error.

      For example, if I remove one of the commas between the { settings objects }, it’ll show:

      Uncaught SyntaxError: Unexpected token {      config.js:68
      

      The opening bracket in line 68 of config.js is unexpected because a comma after the closing bracket in line 67 is missing. (This is just an example, it’s probably a different line in your code.)

      EDIT
      I think this thread should have stayed clean and we should have done this in your already existing thread about these same issues.

      But to bring some more value to this helpful thread, here’s a good and easy text on objects and arrays in JavaScript (that’s what the setting in config.js is made of): https://eloquentjavascript.net/04_data.html
      Please consider reading and consulting this before moving on or asking the same question in yet another thread.

      C 1 Reply Last reply Reply Quote 0
      • C Offline
        Coltjb45 @doubleT
        last edited by

        @doubleT thanks for everything, I got it working. Now some other hiccups to work on.

        1 Reply Last reply Reply Quote 0
        • N Offline
          noiz13 @doubleT
          last edited by

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

          Sublime Text

          what text editor is that?

          1 Reply Last reply Reply Quote 0
          • D Offline
            doubleT Module Developer
            last edited by

            A good one. :) www.sublimetext.com

            1 Reply Last reply Reply Quote 1
            • johnnyboyJ Offline
              johnnyboy @Mykle1
              last edited by

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

              • Go to this page of modules:

              • https://github.com/MichMich/MagicMirror/wiki/MagicMirror²-Modules#3rd-party-modules

              Hey up Amigo… You may want to update the modules page url - https://github.com/MichMich/MagicMirror/wiki/3rd-Party-Modules

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

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

                Hey up Amigo…

                Not much, you? I hope all is well with you and yours.

                I corrected the url, I think. :-)

                Create a working config
                How to add modules

                johnnyboyJ 1 Reply Last reply Reply Quote 1
                • johnnyboyJ Offline
                  johnnyboy @Mykle1
                  last edited by johnnyboy

                  @Mykle1

                  Yeah, all good here thanks. …Still lurking here as you can see.
                  I’ve been looking around for a good (Similar) alternative to Wunderground… Looked at our other Amigo’s one - NOAA3 - and liked the layout of that, although yet to download and see if it will work okay here in Scotland?

                  Any other ones you could say that are pretty neat, that are also worth considering?

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

                    @johnnyboy

                    Yes, I like and use NOAA3 still. Jeff’s weather module seems to be pretty popular. Have a look at that one. I use my own weather module mostly, MMM-BMW-DS. It uses the DarkSky API. I wanted something completely different in layout and appearance. Take a look if you like.

                    0_1562881061113_1.png

                    0_1562881073640_22.png

                    Create a working config
                    How to add modules

                    johnnyboyJ 1 Reply Last reply Reply Quote 1
                    • cowboysdudeC Offline
                      cowboysdude Module Developer
                      last edited by

                      So @Mykle1 how do you add modules?

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

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

                        So @Mykle1 how do you add modules?

                        You take a module and then you take another module and then add them together. You should now have 2 modules. ;-)

                        Create a working config
                        How to add modules

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