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.

    Adding new Module in Config

    Scheduled Pinned Locked Moved Solved Troubleshooting
    8 Posts 3 Posters 1.5k 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.
    • Mykle1M Offline
      Mykle1 Project Sponsor Module Developer @jakuk
      last edited by Mykle1

      @jakuk

      Try putting a comma after the curly bracket at the end of the news entry, like so:

      paths: {
          modules: 'modules',
          vendor: 'vendor'
        }
      }, 
      

      then your tado entry after that

      Create a working config
      How to add modules

      S 1 Reply Last reply Reply Quote 0
      • J Offline
        jakuk
        last edited by

        still nothing after adding the , to the bracket…

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

          @Mykle1 practice, line up the {} and {} vertically… when u create a {

          add a } in the same column on a new line, put stuff between them

          each module should end with },

          after the last module is the ] of the modules:[ list started at the top

          each module has AT LEAST

          {
              module:"???name???",
              config: {
              }
          },
          

          all config stuff for the module goes between the {} and close of the config: section

          Sam

          How to add modules

          learning how to use browser developers window for css changes

          1 Reply Last reply Reply Quote 0
          • J Offline
            jakuk
            last edited by

            Sorry does this help at all?

            Line 155 col 2 ‘destructuring binding’ is available in ES6 (use ‘esversion: 6’) or Mozilla JS extensions (use moz).
            Line 159 col 17 Expected an identifier and instead saw ‘MMM-Tado’.
            Line 160 col 19 Expected an identifier and instead saw ‘top_right’.
            Line 162 col 23 Expected an identifier and instead saw ‘*****’.
            Line 163 col 23 Expected an identifier and instead saw ‘*******’.
            Line 164 col 29 Expected an identifier and instead saw ‘300000’.
            Line 174 col 1 Unexpected ‘if’.
            Line 174 col 1 Expected an identifier and instead saw ‘if’ (a reserved word).
            Line 174 col 3 Missing semicolon.
            Line 174 col 34 Expected an assignment or function call and instead saw an expression.
            Line 174 col 35 Missing semicolon.

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

              @jakuk said in Adding new Module in Config:

              Line 159 col 17 Expected an identifier and instead saw ‘MMM-Tado’.

              so, lets look on the line BEFORE 159, cause there was a problem (it is NOT expecting to see )

              }    // < --- 
              what is this? 
                   {     // < mmm-tado module start
              
                       module: 'MMM-Tado',
                       position: 'middle',
                       config: {
                           username: '********',
                           password: '*******',
                           updateInterval: 300000
                       }
                   }  // < mm-tado end
              

              end of all modules is ], but I don’t see that either

              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