i updated the original post with the end part of the config file. I did rerun it and nothing changed and I don’t get any error or warning from http://jshint.com/
Read the statement by Michael Teeuw here.
Latest posts made by spikeboybebop
-
RE: adding google calander to Config
-
adding google calander to Config
So I tried to add google calendar to thr congif file but when I start MM I get a config error. So I search similar problems and found a solution. I tried http://jshint.com/ and fix the errors but I still get the error when I start up MM. BTW it was working before I edited the calander.
Here is the config with my email edited since I have it set to private
main();var config = { 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: 12, 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" }, { url: "https://calendar.google.com/calendar/ical/.com/private-3c6b3e476633ad/basic.ics" }, ], } }, { module: "compliments", position: "lower_third" }, { module: "currentweather", position: "top_right", config: { location: "Milwaukee,US", locationID: "5263045", appid: "5125ae8d38c755ac70a5f75421523d3d" } }, { module: "weatherforecast", position: "top_right", header: "Weather Forecast", config: { location: "Milwaukee,US", locationID: "5263045", appid: "5125ae8d38c755ac70a5f75421523d3d" } }, { 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 } }, ] }; /*************** DO NOT EDIT THE LINE BELOW ***************/ if (typeof module !== "undefined") {module.exports = config;}
-
RE: Electron failed to install correctly
Got it to work! I think updating the node is what worked as it was still in version 6. when I did npm install afterwords it added the electron file. I could have sworn I did that before and it didn’t work so maybe it was on my end or the updated node made the difference.
MM seems to work except for the weather part which initially just showed a thermostat but now is completely missing, everything else is working. shouldn’t be too difficult to figure out that issuer.
Thanks for all the help and speedy response!
-
RE: Electron failed to install correctly
So this doesn’t seem very clear. Ive deleted it and try to start magic mirror and I get a black screen. Ive tried to redo the installing of the MM program and nothing changes and no new electron file.
Ive tried a bunch of different commands for the electron issue from other post. can you be more specific about what I need to install after getting rid of electron?
also forgot running raspberry pi 3 and the most current OS that is fully up to date.
-
Electron failed to install correctly
this is the second time i ran into this problem. I couldn’t find anything online for help so I thought I reformat and start over from scratch. but it happen again so it seems like theirs a general error when it comes to the electron file. I followed the step by step guide to installing the magic mirror but when do the final step and start the program I get the following.
magicmirror@2.1.2 start /home/pi/MagicMirror
sh run-start.sh/home/pi/MagicMirror/node_modules/electron/index.js:9
throw new Error(‘Electron failed to install correctly, please delete node_modules/electron and try installing again’)
^Error: Electron failed to install correctly, please delete node_modules/electron and try installing again
at Object. (/home/pi/MagicMirror/node_modules/electron/index.js:9:9)
at Module._compile (module.js:570:32)
at Object.Module._extensions…js (module.js:579:10)
at Module.load (module.js:487:32)
at tryModuleLoad (module.js:446:12)
at Function.Module._load (module.js:438:3)
at Module.require (module.js:497:17)
at require (internal/module.js:20:19)
at Object. (/home/pi/MagicMirror/node_modules/electron/cli.js:3:16)
at Module._compile (module.js:570:32)npm ERR! Linux 4.9.45-v7+
npm ERR! argv “/usr/bin/nodejs” “/usr/bin/npm” “start”
npm ERR! node v6.11.2
npm ERR! npm v3.10.10
npm ERR! code ELIFECYCLE
npm ERR! magicmirror@2.1.2 start:sh run-start.sh
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the magicmirror@2.1.2 start script ‘sh run-start.sh’.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the magicmirror package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! sh run-start.sh
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs magicmirror
npm ERR! Or if that isn’t available, you can get their info via:
npm ERR! npm owner ls magicmirror
npm ERR! There is likely additional logging output above.npm ERR! Please include the following file with any support request:
npm ERR! /home/pi/MagicMirror/npm-debug.logany help would be appropriated and if provided in a simple form because this is the first time ive done anything with a raspberry pi and im not familiar with it.