Read the statement by Michael Teeuw here.
config
-
@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
-
Please read and use this guide regarding posting code on the forum. Peace!
https://forum.magicmirror.builders/topic/4247/how-to-post-code-on-the-forum-for-absolute-beginners
-
@La7dan hi the mirror is up and running.the next problem is to have the weather and news modules changed to Gb
-
Cannot express this enough… if you have a working config make a copy of it before you make changes that way you can either
a. compare the working with the non-working config
or
b. switch back to the working config. -
@geo give me the name of the module and the location I will help you to make it works! thank you
-
@Mykle1 Thank you thats help a lot.
-
@cowboysdude hi thx for that when you say make a copy where is it saved to.cheers
-
@La7dan hi again firstly the mm no longer opens on boot.
i have the calander but with us hols.i would like uk weather and news.cheers -
@geo did you install pm2 ? and follow the instructions ?
https://github.com/MichMich/MagicMirror/wiki/Auto-Starting-MagicMirrorshow me your config so I could fix it. im online for an hour we could get it done
-
@La7dan if you use one of the installer scripts… listed on the MM github page, or mine listed here in the forums (see here https://forum.magicmirror.builders/topic/10171/anyone-want-to-try-updated-installer
it will setup pm2, and turn off the screensaver…as part of the mm install…
-
@geo where? its up to you…
copy it to the same folder as config.js.saved
or to another folder
or to a server disk,
or to a drop box , or google drivedepends on how ‘safe’ you want to be…
its just a copy command
cp config.js config.js.save -
@cowboysdude can it be copied to the config sample
-
@geo you do not want to copy over the sample…
-
@La7dan hi,mm not opening now on boot.
i have the cal and clock on uk time with us hols,would like the news to be uk,i dont have the weather.
thx -
try
pm2 start 0is the magicmirror working ?
-
@geo has it always not been opening on boot?
use this script to fix that
see here
https://forum.magicmirror.builders/topic/10907/new-script-to-install-fix-pm2-config-for-start-on-bootif the mm won’t start at all, that is a different problem
new on uk… which news source do you want? open their page, and scroll down to the bottom… thy usually list rss feeds
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