Read the statement by Michael Teeuw here.
config.js help
-
Guys and Girls can you help my config has gone to Well you know, can you help me sort this as i just cant see whats up i have removed the code for all the keys so its just empty “” thanks in advance
/* Magic Mirror Config Sample * * By Michael Teeuw http://michaelteeuw.nl * MIT Licensed. * * For more information how you can configurate this file * See https://github.com/MichMich/MagicMirror#configuration * */ var config = { address: "localhost", // Address to listen on, can be: // - "localhost", "127.0.0.1", "::1" to listen on loopback interface // - another specific IPv4/6 to listen on a specific interface // - "", "0.0.0.0", "::" to listen on any interface // Default, when address config is left out, is "localhost" port: 8080, ipWhitelist: ["127.0.0.1", "::ffff:127.0.0.1", "::1"], // Set [] to allow all IP addresses // or add a specific IPv4 of 192.168.1.5 : // ["127.0.0.1", "::ffff:127.0.0.1", "::1", "::ffff:192.168.1.5"], // or IPv4 range of 192.168.3.0 --> 192.168.3.15 use CIDR format : // ["127.0.0.1", "::ffff:127.0.0.1", "::1", "::ffff:192.168.3.0/28"], language: "en", timeFormat: 24, units: "metric", modules: [ { module: "MMM-Remote-Control-Repository", } }, { module: "alert", } }, { module: "MMM-Remote-Control", position: "center", } }, { module: "clock", position: "top_left" } }, { module: "mmm-hue-lights", position: "bottom_right", config: { bridgeIp: "192.168.1.23", user: "", updateInterval: "1000", hideOff: "false", displayMode: "groups", displayType: "list", minimalList: "true", coloredList: "true", hideFilter: ["home-away"], alignment: "right", } }, { module: "compliments", position: "lower_third", }, { module: "MMM-NOAA3", position: "top_right", config: { provider: "darksky", apiKey: "", airKey: "", css: "NOAA3", updateInterval: 15, userlat: "51.806460", userlon: "-0.778230" } }, { module: "calendar", header: "Calendar", position: "top_left", config: { timeFormat:"absolute", titleReplace: {"United Kingdom:" : ""}, urgency: 0, getRelative: 6, fullDayEventDateFormat: "D MMMM", dateFormat: "D MMMM - H:mm:ss", fetchInterval: 4000000, colored: true, coloredSymbolOnly: true, maximumEntries: 9, showEnd: false, Calendars: [ { symbol: "calendar-check-o ", url: "https://www.officeholidays.com/ics/ics_country_code.php?iso=GB", } }, { module: "mmm-nest-status", position: "bottom_left", // pick whichever position you want config: { token: "", displayMode: "all", displayType: "list", thermostatsToShow: "all", units: "metric", updateInterval: "50000", thermostatSize: "small", alignment: "left", // ... and whatever else configuration options you want to use } }, { module: "MMM-SystemStats", position: "Top_Center", updateInterval: 5000, align: "right", units: "metric", label: "text" } }, { module: "newsfeed", position: "bottom_bar", config: { feeds: [ { title: "BBC NEWS UK", url: "http://feeds.bbci.co.uk/news/uk/rss.xml" } ], showSourceTitle: true, showPublishDate: true } }, ] }; /*************** DO NOT EDIT THE LINE BELOW ***************/ if (typeof module !== "undefined") {module.exports = config;} -
You are missing config lines and have to many
}-bracketsI would just suggest that you rename that config.js file to config.js.bak and start over from scratch.
-
Try this, but you really need to clean up ;) :P
/* Magic Mirror Config Sample * * By Michael Teeuw http://michaelteeuw.nl * MIT Licensed. * * For more information how you can configurate this file * See https://github.com/MichMich/MagicMirror#configuration * */ var config = { address: "localhost", // Address to listen on, can be: // - "localhost", "127.0.0.1", "::1" to listen on loopback interface // - another specific IPv4/6 to listen on a specific interface // - "", "0.0.0.0", "::" to listen on any interface // Default, when address config is left out, is "localhost" port: 8080, ipWhitelist: ["127.0.0.1", "::ffff:127.0.0.1", "::1"], // Set [] to allow all IP addresses // or add a specific IPv4 of 192.168.1.5 : // ["127.0.0.1", "::ffff:127.0.0.1", "::1", "::ffff:192.168.1.5"], // or IPv4 range of 192.168.3.0 --> 192.168.3.15 use CIDR format : // ["127.0.0.1", "::ffff:127.0.0.1", "::1", "::ffff:192.168.3.0/28"], language: "en", timeFormat: 24, units: "metric", modules: [ { module: "MMM-Remote-Control-Repository", }, { module: "alert", }, { module: "MMM-Remote-Control", position: "center", }, { module: "clock", position: "top_left" }, { module: "mmm-hue-lights", position: "bottom_right", config: { bridgeIp: "192.168.1.23", user: "", updateInterval: "1000", hideOff: "false", displayMode: "groups", displayType: "list", minimalList: "true", coloredList: "true", hideFilter: ["home-away"], alignment: "right" } }, { module: "compliments", position: "lower_third", }, { module: "MMM-NOAA3", position: "top_right", config: { provider: "darksky", apiKey: "", airKey: "", css: "NOAA3", updateInterval: 15, userlat: "51.806460", userlon: "-0.778230" } }, { module: "calendar", header: "Calendar", position: "top_left", config: { timeFormat:"absolute", titleReplace: {"United Kingdom:" : ""}, urgency: 0, getRelative: 6, fullDayEventDateFormat: "D MMMM", dateFormat: "D MMMM - H:mm:ss", fetchInterval: 4000000, colored: true, coloredSymbolOnly: true, maximumEntries: 9, showEnd: false, Calendars: [ { symbol: "calendar-check-o ", url: "https://www.officeholidays.com/ics/ics_country_code.php?iso=GB", } ] } }, { module: "mmm-nest-status", position: "bottom_left", // pick whichever position you want config: { token: "", displayMode: "all", displayType: "list", thermostatsToShow: "all", units: "metric", updateInterval: "50000", thermostatSize: "small", alignment: "left", // ... and whatever else configuration options you want to use } }, { module: "MMM-SystemStats", position: "Top_Center", updateInterval: 5000, align: "right", units: "metric", label: "text" }, { module: "newsfeed", position: "bottom_bar", config: { feeds: [ { title: "BBC NEWS UK", url: "http://feeds.bbci.co.uk/news/uk/rss.xml" } ], }, showSourceTitle: true, showPublishDate: true } ] }; /*************** DO NOT EDIT THE LINE BELOW ***************/ if (typeof module !== "undefined") {module.exports = config;}For the future u can put in your code here: https://jshint.com
Just to analyze what maybe went wrong
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login