Read the statement by Michael Teeuw here.
config
-
Stick with it! Its a great learning experience. Just take your time and dont rush.
Here is how you post your config entries.
Open the MagicMirror/config/config.js file in a text editor. Highlight the entries in the config file. CTRL-C or copy command. Then come back to the forum and start a reply post. When you want to paste your code click on the little </> icon above the post. You will see a notification in the posting then that reads Code Here. Highlight that Code Here and choose CTRL-V or paste command. That will paste the code. Choose Submit! Done.
-
code_text ```/* 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: "alert", }, { module: "updatenotification", position: "top_bar" }, { module: "clock", position: "top_left" }, { module: "calendar", header: "GB Holidays", position: "top_left", config: { calendars: [ { symbol: "calendar-check", url: "webcal://www.calendar/embed?src=en.uk%23holiday%40group.v.calendar.google.com" } ] } }, { module: "compliments", position: "lower_third" }, { module: "currentweather", position: "top_right", config: location: "", locationID: "53.9576", //ID from http://bulk.openweathermap.org/sample/city.list.json.gz; unzip the gz file and find your city appid: "76b503a29647f3a01dd9ba1055daea6d", } }, { module: "weatherforecast", position: "top_right", header: "Weather Forecast", config: { location: "", , locationID: "53.9576", //ID from http://bulk.openweathermap.org/sample/city.list.json.gz; unzip the gz file and find your city appid: "76b503a29647f3a01dd9ba1055daea6d", } }, { module: "newsfeed", position: "bottom_bar", config: { feeds: [ { title: "BBC", url: "http://WWW.BBC.com/services/xml/rss/bbc/HomePage.xml", } ], showSourceTitle: true, showPublishDate: true, broadcastNewsFeeds: false, broadcastNewsUpdates: true, } }, ] }; /*************** DO NOT EDIT THE LINE BELOW ***************/ if (typeof module !== "undefined") {module.exports = config;}
-
you were missing a
{
afterconfig:
under the module currentweatherand also one to many
,
under the module weatherforecastCorrected code :
{ module: "currentweather", position: "top_right", config: { location: "", locationID: "53.9576", //ID from http://bulk.openweathermap.org/sample/city.list.json.gz; unzip the gz file and find your city appid: "76b503a29647f3a01dd9ba1055daea6d", } }, { module: "weatherforecast", position: "top_right", header: "Weather Forecast", config: { location: "", locationID: "53.9576", //ID from http://bulk.openweathermap.org/sample/city.list.json.gz; unzip the gz file and find your city appid: "76b503a29647f3a01dd9ba1055daea6d", } },
-
{ module: "currentweather", position: "top_right", config: location: "", locationID: "53.9576", //ID from http://bulk.openweathermap.org/sample/city.list.json.gz; unzip the gz file and find your city appid: "76b503a29647f3a01dd9ba1055daea6d", } },
should be
{ module: "currentweather", position: "top_right", config: { // < ---- missing open brace location: "", locationID: "53.9576", //ID from http://bulk.openweathermap.org/sample/city.list.json.gz; unzip the gz file and find your city appid: "76b503a29647f3a01dd9ba1055daea6d", } },
this
{ module: "weatherforecast", position: "top_right", header: "Weather Forecast", config: { location: "", , locationID: "53.9576", //ID from http://bulk.openweathermap.org/sample/city.list.json.gz; unzip the gz file and find your city appid: "76b503a29647f3a01dd9ba1055daea6d", } }
should be
{ module: "weatherforecast", position: "top_right", header: "Weather Forecast", config: { location: "", //, < --- remove extra comma locationID: "53.9576", //ID from http://bulk.openweathermap.org/sample/city.list.json.gz; unzip the gz file and find your city appid: "76b503a29647f3a01dd9ba1055daea6d", } }
-
hi and thx again.still no joy and i have poated the latest config```
code_text* * 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: "alert", }, { module: "updatenotification", position: "top_bar" }, { module: "clock", position: "top_left" }, { module: "calendar", header: "GB Holidays", position: "top_left", config: { calendars: [ { symbol: "calendar-check", url: "webcal://www.calendar/embed?src=en.uk%23holiday%40group.v.calendar.google.com" } ] } }, { module: "compliments", position: "lower_third" }, { module: "currentweather", position: "top_right", config: { location: "", locationID: "53.9576", //ID from http://bulk.openweathermap.org/sample/city.list.json.gz; unzip the gz file and find your city appid: "76b503a29647f3a01dd9ba1055daea6d", } }, { module: "weatherforecast", position: "top_right", header: "Weather Forecast", config: { location: "", locationID: "53.9576", //ID from http://bulk.openweathermap.org/sample/city.list.json.gz; unzip the gz file and find your city appid: "76b503a29647f3a01dd9ba1055daea6d", } } { module: "newsfeed", position: "bottom_bar", config: feeds: [ { title: "BBC", url: "http://WWW.BBC.com/services/xml/rss/bbc/HomePage.xml", } ], showSourceTitle: true, showPublishDate: true, broadcastNewsFeeds: false, broadcastNewsUpdates: true, } }, ] }; /*************** DO NOT EDIT THE LINE BELOW ***************/ if (typeof module !== "undefined") {module.exports = config;}
-
@geo missing the /* as the 1st line
-
@geo here is the fixed up config
run thru npm run config:check til no errors
missing comma and open {
/* * * 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: "alert", }, { module: "updatenotification", position: "top_bar" }, { module: "clock", position: "top_left" }, { module: "calendar", header: "GB Holidays", position: "top_left", config: { calendars: [ { symbol: "calendar-check", url: "webcal://www.calendar/embed?src=en.uk%23holiday%40group.v.calendar.google.com" } ] } }, { module: "compliments", position: "lower_third" }, { module: "currentweather", position: "top_right", config: { location: "", locationID: "53.9576", //ID from http://bulk.openweathermap.org/sample/city.list.json.gz; unzip the gz file and find your city appid: "76b503a29647f3a01dd9ba1055daea6d", } }, { module: "weatherforecast", position: "top_right", header: "Weather Forecast", config: { location: "", locationID: "53.9576", //ID from http://bulk.openweathermap.org/sample/city.list.json.gz; unzip the gz file and find your city appid: "76b503a29647f3a01dd9ba1055daea6d", } }, { module: "newsfeed", position: "bottom_bar", config: { feeds: [ { title: "BBC", url: "http://WWW.BBC.com/services/xml/rss/bbc/HomePage.xml", } ], showSourceTitle: true, showPublishDate: true, broadcastNewsFeeds: false, broadcastNewsUpdates: true, } }, ] }; /*************** DO NOT EDIT THE LINE BELOW ***************/ if (typeof module !== "undefined") {module.exports = config;}
-
npm ERR! A complete log of this run can be found in: npm ERR! /home/pi/.npm/_logs/2019-11-16T14_09_4 code_text ``
-
@geo needs to be done from inside the MagicMirror folder…
-
@sdetweil hi after another attempt i find the config is empty all that is available is the sample