A New Chapter for MagicMirror: The Community Takes the Lead
Read the statement by Michael Teeuw here.
Read the statement by Michael Teeuw here.
My config.js file is messed up. someone want to help? :P
-
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;}
-
@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 } },
-
same problem for the carousel module
-
Hi KMHO,
-
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. -
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. -
-
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;}