• 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.

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

Scheduled Pinned Locked Moved Troubleshooting
5 Posts 5 Posters 2.4k Views 5 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.
  • K Offline
    KMH0
    last edited by yawns Sep 20, 2017, 9:10 AM Sep 17, 2017, 4:06 PM

    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;}
    
    S 1 Reply Last reply Sep 17, 2017, 5:00 PM Reply Quote 0
    • S Offline
      schlachtkreuzer6 @KMH0
      last edited by schlachtkreuzer6 Sep 17, 2017, 5:02 PM Sep 17, 2017, 5:00 PM

      @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
      • S Offline
        strawberry 3.141 Project Sponsor Module Developer
        last edited by strawberry 3.141 Sep 17, 2017, 5:21 PM Sep 17, 2017, 5:17 PM

        same problem for the carousel module

        Please create a github issue if you need help, so I can keep track

        1 Reply Last reply Reply Quote 0
        • L Offline
          lavolp3 Module Developer
          last edited by Sep 20, 2017, 8:00 AM

          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.

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

          1 Reply Last reply Reply Quote 0
          • Y Offline
            yawns Moderator
            last edited by Sep 20, 2017, 9:15 AM

            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
            1 / 1
            • First post
              1/5
              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