Navigation

    MagicMirror Forum

    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • Donate
    • Discord
    MagicMirror² v2.15.0 is available! For more information about this release, check out this topic.

    My config.js file is messed up. someone want to help? :P

    Troubleshooting
    5
    5
    1839
    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.
    • K
      KMH0 last edited by yawns

      var config = {
              port: 8080,
              ipWhitelist: ["127.0.0.1", "::ffff:127.0.0.1", "::1"],
      
              language: 'en',
              timeFormat: 24,
              units: 'metric',
      
              modules: [
                      {
                              module: 'alert',
                      },
                      {
                              module: "updatenotification",
                              position: "top_bar"
                      },
                      {
                              module: 'clock',
                              position: 'top_left'
                      },
                      {
                              module: 'calendar',
                              header: 'US Holidays',
                              position: 'top_left',
                              config: {
                                      calendars: [
                                              {
                                                      symbol: 'calendar-check-o ',
                                                      url: 'webcal://www.calendarlabs.com/templates/ical/US-Holidays.ics'
                                              }
                                      ]
                              }
                      },
      
                      {
                               module: 'MMM-SoccerLiveScore',
                               position: 'top_left',
                               header: 'Live-Scores',
                               config: {
                               leagues: [17, 17, 17],
                               showNames: true,
                               showLogos: true,
                               displayTime: 60 * 1000,
                               showTables: true
      
                      },
                      {
                               module: 'MMM-Globe',
                               position: 'center',
                               config: {
                               style: 'europeDiscNat',
                               imageSize: 600,
                               ownImagePath:'',                         updateInterval: 10*60*1000
      
                              }
                      },
      
                      {
                               module: 'helloworld',
                               position: 'bottom_right', // This can be any of the regions.
                               config: {
                                                                                               // See 'Configuration options' for$
                               text: 'MIA by Karl M. Holst'
                                                              }
                      },
                      {
                              module: 'MMM-Carousel',
                              config: {
                              transitionInterval: 30000,
                              ignoreModules: ['clock', 'alert', 'currentweather'],
                              mode: 'slides',
                              slides: [
                                      ['calendar', 'MMM-Globe', 'weatherforecast', 'helloworld'],
                                      ['weatherforecast', 'MMM-Globe', 'MMM-SoccerLiveScore', 'helloworld'],
                                      ['MMM-iHaveBeenThere']
                              ],
      
                      },
      
                      {
                              module: 'MMM-ethereum',
                              position: 'top_right',
      			 config: {
                              updateInterval: 30000,
                              exchange: "bitfinex"
                      }
                },
                ]
      
      
              };
      
      /*************** DO NOT EDIT THE LINE BELOW ***************/
      if (typeof module !== 'undefined') {module.exports = config;}
      
      schlachtkreuzer6 1 Reply Last reply Reply Quote 0
      • schlachtkreuzer6
        schlachtkreuzer6 @KMH0 last edited by schlachtkreuzer6

        @KMH0 check for missing { } one is missing @ soccer live score

        {
                             module: 'MMM-SoccerLiveScore',
                             position: 'top_left',
                             header: 'Live-Scores',
                             config: {
                             leagues: [17, 17, 17],
                             showNames: true,
                             showLogos: true,
                             displayTime: 60 * 1000,
                             showTables: true
                             }
        }, 
        
        1 Reply Last reply Reply Quote 0
        • strawberry 3.141
          strawberry 3.141 Project Sponsor Module Developer last edited by strawberry 3.141

          same problem for the carousel module

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

            Hi KMHO,

            1. you have some missing indentations (how are these things called in english again??) making it hard to read. It’s advisable always to make the right indentations.
              Also, you didn’t include the whole config in code tags. Making it also harder to read.

            2. a good way to check your config is running

            npm run config:check
            

            from the MagicMirror folder. This gives you the lines of the errors and the errors in the config.
            You can then run e.g.

            sudo nano -c config/config.js
            

            The -c gives you the line numbers in nano.
            Always only check and correct the FIRST error shown.
            Then run the config:check again.
            The successive errors can easily be errors resulting from the first one.

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

              var config = {
                      port: 8080,
                      ipWhitelist: ["127.0.0.1", "::ffff:127.0.0.1", "::1"],
              
                      language: 'en',
                      timeFormat: 24,
                      units: 'metric',
              
                      modules: [
                              {
                                      module: 'alert',
                              },
                              {
                                      module: "updatenotification",
                                      position: "top_bar"
                              },
                              {
                                      module: 'clock',
                                      position: 'top_left'
                              },
                              {
                                      module: 'calendar',
                                      header: 'US Holidays',
                                      position: 'top_left',
                                      config: {
                                              calendars: [
                                                      {
                                                              symbol: 'calendar-check-o ',
                                                              url: 'webcal://www.calendarlabs.com/templates/ical/US-Holidays.ics'
                                                      }
                                              ]
                                      }
                              },
              
                              {
                                       module: 'MMM-SoccerLiveScore',
                                       position: 'top_left',
                                       header: 'Live-Scores',
                                       config: {
              								leagues: [17, 17, 17],
              								showNames: true,
              								showLogos: true,
              								displayTime: 60 * 1000,
              								showTables: true
              						}
                              },
                              {
                                       module: 'MMM-Globe',
                                       position: 'center',
                                       config: {
              								style: 'europeDiscNat',
              								imageSize: 600,
              								ownImagePath:'',
              								updateInterval: 10*60*1000
              
                                      }
                              },
              
                              {
                                       module: 'helloworld',
                                       position: 'bottom_right', // This can be any of the regions.
                                       config: {
              								text: 'MIA by Karl M. Holst'
                                      }
                              },
                              {
                                      module: 'MMM-Carousel',
                                      config: {
              								transitionInterval: 30000,
              								ignoreModules: ['clock', 'alert', 'currentweather'],
              								mode: 'slides',
              								slides: [
              										['calendar', 'MMM-Globe', 'weatherforecast', 'helloworld'],
              										['weatherforecast', 'MMM-Globe', 'MMM-SoccerLiveScore', 'helloworld'],
              										['MMM-iHaveBeenThere']
              								],
              						}
              
                              },
                              {
                                      module: 'MMM-ethereum',
                                      position: 'top_right',
              						config: {
              								updateInterval: 30000,
              								exchange: "bitfinex"
              						}
              				}
                        ]
              
              
                      };
              
              /*************** DO NOT EDIT THE LINE BELOW ***************/
              if (typeof module !== 'undefined') {module.exports = config;}
              
              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 Paul-Vincent Roll and Rodrigo Ramírez Norambuena.
              This forum is using NodeBB as its core | Contributors
              Contact | Privacy Policy