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.

    MMM College top 25

    Scheduled Pinned Locked Moved General Discussion
    6 Posts 3 Posters 1.1k Views 3 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.
    • S Offline
      sdetweil @JGSteelerFan01
      last edited by

      @JGSteelerFan01 could you give more info?

      Sam

      How to add modules

      learning how to use browser developers window for css changes

      J 1 Reply Last reply Reply Quote 0
      • J Offline
        JGSteelerFan01 @sdetweil
        last edited by

        @sdetweil I guess I’m having trouble adding any Modules. The exact syntax is my challenge. I get the { and }, but not the [ or ]. I’ve made minor changes to the base defaults, but adding additional MM’s are a struggle. The code for MMM college top 25 looks intimidating. any help understanding the module coding would be helpful. I keep look at all the coding for patterns and/or similarities. thank you.

        S 1 Reply Last reply Reply Quote 0
        • S Offline
          sdetweil @JGSteelerFan01
          last edited by

          @JGSteelerFan01 yes sometimes it’s a lot

          the list of module configuration definitions is

          modules: [
          
          
          
          
          ]
          

          [] means list/array

          {} means collection

              {
                   module:...
                   position:...
                   config:  {
                   ... 
                   ...
                  }
             }
          

          what goes inside the config:{} collection for each module is unique to that module

          lists []
          can be numbers, strings, collections or other lists
          etc etc.

          blank lines are ok, extra commas are ok, lack of a comma is fatal!.. lol.
          get one of the ssh clients (winscp or bitvise) that provide file system access and u can edit on your windows machine with and editor like vscode or notepad++, which do brace{} and bracket[] matching

          always use indentation.

          see the two topics in my signature below, they will help.
          I didn’t write them…

          Sam

          How to add modules

          learning how to use browser developers window for css changes

          W 1 Reply Last reply Reply Quote 0
          • W Offline
            Wenike @sdetweil
            last edited by

            @sdetweil And to add on to this because it can’t be said enough. You don’t make changes to any file within the module folder itself, you have a config.sys file in the root folder of your MagicMirror install and that config.sys is what is modified. The module’s readme would give you what different variables can be set for it to work how you want it to.

            S 1 Reply Last reply Reply Quote 0
            • S Offline
              sdetweil @Wenike
              last edited by

              @Wenike config/config.js

              not config.sys
              and not in the root of the MagicMirror folder

              Sam

              How to add modules

              learning how to use browser developers window for css changes

              1 Reply Last reply Reply Quote 0
              • 1 / 1
              • 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