@sdetweil Thanks for the reply. I think I did have 2 instances at one time, but I deleted the other one. It does not show up on pm2 status. Is there anything else to remove? Thansk.
Read the statement by Michael Teeuw here.
Posts made by theaddies
-
RE: EADDRINUSE: address already in use 127.0.0.1:8090
-
EADDRINUSE: address already in use 127.0.0.1:8090
When I boot up the MagicMirror I will get a blank screen with a cursor. The message in the log is the following. If I simply change the port to anything else, 8080 then the mirror boots up fine. If I get the error I switch it back to 8090 and it goes away again. I have nothing running on the machine. It is a raspberry pi II with only MagicMirror. TIA
/home/pi/.pm2/logs/MagicMirror-error.log last 15 lines: 0|MagicMir | [19.02.2023 07:55.11.006] [ERROR] Error: listen EADDRINUSE: address already in use 127.0.0.1:8090 0|MagicMir | at Server.setupListenHandle [as _listen2] (node:net:1432:16) 0|MagicMir | at listenInCluster (node:net:1480:12) 0|MagicMir | at GetAddrInfoReqWrap.doListen [as callback] (node:net:1629:7) 0|MagicMir | at GetAddrInfoReqWrap.onlookup [as oncomplete] (node:dns:111:8) { 0|MagicMir | code: 'EADDRINUSE', 0|MagicMir | errno: -98, 0|MagicMir | syscall: 'listen', 0|MagicMir | address: '127.0.0.1', 0|MagicMir | port: 8090 0|MagicMir | } 0|MagicMir | [19.02.2023 07:55.11.008] [ERROR] MagicMirror² will not quit, but it might be a good idea to check why this happened. Maybe no internet connection? 0|MagicMir | [19.02.2023 07:55.11.010] [ERROR] If you think this really is an issue, please open an issue on GitHub: https://github.com/MichMich/MagicMirror/issues 0|MagicMir | [2472:0219/075514.107308:ERROR:viz_main_impl.cc(186)] Exiting GPU process due to errors during initialization 0|MagicMir | [2505:0219/075514.639247:ERROR:gpu_memory_buffer_support_x11.cc(44)] dri3 extension not supported.
-
Black screen
I have the dreaded black screen. The output of pm2 logs is below.
/home/pi/.pm2/logs/MagicMirror-error.log last 100 lines: 0|MagicMir | at Module._load (internal/modules/cjs/loader.js:732:27) 0|MagicMir | at Function.f._load (electron/js2c/asar_bundle.js:5:12913) 0|MagicMir | at Module.require (internal/modules/cjs/loader.js:959:19) 0|MagicMir | at require (internal/modules/cjs/helpers.js:88:18) 0|MagicMir | at Object.<anonymous> (/home/pi/MagicMirror/modules/default/updatenotification/node_helper.js:1:17) 0|MagicMir | at Module._compile (internal/modules/cjs/loader.js:1078:30) 0|MagicMir | at Object.Module._extensions..js (internal/modules/cjs/loader.js:1108:10) 0|MagicMir | [19.12.2021 20:52.42.139] [ERROR] Whoops! There was an uncaught exception... 0|MagicMir | [19.12.2021 20:52.42.156] [ERROR] Error: Cannot find module 'simple-git' 0|MagicMir | Require stack: 0|MagicMir | - /home/pi/MagicMirror/modules/default/updatenotification/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:887:15) 0|MagicMir | at Function.n._resolveFilename (electron/js2c/browser_init.js:257:1128) 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:732:27) 0|MagicMir | at Function.f._load (electron/js2c/asar_bundle.js:5:12913) 0|MagicMir | at Module.require (internal/modules/cjs/loader.js:959:19) 0|MagicMir | at require (internal/modules/cjs/helpers.js:88:18) 0|MagicMir | at Object.<anonymous> (/home/pi/MagicMirror/modules/default/updatenotification/node_helper.js:1:17) 0|MagicMir | at Module._compile (internal/modules/cjs/loader.js:1078:30) 0|MagicMir | at Object.Module._extensions..js (internal/modules/cjs/loader.js:1108:10) { 0|MagicMir | code: 'MODULE_NOT_FOUND', 0|MagicMir | requireStack: [ 0|MagicMir | '/home/pi/MagicMirror/modules/default/updatenotification/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 0|MagicMir | ] 0|MagicMir | } 0|MagicMir | [19.12.2021 20:52.42.158] [ERROR] MagicMirror will not quit, but it might be a good idea to check why this happened. Maybe no internet connection? 0|MagicMir | [19.12.2021 20:52.42.160] [ERROR] If you think this really is an issue, please open an issue on GitHub: https://github.com/MichMich/MagicMirror/issues 0|MagicMir | npm ERR! code ELIFECYCLE 0|MagicMir | npm ERR! errno 1 0|MagicMir | npm ERR! magicmirror@2.17.1 start: `DISPLAY="${DISPLAY:=:0}" ./node_modules/.bin/electron js/electron.js` 0|MagicMir | npm ERR! Exit status 1 0|MagicMir | npm ERR! 0|MagicMir | npm ERR! Failed at the magicmirror@2.17.1 start script. 0|MagicMir | npm ERR! This is probably not a problem with npm. There is likely additional logging output above. 0|MagicMir | 0|MagicMir | npm ERR! A complete log of this run can be found in: 0|MagicMir | npm ERR! /home/pi/.npm/_logs/2021-12-20T02_15_41_536Z-debug.log 0|MagicMir | [19.12.2021 21:16.26.632] [ERROR] WARNING! Could not load config file. Starting with default configuration. Error found: Error: Cannot find module 'valid-url' 0|MagicMir | Require stack: 0|MagicMir | - /home/pi/MagicMirror/modules/default/calendar/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 | [19.12.2021 21:16.26.646] [ERROR] App threw an error during load 0|MagicMir | [19.12.2021 21:16.26.651] [ERROR] Error: Cannot find module 'valid-url' 0|MagicMir | Require stack: 0|MagicMir | - /home/pi/MagicMirror/modules/default/calendar/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:887:15) 0|MagicMir | at Function.n._resolveFilename (electron/js2c/browser_init.js:257:1128) 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:732:27) 0|MagicMir | at Function.f._load (electron/js2c/asar_bundle.js:5:12913) 0|MagicMir | at Module.require (internal/modules/cjs/loader.js:959:19) 0|MagicMir | at require (internal/modules/cjs/helpers.js:88:18) 0|MagicMir | at Object.<anonymous> (/home/pi/MagicMirror/modules/default/calendar/node_helper.js:9:16) 0|MagicMir | at Module._compile (internal/modules/cjs/loader.js:1078:30) 0|MagicMir | at Object.Module._extensions..js (internal/modules/cjs/loader.js:1108:10) 0|MagicMir | [19.12.2021 21:16.26.654] [ERROR] Whoops! There was an uncaught exception... 0|MagicMir | [19.12.2021 21:16.26.665] [ERROR] Error: Cannot find module 'valid-url' 0|MagicMir | Require stack: 0|MagicMir | - /home/pi/MagicMirror/modules/default/calendar/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:887:15) 0|MagicMir | at Function.n._resolveFilename (electron/js2c/browser_init.js:257:1128) 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:732:27) 0|MagicMir | at Function.f._load (electron/js2c/asar_bundle.js:5:12913) 0|MagicMir | at Module.require (internal/modules/cjs/loader.js:959:19) 0|MagicMir | at require (internal/modules/cjs/helpers.js:88:18) 0|MagicMir | at Object.<anonymous> (/home/pi/MagicMirror/modules/default/calendar/node_helper.js:9:16) 0|MagicMir | at Module._compile (internal/modules/cjs/loader.js:1078:30) 0|MagicMir | at Object.Module._extensions..js (internal/modules/cjs/loader.js:1108:10) { 0|MagicMir | code: 'MODULE_NOT_FOUND', 0|MagicMir | requireStack: [ 0|MagicMir | '/home/pi/MagicMirror/modules/default/calendar/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 0|MagicMir | ] 0|MagicMir | } 0|MagicMir | [19.12.2021 21:16.26.668] [ERROR] MagicMirror will not quit, but it might be a good idea to check why this happened. Maybe no internet connection? 0|MagicMir | [19.12.2021 21:16.26.669] [ERROR] If you think this really is an issue, please open an issue on GitHub: https://github.com/MichMich/MagicMirror/issues /home/pi/.pm2/logs/MagicMirror-out.log last 100 lines: 0|MagicMir | [19.12.2021 20:13.05.229] [LOG] No helper found for module: weather. 0|MagicMir | [19.12.2021 20:13.05.307] [LOG] Initializing new module helper ... 0|MagicMir | [19.12.2021 20:13.05.309] [LOG] Module helper loaded: newsfeed 0|MagicMir | [19.12.2021 20:13.05.310] [LOG] All module helpers loaded. 0|MagicMir | [19.12.2021 20:13.05.596] [LOG] Starting server on port 8080 ... 0|MagicMir | [19.12.2021 20:13.05.639] [LOG] Server started ... 0|MagicMir | [19.12.2021 20:13.05.641] [LOG] Connecting socket for: updatenotification 0|MagicMir | [19.12.2021 20:13.05.644] [LOG] Connecting socket for: calendar 0|MagicMir | [19.12.2021 20:13.05.645] [LOG] Starting node helper for: calendar 0|MagicMir | [19.12.2021 20:13.05.647] [LOG] Connecting socket for: newsfeed 0|MagicMir | [19.12.2021 20:13.05.648] [LOG] Starting node helper for: newsfeed 0|MagicMir | [19.12.2021 20:13.05.649] [LOG] Sockets connected & modules started ... 0|MagicMir | [19.12.2021 20:13.06.847] [LOG] Launching application. 0|MagicMir | [19.12.2021 20:13.13.741] [LOG] Create new calendarfetcher for url: http://www.calendarlabs.com/ical-calendar/ics/76/US_Holidays.ics - Interval: 300000 0|MagicMir | [19.12.2021 20:13.13.947] [LOG] Create new newsfetcher for url: https://rss.nytimes.com/services/xml/rss/nyt/HomePage.xml - Interval: 300000 0|MagicMir | [19.12.2021 20:13.14.021] [INFO] Checking git for module: default 0|MagicMir | [19.12.2021 20:13.14.762] [INFO] Calendar-Fetcher: Broadcasting 10 events. 0|MagicMir | [19.12.2021 20:13.16.845] [INFO] Newsfeed-Fetcher: Broadcasting 53 items. 0|MagicMir | [19.12.2021 20:18.15.285] [INFO] Calendar-Fetcher: Broadcasting 10 events. 0|MagicMir | [19.12.2021 20:18.19.265] [INFO] Newsfeed-Fetcher: Broadcasting 53 items. 0|MagicMir | [19.12.2021 20:23.15.841] [INFO] Calendar-Fetcher: Broadcasting 10 events. 0|MagicMir | [19.12.2021 20:23.20.160] [INFO] Newsfeed-Fetcher: Broadcasting 53 items. 0|MagicMir | [19.12.2021 20:28.16.431] [INFO] Calendar-Fetcher: Broadcasting 10 events. 0|MagicMir | [19.12.2021 20:28.22.395] [INFO] Newsfeed-Fetcher: Broadcasting 53 items. 0|MagicMir | [19.12.2021 20:33.16.913] [INFO] Calendar-Fetcher: Broadcasting 10 events. 0|MagicMir | [19.12.2021 20:33.25.392] [INFO] Newsfeed-Fetcher: Broadcasting 53 items. 0|MagicMir | [19.12.2021 20:38.17.430] [INFO] Calendar-Fetcher: Broadcasting 10 events. 0|MagicMir | [19.12.2021 20:38.26.122] [INFO] Newsfeed-Fetcher: Broadcasting 53 items. 0|MagicMir | [19.12.2021 20:39.03.828] [LOG] Shutting down server... 0|MagicMir | [19.12.2021 20:39.03.832] [LOG] Stopping module helper: updatenotification 0|MagicMir | [19.12.2021 20:39.03.833] [LOG] Stopping module helper: calendar 0|MagicMir | [19.12.2021 20:39.03.834] [LOG] Stopping module helper: newsfeed 0|MagicMir | 0|MagicMir | > magicmirror@2.17.1 start /home/pi/MagicMirror 0|MagicMir | > DISPLAY="${DISPLAY:=:0}" ./node_modules/.bin/electron js/electron.js 0|MagicMir | 0|MagicMir | [19.12.2021 20:39.08.654] [LOG] Starting MagicMirror: v2.17.1 0|MagicMir | [19.12.2021 20:39.08.668] [LOG] Loading config ... 0|MagicMir | [19.12.2021 20:39.08.681] [LOG] Loading module helpers ... 0|MagicMir | [19.12.2021 20:39.08.685] [LOG] No helper found for module: alert. 0|MagicMir | [19.12.2021 20:39.08.688] [LOG] No helper found for module: clock. 0|MagicMir | [19.12.2021 20:39.08.690] [LOG] No helper found for module: calendar_monthly. 0|MagicMir | [19.12.2021 20:39.08.708] [LOG] Loading module helpers ... 0|MagicMir | [19.12.2021 20:39.08.710] [LOG] No helper found for module: alert. 0|MagicMir | [19.12.2021 20:39.08.712] [LOG] No helper found for module: clock. 0|MagicMir | [19.12.2021 20:39.08.714] [LOG] No helper found for module: calendar_monthly. 0|MagicMir | [19.12.2021 20:39.09.222] [LOG] Launching application. 0|MagicMir | 0|MagicMir | > magicmirror@2.17.1 start /home/pi/MagicMirror 0|MagicMir | > DISPLAY="${DISPLAY:=:0}" ./node_modules/.bin/electron js/electron.js 0|MagicMir | 0|MagicMir | [19.12.2021 20:44.13.732] [LOG] Starting MagicMirror: v2.17.1 0|MagicMir | [19.12.2021 20:44.13.747] [LOG] Loading config ... 0|MagicMir | [19.12.2021 20:44.13.790] [LOG] Loading module helpers ... 0|MagicMir | [19.12.2021 20:44.13.794] [LOG] No helper found for module: alert. 0|MagicMir | [19.12.2021 20:44.13.797] [LOG] No helper found for module: clock. 0|MagicMir | [19.12.2021 20:44.13.801] [LOG] No helper found for module: calendar_monthly. 0|MagicMir | [19.12.2021 20:44.13.823] [LOG] Loading module helpers ... 0|MagicMir | [19.12.2021 20:44.13.826] [LOG] No helper found for module: alert. 0|MagicMir | [19.12.2021 20:44.13.828] [LOG] No helper found for module: clock. 0|MagicMir | [19.12.2021 20:44.13.830] [LOG] No helper found for module: calendar_monthly. 0|MagicMir | [19.12.2021 20:44.14.855] [LOG] Launching application. 0|MagicMir | 0|MagicMir | > magicmirror@2.17.1 start /home/pi/MagicMirror 0|MagicMir | > DISPLAY="${DISPLAY:=:0}" ./node_modules/.bin/electron js/electron.js 0|MagicMir | 0|MagicMir | [19.12.2021 20:51.49.259] [LOG] Starting MagicMirror: v2.17.1 0|MagicMir | [19.12.2021 20:51.49.277] [LOG] Loading config ... 0|MagicMir | [19.12.2021 20:51.49.292] [LOG] Loading module helpers ... 0|MagicMir | [19.12.2021 20:51.49.297] [LOG] No helper found for module: alert. 0|MagicMir | [19.12.2021 20:51.49.313] [LOG] Loading module helpers ... 0|MagicMir | [19.12.2021 20:51.49.316] [LOG] No helper found for module: alert. 0|MagicMir | 0|MagicMir | > magicmirror@2.17.1 start /home/pi/MagicMirror 0|MagicMir | > DISPLAY="${DISPLAY:=:0}" ./node_modules/.bin/electron js/electron.js 0|MagicMir | 0|MagicMir | [19.12.2021 20:52.42.062] [LOG] Starting MagicMirror: v2.17.1 0|MagicMir | [19.12.2021 20:52.42.079] [LOG] Loading config ... 0|MagicMir | [19.12.2021 20:52.42.097] [LOG] Loading module helpers ... 0|MagicMir | [19.12.2021 20:52.42.102] [LOG] No helper found for module: alert. 0|MagicMir | [19.12.2021 20:52.42.118] [LOG] Loading module helpers ... 0|MagicMir | [19.12.2021 20:52.42.121] [LOG] No helper found for module: alert. 0|MagicMir | [19.12.2021 20:52.43.154] [LOG] Launching application. 0|MagicMir | 0|MagicMir | > magicmirror@2.17.1 start /home/pi/MagicMirror 0|MagicMir | > DISPLAY="${DISPLAY:=:0}" ./node_modules/.bin/electron js/electron.js 0|MagicMir | 0|MagicMir | [19.12.2021 21:16.26.099] [LOG] Starting MagicMirror: v2.17.1 0|MagicMir | [19.12.2021 21:16.26.114] [LOG] Loading config ... 0|MagicMir | [19.12.2021 21:16.26.131] [LOG] Loading module helpers ... 0|MagicMir | [19.12.2021 21:16.26.135] [LOG] No helper found for module: alert. 0|MagicMir | [19.12.2021 21:16.26.619] [LOG] Initializing new module helper ... 0|MagicMir | [19.12.2021 21:16.26.621] [LOG] Module helper loaded: updatenotification 0|MagicMir | [19.12.2021 21:16.26.624] [LOG] No helper found for module: clock. 0|MagicMir | [19.12.2021 21:16.26.634] [LOG] Loading module helpers ... 0|MagicMir | [19.12.2021 21:16.26.637] [LOG] No helper found for module: alert. 0|MagicMir | [19.12.2021 21:16.26.638] [LOG] Initializing new module helper ... 0|MagicMir | [19.12.2021 21:16.26.640] [LOG] Module helper loaded: updatenotification 0|MagicMir | [19.12.2021 21:16.26.642] [LOG] No helper found for module: clock. 0|MagicMir | [19.12.2021 21:16.27.690] [LOG] Launching application.
-
Trying to modify dimensions of module MMM-RAIN-RADAR
I am new to this so I apologize for the simplistic question. I am struggling to modify the size of this plugin. It is a very long rectangle and I would like it to be more square. I don’t see any dimension information in the module config. There are dimensions, 270 & 480 in the .js file, but I don’t know javascript so I am struggling with what to modify. I don’t think the dimensions I am seeing are actually 480x270. It is more like 800x200.
-
RE: Exclude certain events from Calendar
Unfortunately that wasn’t it. I had the : in the code. It isn’t clear to me whether the command should be in the calendar part of config.js or the default settings of calendar.js. The code below, that doesn’t work, is from the config.js.
{ module: "calendar", header: "Work", position: "top_left", config: { maximumEntries: '5', excludedEvents: ["Workout"], calendars: [ symbol: "briefcase", url:https:www.mywebsite.com auth: { user: 'xxxx', pass: 'xxxxxxx', method: 'basic' } ] } }
-
Exclude certain events from Calendar
I am trying to exclude certain events from a calendar. The event is called Workout. I have dabbled quite a bit with the excludedEvents command, but have had no luck. Could someone please help me with the syntax to simply exclude events that contain the word Workout in the title? I have tried the below and many other combinations with no success. I put the command in the config.js file within the calendar config. I have not receive JS errors. It just does nothing.
excludedEvents [ 'Workout'],