• Recent
  • Tags
  • Unsolved
  • Solved
  • MagicMirror² Repository
  • Documentation
  • 3rd-Party-Modules
  • Donate
  • Discord
  • Register
  • Login
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.

Config.fs

Scheduled Pinned Locked Moved Troubleshooting
troubleshootconfigconfig.jsconfiguration
22 Posts 4 Posters 6.7k Views 4 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
    scoller @Guest
    last edited by Jan 3, 2019, 10:57 AM

    @sean thank you

    1 Reply Last reply Reply Quote 0
    • S Offline
      scoller
      last edited by Jan 3, 2019, 11:01 AM

      @sean how do i know where the comma should be? I know im stupid :)

      ? 1 Reply Last reply Jan 3, 2019, 11:03 AM Reply Quote 0
      • L Offline
        lavolp3 Module Developer @Guest
        last edited by Jan 3, 2019, 11:03 AM

        @sean said in Config.fs:

        comma missed.

        A classic!

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

        1 Reply Last reply Reply Quote 0
        • ? Offline
          A Former User @scoller
          last edited by A Former User Jan 3, 2019, 11:06 AM Jan 3, 2019, 11:03 AM

          @scoller
          In {} (object) and [] (array), there could be several items. Each item should be separated by comma,. Only last item could omit ,.
          By example

          someObject: {
            someProperty: someValue ,
            anotherProperty: anotherValue ,
            lastProperty: lastValue
          }, //< - this object also could be an element of other list
          someArray: [
            someElement, 
            otherElement, 
            lastElement //< - you can omit comma here.
          ] // < - You can omit last comma of list.
          
          S 3 Replies Last reply Jan 3, 2019, 11:04 AM Reply Quote 0
          • S Offline
            scoller @Guest
            last edited by Jan 3, 2019, 11:04 AM

            @sean so you mean like {nothing,nothing}?

            ? 1 Reply Last reply Jan 3, 2019, 11:06 AM Reply Quote 0
            • ? Offline
              A Former User @scoller
              last edited by Jan 3, 2019, 11:06 AM

              @scoller right.

              S 1 Reply Last reply Jan 3, 2019, 11:18 AM Reply Quote 0
              • S Offline
                scoller @Guest
                last edited by Jan 3, 2019, 11:07 AM

                @sean but i mean where is the brackets where the comma should be. For an example high up or low down in the code

                ? 2 Replies Last reply Jan 3, 2019, 11:10 AM Reply Quote 0
                • ? Offline
                  A Former User @scoller
                  last edited by A Former User Jan 3, 2019, 11:14 AM Jan 3, 2019, 11:10 AM

                  @scoller Well, that is a just grammar of JavaScript. So…
                  Hmmm…
                  Just remember these.

                  • Every bracket([], {}) should be closed somewhere.
                  • Nested brackets should be matched their opening and closing.
                  • All Items should be separated with comma
                  • All text string should be quoted by quotation mark (`, " or ')
                  • true/false (boolean value) and number should not be quoted.

                  These are common rules for config.js

                  S 1 Reply Last reply Jan 3, 2019, 11:32 AM Reply Quote 0
                  • S Offline
                    scoller @Guest
                    last edited by Jan 3, 2019, 11:15 AM

                    @sean thank’s for the help will try that

                    1 Reply Last reply Reply Quote 0
                    • ? Offline
                      A Former User @scoller
                      last edited by Jan 3, 2019, 11:15 AM

                      @scoller
                      You have two locationID: "2726470" in your code. both should be modified.

                      1 Reply Last reply Reply Quote 0
                      • 1
                      • 2
                      • 3
                      • 1 / 3
                      1 / 3
                      • First post
                        9/22
                        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