Read the statement by Michael Teeuw here.
config
-
-
totally totally out of my depth and do not understand why my config.js is empty and why the text editor is missing.sorry
-
@sdetweil hi i think i am back on track.you say to cut,is that the same as copy,because when i right click on your config all i see is copy.cheers
-
@geo cut/paste is the generic term for the operations of marking the source, and transferring it to the destination
copy is the non destructive form of cut
-
geo
this is what i have
/* Magic Mirror Config Sample * * By Michael Teeuw http://michaelteeuw.nl * MIT Licensed. */* * * By Michael Teeuw http://michaelteeuw.nl * MIT Licensed. * * For more information how you can configurate this file * See https://github.com/MichMich/MagicMirror#configuration/* * * 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, } }, ] };
-
@geo ok… does it work?
-
@sdetweil no
-
hi i thought i had managed to copy the config you sent but obviosly not as mirror still will not open ,cheers
-
I will make it works dont worry!
First reinstall:
1- Run this command:
sudo rm -R MagicMirror
(that will rmove the Magic mirror from your system.
2- Run this command:
bash -c “$(curl -sL https://raw.githubusercontent.com/MichMich/MagicMirror/master/installers/raspberry.sh)”
to install the new MagicMirror again.
3- make sure the config .js is there if not
run this command
nano MagicMirror/config/config.js
then copy between lines:/* 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: "US Holidays", position: "top_left", config: { calendars: [ { symbol: "calendar-check", url: "webcal://www.calendarlabs.com/ical-calendar/ics/76/US_Holidays.ics" } ] } }, { module: "compliments", position: "lower_third" }, { module: "currentweather", position: "top_right", config: { location: "New York", locationID: "", //ID from http://bulk.openweathermap.org/sample/city.list.json.gz; unzip the gz file and find your city appid: "YOUR_OPENWEATHER_API_KEY" } }, { module: "weatherforecast", position: "top_right", header: "Weather Forecast", config: { location: "New York", locationID: "5128581", //ID from http://bulk.openweathermap.org/sample/city.list.json.gz; unzip the gz file and find your city appid: "YOUR_OPENWEATHER_API_KEY" } }, { module: "newsfeed", position: "bottom_bar", config: { feeds: [ { title: "New York Times", url: "http://www.nytimes.com/services/xml/rss/nyt/HomePage.xml" } ], showSourceTitle: true, showPublishDate: true, broadcastNewsFeeds: true, broadcastNewsUpdates: true } }, ] }; /*************** DO NOT EDIT THE LINE BELOW ***************/ if (typeof module !== "undefined") {module.exports = config;}
end: dont copy the line above ( you can fin the file in config dirctory under the name of config.js.sample. Just save it as config.js without sample)
4- start your Magic Mirror
First: cd MagicMirror
(to navigate to the Magic Mirror dirctory)
second run : npm start
Check if it works!I will be helping you step by step even if you wants to add some modules.
Good luck!!!
-
@La7dan please use the updated installer
see https://forum.magicmirror.builders/topic/10171/anyone-want-to-try-updated-installer
it will be part of the next release