• 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 file issue

Scheduled Pinned Locked Moved Unsolved Troubleshooting
2 Posts 2 Posters 756 Views 2 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.
  • O Offline
    oj96
    last edited by Jul 6, 2018, 3:41 PM

    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
    }
    },
    ]

    };

    1 Reply Last reply Reply Quote 0
    • S Offline
      sdetweil
      last edited by Jul 6, 2018, 5:39 PM

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

      Sam

      How to add modules

      learning how to use browser developers window for css changes

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