@sdetweil npm ERR! missing script: start
npm ERR! A complete log of this run can be found in:
npm ERR! /home/pi/.npm/_logs/2021-12-14T23_05_21_577Z-debug.log
@sdetweil npm ERR! missing script: start
npm ERR! A complete log of this run can be found in:
npm ERR! /home/pi/.npm/_logs/2021-12-14T23_05_21_577Z-debug.log
@sdetweil ```
pi@raspberrypi:~/MagicMirror/modules/MMM-CalendarExt $ pm2 logs --lines=50 MagicMirror
[TAILING] Tailing last 50 lines for [MagicMirror] process (change the value with --lines option)
/home/pi/.pm2/logs/MagicMirror-error.log last 50 lines:
0|MagicMir | /home/pi/MagicMirror/node_modules/electron/dist/electron exited with signal SIGINT
/home/pi/.pm2/logs/MagicMirror-out.log last 50 lines:
0|MagicMir | > magicmirror@2.16.0 start /home/pi/MagicMirror
0|MagicMir | > ./run-start.sh $1
0|MagicMir |
0|MagicMir | [14.12.2021 16:56.24.531] [LOG] Starting MagicMirror: v2.16.0
0|MagicMir | [14.12.2021 16:56.24.538] [LOG] Loading config …
0|MagicMir | [14.12.2021 16:56.24.545] [LOG] Loading module helpers …
0|MagicMir | [14.12.2021 16:56.24.547] [LOG] No helper found for module: alert.
0|MagicMir | [14.12.2021 16:56.25.838] [LOG] Initializing new module helper …
0|MagicMir | [14.12.2021 16:56.25.840] [LOG] Module helper loaded: MMM-GoogleTasks
0|MagicMir | [14.12.2021 16:56.25.978] [LOG] Initializing new module helper …
0|MagicMir | [14.12.2021 16:56.25.978] [LOG] Module helper loaded: updatenotification
0|MagicMir | [14.12.2021 16:56.25.980] [LOG] No helper found for module: weather.
0|MagicMir | [14.12.2021 16:56.25.981] [LOG] No helper found for module: clock.
0|MagicMir | [14.12.2021 16:56.25.982] [LOG] No helper found for module: MMM-Carousel.
0|MagicMir | [14.12.2021 16:56.25.983] [LOG] No helper found for module: MMM-RAIN-MAP.
0|MagicMir | [14.12.2021 16:56.26.361] [LOG] Initializing new module helper …
0|MagicMir | [14.12.2021 16:56.26.362] [LOG] Module helper loaded: MMM-PaprikaMenu
0|MagicMir | [14.12.2021 16:56.26.462] [LOG] Initializing new module helper …
0|MagicMir | [14.12.2021 16:56.26.463] [LOG] Module helper loaded: calendar
0|MagicMir | [14.12.2021 16:56.26.464] [LOG] No helper found for module: calendar_monthly.
0|MagicMir | [14.12.2021 16:56.26.465] [LOG] No helper found for module: helloworld.
0|MagicMir | [14.12.2021 16:56.26.804] [LOG] Initializing new module helper …
0|MagicMir | [14.12.2021 16:56.26.805] [LOG] Module helper loaded: MMM-CalendarExt
0|MagicMir | [14.12.2021 16:56.26.808] [LOG] Initializing new module helper …
0|MagicMir | [14.12.2021 16:56.26.809] [LOG] Module helper loaded: MMM-ip
0|MagicMir | [14.12.2021 16:56.26.809] [LOG] All module helpers loaded.
0|MagicMir | [14.12.2021 16:56.26.921] [LOG] Starting server on port 8080 …
0|MagicMir | [14.12.2021 16:56.26.936] [LOG] Server started …
0|MagicMir | [14.12.2021 16:56.26.937] [LOG] Connecting socket for: MMM-GoogleTasks
0|MagicMir | [14.12.2021 16:56.26.938] [LOG] Starting node helper for: MMM-GoogleTasks
0|MagicMir | [14.12.2021 16:56.26.939] [LOG] Connecting socket for: updatenotification
0|MagicMir | [14.12.2021 16:56.26.940] [LOG] Connecting socket for: MMM-PaprikaMenu
0|MagicMir | [14.12.2021 16:56.26.940] [LOG] Starting node_helper for module [MMM-PaprikaMenu]
0|MagicMir | [14.12.2021 16:56.26.941] [LOG] Connecting socket for: calendar
0|MagicMir | [14.12.2021 16:56.26.942] [LOG] Starting node helper for: calendar
0|MagicMir | [14.12.2021 16:56.26.943] [LOG] Connecting socket for: MMM-CalendarExt
0|MagicMir | [14.12.2021 16:56.26.944] [LOG] Connecting socket for: MMM-ip
0|MagicMir | [14.12.2021 16:56.26.945] [LOG] Starting module helper: MMM-ip
0|MagicMir | [14.12.2021 16:56.26.945] [LOG] Available network interface types: lo, wlan0
0|MagicMir | [14.12.2021 16:56.26.946] [LOG] Sockets connected & modules started …
0|MagicMir | [14.12.2021 16:56.27.226] [LOG] Launching application.
0|MagicMir | [14.12.2021 16:56.29.659] [LOG] Create new calendarfetcher for url: https://calendar.google.com/calendar/ical/pastormike%40htni.org/private-34995d14cf5e15efc8bd68f680c508e3/basic.ics - Interval: 50000
0|MagicMir | [14.12.2021 16:56.29.715] [LOG] Create new calendarfetcher for url: http://outlook.office365.com/owa/calendar/f2033a09d6504d21833241fb44df8c3c@dxc.com/a53b201c85bf4825a9290ce3ec96a8b2457585490405428856/calendar.ics - Interval: 50000
0|MagicMir | [14.12.2021 16:56.29.857] [LOG] Create new calendarfetcher for url: https://calendar.google.com/calendar/ical/pastorcharlotte%40htni.org/private-448bd9e0646a570df025700cdd3f7155/basic.ics - Interval: 50000
0|MagicMir | [14.12.2021 16:56.30.213] [INFO] Calendar-Fetcher: Broadcasting 6 events.
0|MagicMir | [14.12.2021 16:56.30.556] [INFO] Calendar-Fetcher: Broadcasting 2 events.
0|MagicMir | [14.12.2021 16:56.30.678] [LOG] MMM-PaprikaMenu: Week starts: 2021-12-13, next week starts: 2021-12-20
0|MagicMir | [14.12.2021 16:56.30.699] [LOG] MMM-PaprikaMenu: Waiting on 0 Paprika recipe calls.
0|MagicMir | [14.12.2021 16:56.30.700] [LOG] MMM-PaprikaMenu: All recipe queries returned.
0|MagicMir | [14.12.2021 16:56.39.598] [INFO] Calendar-Fetcher: Broadcasting 10 events.
@pastormingle ```
pi@raspberrypi:~/MagicMirror/modules/MMM-CalendarExt $ pm2 logs --lines=50 MagicMirror
[TAILING] Tailing last 50 lines for [MagicMirror] process (change the value with --lines option)
/home/pi/.pm2/logs/MagicMirror-error.log last 50 lines:
0|MagicMir | -
0|MagicMir | [14.12.2021 16:02.14.185] [ERROR] App threw an error during load
0|MagicMir | [14.12.2021 16:02.14.187] [ERROR] Error: Cannot find module ‘valid-url’
0|MagicMir | Require stack:
0|MagicMir | - /home/pi/MagicMirror/modules/MMM-CalendarExt/node_helper.js
0|MagicMir | - /home/pi/MagicMirror/js/app.js
0|MagicMir | - /home/pi/MagicMirror/js/electron.js
0|MagicMir | - /home/pi/MagicMirror/node_modules/electron/dist/resources/default_app.asar/main.js
0|MagicMir | -
0|MagicMir | at Module._resolveFilename (internal/modules/cjs/loader.js:972:15)
0|MagicMir | at Function.n._resolveFilename (electron/js2c/browser_init.js:249:921)
0|MagicMir | at Function.Module._resolveFilename (/home/pi/MagicMirror/node_modules/module-alias/index.js:49:29)
0|MagicMir | at Module._load (internal/modules/cjs/loader.js:848:27)
0|MagicMir | at Function.f._load (electron/js2c/asar_bundle.js:5:12633)
0|MagicMir | at Module.require (internal/modules/cjs/loader.js:1032:19)
0|MagicMir | at require (internal/modules/cjs/helpers.js:72:18)
0|MagicMir | at Object. (/home/pi/MagicMirror/modules/MMM-CalendarExt/node_helper.js:3:18)
0|MagicMir | at Module._compile (internal/modules/cjs/loader.js:1152:30)
0|MagicMir | at Object.Module._extensions…js (internal/modules/cjs/loader.js:1173:10)
0|MagicMir | [14.12.2021 16:02.14.197] [ERROR] Whoops! There was an uncaught exception…
0|MagicMir | [14.12.2021 16:02.14.203] [ERROR] Error: Cannot find module ‘valid-url’
0|MagicMir | Require stack:
0|MagicMir | - /home/pi/MagicMirror/modules/MMM-CalendarExt/node_helper.js
0|MagicMir | - /home/pi/MagicMirror/js/app.js
0|MagicMir | - /home/pi/MagicMirror/js/electron.js
0|MagicMir | - /home/pi/MagicMirror/node_modules/electron/dist/resources/default_app.asar/main.js
0|MagicMir | -
0|MagicMir | at Module._resolveFilename (internal/modules/cjs/loader.js:972:15)
0|MagicMir | at Function.n._resolveFilename (electron/js2c/browser_init.js:249:921)
0|MagicMir | at Function.Module._resolveFilename (/home/pi/MagicMirror/node_modules/module-alias/index.js:49:29)
0|MagicMir | at Module._load (internal/modules/cjs/loader.js:848:27)
0|MagicMir | at Function.f._load (electron/js2c/asar_bundle.js:5:12633)
0|MagicMir | at Module.require (internal/modules/cjs/loader.js:1032:19)
0|MagicMir | at require (internal/modules/cjs/helpers.js:72:18)
0|MagicMir | at Object. (/home/pi/MagicMirror/modules/MMM-CalendarExt/node_helper.js:3:18)
0|MagicMir | at Module._compile (internal/modules/cjs/loader.js:1152:30)
0|MagicMir | at Object.Module._extensions…js (internal/modules/cjs/loader.js:1173:10) {
0|MagicMir | code: ‘MODULE_NOT_FOUND’,
0|MagicMir | requireStack: [
0|MagicMir | ‘/home/pi/MagicMirror/modules/MMM-CalendarExt/node_helper.js’,
0|MagicMir | ‘/home/pi/MagicMirror/js/app.js’,
0|MagicMir | ‘/home/pi/MagicMirror/js/electron.js’,
0|MagicMir | ‘/home/pi/MagicMirror/node_modules/electron/dist/resources/default_app.asar/main.js’,
0|MagicMir | undefined
@sdetweil ```
pi@raspberrypi:~/MagicMirror/modules/MMM-CalendarExt $ npm install valid-url --save
@sdetweil ```
^C
pi@raspberrypi:~ $ npm install valid-url --save
npm WARN tsutils@3.21.0 requires a peer of typescript@>=2.8.0 || >= 3.2.0-dev || >= 3.3.0-dev || >= 3.4.0-dev || >= 3.5.0-dev || >= 3.6.0-dev || >= 3.6.0-beta || >= 3.7.0-dev || >= 3.7.0-beta but none is installed. You must install peer dependencies yourself.
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@2.3.2 (node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@2.3.2: wanted {“os”:“darwin”,“arch”:“any”} (current: {“os”:“linux”,“arch”:“arm”})
112 packages are looking for funding
run npm fund
for details
found 22 vulnerabilities (19 moderate, 3 high)
run npm audit fix
to fix them, or npm audit
for details
pi@raspberrypi:~ $ cd MagicMirror
pi@raspberrypi:~/MagicMirror $ cd modules
pi@raspberrypi:~/MagicMirror/modules $ dir
Archive calendar_monthly default MMM-CalendarExt MMM-CalendarExtMinimonth MMM-CalendarExtTimeline MMM-Carousel MMM-GoogleTasks MMM-ip MMM-PaprikaMenu MMM-RAIN-MAP MMM-RAIN-MAP-L MMM-RAIN-MAPold
pi@raspberrypi:~/MagicMirror/modules $ npm install valid-url --save
npm WARN tsutils@3.21.0 requires a peer of typescript@>=2.8.0 || >= 3.2.0-dev || >= 3.3.0-dev || >= 3.4.0-dev || >= 3.5.0-dev || >= 3.6.0-dev || >= 3.6.0-beta || >= 3.7.0-dev || >= 3.7.0-beta but none is installed. You must install peer dependencies yourself.
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@2.3.2 (node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@2.3.2: wanted {“os”:“darwin”,“arch”:“any”} (current: {“os”:“linux”,“arch”:“arm”})
112 packages are looking for funding
run npm fund
for details
found 20 vulnerabilities (18 moderate, 2 high)
run npm audit fix
to fix them, or npm audit
for details
pi@raspberrypi:~/MagicMirror/modules $
@sdetweil the module name is valid-url… i though it’s looking for a URL… http://url…
@sdetweil ```
pi@raspberrypi:~ $ pm2 logs --lines=50 MagicMirror
[TAILING] Tailing last 50 lines for [MagicMirror] process (change the value with --lines option)
/home/pi/.pm2/logs/MagicMirror-error.log last 50 lines:
0|MagicMir | - /home/pi/MagicMirror/js/electron.js
0|MagicMir | - /home/pi/MagicMirror/node_modules/electron/dist/resources/default_app.asar/main.js
0|MagicMir | -
0|MagicMir | [14.12.2021 16:02.14.185] [ERROR] App threw an error during load
0|MagicMir | [14.12.2021 16:02.14.187] [ERROR] Error: Cannot find module ‘valid-url’
0|MagicMir | Require stack:
0|MagicMir | - /home/pi/MagicMirror/modules/MMM-CalendarExt/node_helper.js
0|MagicMir | - /home/pi/MagicMirror/js/app.js
0|MagicMir | - /home/pi/MagicMirror/js/electron.js
0|MagicMir | - /home/pi/MagicMirror/node_modules/electron/dist/resources/default_app.asar/main.js
0|MagicMir | -
0|MagicMir | at Module._resolveFilename (internal/modules/cjs/loader.js:972:15)
0|MagicMir | at Function.n._resolveFilename (electron/js2c/browser_init.js:249:921)
0|MagicMir | at Function.Module._resolveFilename (/home/pi/MagicMirror/node_modules/module-alias/index.js:49:29)
0|MagicMir | at Module._load (internal/modules/cjs/loader.js:848:27)
0|MagicMir | at Function.f._load (electron/js2c/asar_bundle.js:5:12633)
0|MagicMir | at Module.require (internal/modules/cjs/loader.js:1032:19)
0|MagicMir | at require (internal/modules/cjs/helpers.js:72:18)
0|MagicMir | at Object. (/home/pi/MagicMirror/modules/MMM-CalendarExt/node_helper.js:3:18)
0|MagicMir | at Module._compile (internal/modules/cjs/loader.js:1152:30)
0|MagicMir | at Object.Module._extensions…js (internal/modules/cjs/loader.js:1173:10)
0|MagicMir | [14.12.2021 16:02.14.197] [ERROR] Whoops! There was an uncaught exception…
0|MagicMir | [14.12.2021 16:02.14.203] [ERROR] Error: Cannot find module ‘valid-url’
0|MagicMir | Require stack:
0|MagicMir | - /home/pi/MagicMirror/modules/MMM-CalendarExt/node_helper.js
0|MagicMir | - /home/pi/MagicMirror/js/app.js
0|MagicMir | - /home/pi/MagicMirror/js/electron.js
0|MagicMir | - /home/pi/MagicMirror/node_modules/electron/dist/resources/default_app.asar/main.js
0|MagicMir | -
0|MagicMir | at Module._resolveFilename (internal/modules/cjs/loader.js:972:15)
0|MagicMir | at Function.n._resolveFilename (electron/js2c/browser_init.js:249:921)
0|MagicMir | at Function.Module._resolveFilename (/home/pi/MagicMirror/node_modules/module-alias/index.js:49:29)
@pastormingle if i do a ctrl I i get the following
?
@sdetweil guess i"m not following what the xxx file would be?
@sdetweil Still not able to display… I ran the following command and it didn’t return any errors…
pi@raspberrypi:~/MagicMirror/modules/MMM-CalendarExt $ npm init -y
Wrote to /home/pi/MagicMirror/modules/MMM-CalendarExt/package.json:
{
"name": "MMM-CalendarExt",
"version": "1.0.0",
"description": "Alternative calendar module for [MagicMirror](https://magicmirror.builders/)",
"main": "MMM-CalendarExt.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"repository": {
"type": "git",
"url": "git+https://github.com/eouia/MMM-CalendarExt.git"
},
"keywords": [],
"author": "",
"license": "ISC",
"bugs": {
"url": "https://github.com/eouia/MMM-CalendarExt/issues"
},
"homepage": "https://github.com/eouia/MMM-CalendarExt#readme",
"dependencies": {
"all": "0.0.0"
},
"devDependencies": {}
}