MagicMirror² v2.13.0 is available! For more information about this release, check out this topic.

config file issue



  • when magic mirror loads it displays config file issue, when i remove the wunderlist code it stops and run fine. can anyone point out the issue
    please```
    //modules: [
    {
    module: ‘MMM-Wunderlist’,
    position: ‘top_right’, // This can be any of the regions. Best results in left or right regions.
    header: ‘UPCOMING REMINDERS’, // This is optional
    config: {
    clientID: ‘xxxxxxxxxxxxxx’,
    accessToken: ‘xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx’
    lists: [ “inbox”],
    interval: 60
    fade: true
    }
    },
    ]
    modules: [
    {
    module: “alert”,
    },
    {
    module: “updatenotification”,
    position: “top_bar”
    },
    {
    module: “clock”,
    position: “top_left”
    },
    {
    module: “calendar”,
    header: “UK Holidays”,
    position: “top_left”,
    config: {
    calendars: [
    {
    symbol: "calendar-check-o ",
    url: “webcal://www.calendarlabs.com/templates/ical/UK-Holidays.ics”
    }
    ]
    }
    },
    {
    module: “compliments”,
    position: “lower_third”
    },
    {
    module: “currentweather”,
    position: “top_right”,
    config: {
    location: “New York”,
    locationID: “”, //ID from http://www.openweathermap.org/help/city_list.txt
    appid: “YOUR_OPENWEATHER_API_KEY”
    }
    },
    {
    module: “weatherforecast”,
    position: “top_right”,
    header: “Weather Forecast”,
    config: {
    location: “New York”,
    locationID: “5128581”, //ID from http://www.openweathermap.org/help/city_list.txt
    appid: “YOUR_OPENWEATHER_API_KEY”
    }
    },
    {
    module: “newsfeed”,
    position: “bottom_bar”,
    config: {
    feeds: [
    {
    title: “Threatpost”,
    url: “https://threatpost.com/feed/
    }
    ],
    showSourceTitle: true,
    showPublishDate: true
    }
    },
    ]

    };



  • @oj96 said in config file issue:

    accessToken: ‘xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx’
    lists: [ “inbox”],
    interval: 60
    fade: true
    }
    },
    ]
    modules: [

    well, a bunch of problems…

    1 you have the wrong single and double quotes here… do NOT use a word processing editor… only a text editor… (nano or gedit or vi)…
    2. missing comma after accesstoken line and interval line

    and u have two modules: [ blocks…

    quick way to test your config for syntax… copy/paste it all to jslint.com
    check long lines, single quotes, and whitespace mess at the bottom, then press jslint

    then copy/paste it back to the config.js file.


Log in to reply