Read the statement by Michael Teeuw here.
Mirror goes to black after adding MMM-CalendarWeek
-
-
[08.08.2021 15:39.45.829] [ERROR] WARNING! Could not load config file. Starting with default configuration. Error found: Error: Cannot find module 'valid-url' Require stack: - /home/pi/MagicMirror/modules/MMM-CalendarWeek/node_helper.js - /home/pi/MagicMirror/js/app.js - /home/pi/MagicMirror/js/electron.js - /home/pi/MagicMirror/node_modules/electron/dist/resources/default_app.asar/main.js
So I’m guessing this means the url isn’t valid, but I copied the secret .ical address right from google. What am I missing?
-
recheck your config you may mistakes" ],"
{ module: "MMM-CalendarWeek", position: "lower_third", config: { calendars:[ { url: "https://calendar.google.com/calendar/ical/secretGooglecode" } } ], },
-
@maddmurph the valid-url and request modules were removed from mm in 2.16 as request has a security issue and will not be fixed.
we’ve found quite a few modules that did not document the libraries they used, oops
so to fix near term
cd ~/MagicMirror npm install valid-url
the module is still broken and next mm install this will fail again
-
@sdetweil
I did that and now nothing works. I get this error[08.08.2021 19:02.42.973] [ERROR] WARNING! Could not find config file. Please create one. Starting with default configuration. [08.08.2021 19:02.42.976] [LOG] Loading module helpers ... [08.08.2021 19:02.42.977] [LOG] No helper found for module: alert. [08.08.2021 19:02.42.979] [LOG] Initializing new module helper ... [08.08.2021 19:02.42.980] [LOG] Module helper loaded: updatenotification [08.08.2021 19:02.42.982] [LOG] No helper found for module: clock. [08.08.2021 19:02.42.985] [LOG] No helper found for module: weather. [08.08.2021 19:02.42.987] [LOG] All module helpers loaded. [08.08.2021 19:02.42.989] [ERROR] App threw an error during load [08.08.2021 19:02.42.992] [ERROR] Error: ENOENT: no such file or directory, open at Object.openSync (fs.js:466:3)
Tried running npm install ENOENT but that’s apparently not a thing.
-
@djboob66 Weird, it’s right in the config.js on the mirror. Good catch though.
-
@maddmurph weird a dozen people have done this successfully…
also npm install request
-
In my case, in the error massage it said that also rrule-alt was missing, so I did a “npm install rrule-alt” to get it working again.
-
@zwirbel bingo. nice work.
-
@sdetweil looks like I had https set to True and that was causing an issue in addition to the other installs needed.
Thanks for your help!