Read the statement by Michael Teeuw here.
Config Error
-
@sdetweil i will do that in the future!
but how do i go into the MM folder before NPM?
and also literally change the Keys to the asterisks? -
@PHAGE-GOV you open a terminal window on the desktop ctrl-alt-T, and then cd MagicMirror
(just like you would do on Windows)or ssh into the pi from your windows pc, and THEN
cd MagicMirror
yes, when displaying on the forum, we request you hide sensitive info. (like to calendars, email, …)
if u paid for your apikey and gave it away to anyone that can cut/paste, you MIGHT be unhappy!google apikeys are based on usage… have a couple hundred people using YOUR apikey might cost you
-
@sdetweil yeah, so note to self for the future lol
so literally type “cd magic mirror” and that should fix it?
and also change my api key in the future, not in the config file, right? -
@PHAGE-GOV in the config file the apikey should be ok, only when u paste config to the forum should u blank it out…
linux is case sensitive, so its
cd MagicMirror
-
@sdetweil so i did the cd Magic Mirror and then ran pm2 start/mm.sh
and i got a pm2 error “script not found: home/pi/MagicMirror/mm.sh” -
@PHAGE-GOV use my pm2 setup script here
-
@sdetweil well i tried lol
[2020-05-20 17:25:02.499] [LOG] Starting MagicMirror: v2.11.0 [2020-05-20 17:25:02.506] [LOG] Loading config ... [2020-05-20 17:25:02.510] [ERROR] WARNING! Could not validate config file. Starting with default configuration. Please correct syntax errors at or above this line: /home/pi/MagicMirror/config/config.js:41 Welcome_message "string" ^^^^^^^^^^^^^^^ SyntaxError: Unexpected identifier at Module._compile (internal/modules/cjs/loader.js:722:23) at Object.Module._extensions..js (internal/modules/cjs/loader.js:798:10) at Module.load (internal/modules/cjs/loader.js:645:32) at Function.Module._load (internal/modules/cjs/loader.js:560:12) at Module.require (internal/modules/cjs/loader.js:685:19) at require (internal/modules/cjs/helpers.js:16:16) at loadConfig (/home/pi/MagicMirror/js/app.js:69:12) at App.start (/home/pi/MagicMirror/js/app.js:210:3) at Object.<anonymous> (/home/pi/MagicMirror/js/electron.js:115:7) at Module._compile (internal/modules/cjs/loader.js:786:30) [2020-05-20 17:25:02.511] [LOG] Loading module helpers ... [2020-05-20 17:25:02.555] [LOG] Initializing new module helper ... [2020-05-20 17:25:02.557] [LOG] Module helper loaded: updatenotification [2020-05-20 17:25:02.558] [LOG] No helper found for module: helloworld. [2020-05-20 17:25:02.559] [LOG] All module helpers loaded. [2020-05-20 17:25:02.680] [LOG] Starting server on port 8080 ... [2020-05-20 17:25:02.693] [LOG] Server started ... [2020-05-20 17:25:02.694] [LOG] Connecting socket for: updatenotification [2020-05-20 17:25:02.695] [LOG] Sockets connected & modules started ... [2020-05-20 17:25:02.785] [LOG] Launching application. [2020-05-20 17:25:24.052] [LOG] Shutting down server... [2020-05-20 17:25:24.053] [LOG] Stopping module helper: updatenotifica
-
@PHAGE-GOV said in Config Error:
/home/pi/MagicMirror/config/config.js:41
Welcome_message “string”
^^^^^^^^^^^^^^^SyntaxError: Unexpected identifier
-
@sdetweil would it be a good idea at this point to just delete and reinstall lol
-
@sdetweil wait so how do i fix that line? like what would you recomend?