parnic / MMM-MyQ

MyQ module for MagicMirror². Enables display and control of MyQ devices (specifically garage door openers) from Chamberlain, LiftMaster.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

MMM-MyQ does not display on my MagicMirror

slykeopath opened this issue · comments

Here is my log, after launching application I get a couple errors. Not sure how to fix them.

magicmirror@2.18.0 start
DISPLAY="${DISPLAY:=:0}" ./node_modules/.bin/electron js/electron.js

[15.02.2022 07:07.40.214] [LOG] Starting MagicMirror: v2.18.0
[15.02.2022 07:07.40.238] [LOG] Loading config ...
[15.02.2022 07:07.40.276] [LOG] Loading module helpers ...
[15.02.2022 07:07.40.287] [LOG] No helper found for module: alert.
[15.02.2022 07:07.40.364] [LOG] Initializing new module helper ...
[15.02.2022 07:07.40.370] [LOG] Module helper loaded: updatenotification
[15.02.2022 07:07.40.377] [LOG] No helper found for module: clock.
[15.02.2022 07:07.40.383] [LOG] No helper found for module: weather.
[15.02.2022 07:07.42.777] [LOG] Initializing new module helper ...
[15.02.2022 07:07.42.784] [LOG] Check MagicMirror version for node helper 'MMM-Strava' - Minimum version: 2.2.0 - Current version: 2.18.0
[15.02.2022 07:07.42.789] [LOG] Version is ok!
[15.02.2022 07:07.42.791] [LOG] Module helper loaded: MMM-Strava
[15.02.2022 07:07.42.802] [LOG] No helper found for module: MMM-SpaceLaunchNow.
[15.02.2022 07:07.42.806] [LOG] No helper found for module: MMM-Snow.
[15.02.2022 07:07.44.580] [LOG] Initializing new module helper ...
[15.02.2022 07:07.44.582] [LOG] Module helper loaded: MMM-NowPlayingOnSpotify
[15.02.2022 07:07.46.008] [LOG] Initializing new module helper ...
[15.02.2022 07:07.46.012] [LOG] Module helper loaded: mmm-nest-status
[15.02.2022 07:07.46.547] [LOG] Initializing new module helper ...
[15.02.2022 07:07.46.549] [LOG] Module helper loaded: MMM-MyQ
[15.02.2022 07:07.46.550] [LOG] All module helpers loaded.
[15.02.2022 07:07.47.006] [LOG] Starting server on port 8080 ...
[15.02.2022 07:07.47.073] [LOG] Server started ...
[15.02.2022 07:07.47.078] [LOG] Connecting socket for: updatenotification
[15.02.2022 07:07.47.081] [LOG] Starting module helper: updatenotification
[15.02.2022 07:07.47.084] [LOG] Connecting socket for: MMM-Strava
[15.02.2022 07:07.47.088] [LOG] Starting module helper: MMM-Strava
[15.02.2022 07:07.47.092] [LOG] Connecting socket for: MMM-NowPlayingOnSpotify
[15.02.2022 07:07.47.096] [LOG] Connecting socket for: mmm-nest-status
[15.02.2022 07:07.47.099] [LOG] Starting node_helper for module [mmm-nest-status]
[15.02.2022 07:07.47.102] [LOG] Connecting socket for: MMM-MyQ
[15.02.2022 07:07.47.105] [LOG] Starting module helper: MMM-MyQ
[15.02.2022 07:07.47.107] [LOG] Sockets connected & modules started ...
[15.02.2022 07:07.48.798] [LOG] Launching application.
[950:0215/070751.172565:ERROR:viz_main_impl.cc(161)] Exiting GPU process due to errors during initialization
[990:0215/070751.943661:ERROR:sandbox_linux.cc(376)] InitializeSandbox() called with multiple threads in process gpu-process.
[15.02.2022 07:07.58.561] [INFO] Checking git for module: MMM-Strava
[15.02.2022 07:07.58.650] [ERROR] (node:916) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead.
(Use electron --trace-deprecation ... to show where the warning was created)
[15.02.2022 07:07.58.954] [INFO] Checking git for module: MMM-SpaceLaunchNow
[15.02.2022 07:07.59.098] [LOG] Refreshed access token because it has expired. Expired at: 07:07:58 now is: 07:07:59
[15.02.2022 07:07.59.142] [LOG] Refreshed access token because it has expired. Expired at: 08:07:59 now is: 07:07:59
[15.02.2022 07:07.59.346] [LOG] Refreshed access token because it has expired. Expired at: 08:07:59 now is: 07:07:59
[15.02.2022 07:07.59.436] [INFO] Checking git for module: MMM-Snow
[15.02.2022 07:07.59.738] [INFO] Checking git for module: MMM-NowPlayingOnSpotify
[15.02.2022 07:08.00.010] [INFO] Checking git for module: mmm-nest-status
[15.02.2022 07:08.00.136] [INFO] Checking git for module: MMM-MyQ
[15.02.2022 07:08.00.324] [INFO] Checking git for module: default
[15.02.2022 07:08.02.230] [LOG] myQ API: Successfully connected to the myQ API.
[15.02.2022 07:08.03.579] [LOG] myQ API: Discovered device family gateway: Garage Door [Chamberlain Smart Garage Hub] (serial number: 123456789).
[15.02.2022 07:08.03.583] [LOG] myQ API: Discovered device family garagedoor: Pod Bay Door (serial number: 123456789, gateway: 123456789).
[15.02.2022 08:08.00.114] [LOG] Refreshed access token because it has expired. Expired at: 08:07:59 now is: 08:08:00
[15.02.2022 09:08.01.126] [LOG] Refreshed access token because it has expired. Expired at: 09:08:00 now is: 09:08:01
[15.02.2022 10:08.02.116] [LOG] Refreshed access token because it has expired. Expired at: 10:08:01 now is: 10:08:02

None of those errors seem to be related to this module - MMM-MyQ doesn't use Buffer() at all.

I'm not sure why it wouldn't be showing up...I see that the node module is running and found your opener, so I would have expected it to show a box on the screen with its status.

What does your config look like for this module?

Thank you for the reply, all my other modules are working as expected. So I am not sure what is going on.
Here is my config:
{
module: "MMM-MyQ",
position: "top_center",
config: {
email: 'email@email.com',
password: 'password'
}

I'll try it top_center and see if the html is broken or something. I use it top_right on mine.

I just tried top right and the module is not displayed on the MM.

I just tried top right and the module is not displayed on the MM.

top_right

Yeah, I'm not sure what to suggest right now. I will keep seeing if I can make it break locally, but it works ok for me top_center.

image

okay, I will keep checking. Thank you for the feedback :)

I was able to check with a dev console, Electron Security Warning (Insecure Content-Security-Policy)
VM4 sandbox_bundle:53.

log:
[1006:0215/164819.536360:ERROR:viz_main_impl.cc(161)] Exiting GPU process due to errors during initialization
[1056:0215/164820.274363:ERROR:sandbox_linux.cc(376)] InitializeSandbox() called with multiple threads in process gpu-process.
[916:0215/164820.570582:ERROR:CONSOLE(160)] "Electron sandbox_bundle.js script failed to run", source: node:electron/js2c/sandbox_bundle (160)
[916:0215/164820.571019:ERROR:CONSOLE(160)] "TypeError: object null is not iterable (cannot read property Symbol(Symbol.iterator))", source: node:electron/js2c/sandbox_bundle (160)
[15.02.2022 16:48.26.343] [ERROR] (node:916) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead.
(Use electron --trace-deprecation ... to show where the warning was created)

I was able to check with a dev console, Electron Security Warning (Insecure Content-Security-Policy) VM4 sandbox_bundle:53.

log: [1006:0215/164819.536360:ERROR:viz_main_impl.cc(161)] Exiting GPU process due to errors during initialization [1056:0215/164820.274363:ERROR:sandbox_linux.cc(376)] InitializeSandbox() called with multiple threads in process gpu-process. [916:0215/164820.570582:ERROR:CONSOLE(160)] "Electron sandbox_bundle.js script failed to run", source: node:electron/js2c/sandbox_bundle (160) [916:0215/164820.571019:ERROR:CONSOLE(160)] "TypeError: object null is not iterable (cannot read property Symbol(Symbol.iterator))", source: node:electron/js2c/sandbox_bundle (160) [15.02.2022 16:48.26.343] [ERROR] (node:916) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead. (Use electron --trace-deprecation ... to show where the warning was created)

I am continuing to dig into it.

I have tried about everything I can think of. I still can not get the module to display on my MM.

If this is the only module that doesn't work on your screen, I don't know what to suggest. I've tried it with a remote server, a local server, etc., and it all works for me. I have it hosted on an RPi 3 (or maybe 4? I can't remember) and being viewed by Chromium-based browsers.

Which browser are you viewing it from? Are there any client-side (browser dev tools) warnings/errors showing up? Maybe you could also attach your full stdout and stderr logs from the server Magic Mirror instance?

GNU nano 5.4 /home/pi/.pm2/logs/mm-error.log *

  • /home/pi/MagicMirror/js/electron.js
  • /home/pi/MagicMirror/node_modules/electron/dist/resources/default_app.asar/main.js
  • at Module._resolveFilename (node:internal/modules/cjs/loader:940:15)
    at n._resolveFilename (node:electron/js2c/browser_init:245:1105)
    at Module._resolveFilename (/home/pi/MagicMirror/node_modules/module-alias/index.js:49:29)
    at Module._load (node:internal/modules/cjs/loader:785:27)
    at c._load (node:electron/js2c/asar_bundle:5:13343)
    at Module.require (node:internal/modules/cjs/loader:1012:19)
    at require (node:internal/modules/cjs/helpers:102:18)
    at Object. (/home/pi/MagicMirror/modules/MMM-MyQ/node_helper.js:9:13)
    at Module._compile (node:internal/modules/cjs/loader:1118:14)
    at Module._extensions..js (node:internal/modules/cjs/loader:1173:10)
    [27.07.2022 22:21.24.056] [ERROR] Whoops! There was an uncaught exception...
    [27.07.2022 22:21.24.062] [ERROR] Error: Cannot find module '@hjdhjd/myq'
    Require stack:
  • /home/pi/MagicMirror/modules/MMM-MyQ/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
  • at Module._resolveFilename (node:internal/modules/cjs/loader:940:15)
    at n._resolveFilename (node:electron/js2c/browser_init:245:1105)
    at Module._resolveFilename (/home/pi/MagicMirror/node_modules/module-alias/index.js:49:29)
    at Module._load (node:internal/modules/cjs/loader:785:27)
    at c._load (node:electron/js2c/asar_bundle:5:13343)
    at Module.require (node:internal/modules/cjs/loader:1012:19)
    at require (node:internal/modules/cjs/helpers:102:18)
    at Object. (/home/pi/MagicMirror/modules/MMM-MyQ/node_helper.js:9:13)
    at Module._compile (node:internal/modules/cjs/loader:1118:14)
    at Module._extensions..js (node:internal/modules/cjs/loader:1173:10) {
    code: 'MODULE_NOT_FOUND',
    requireStack: [
    '/home/pi/MagicMirror/modules/MMM-MyQ/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',
    undefined
    ]
    }
    [27.07.2022 22:21.24.063] [ERROR] MagicMirror² will not quit, but it might be a good idea to check why this happened. Maybe no internet connection?
    [27.07.2022 22:21.24.063] [ERROR] If you think this really is an issue, please open an issue on GitHub: https://github.com/MichMich/MagicMirror/issues
    MESA-LOADER: failed to retrieve device information
    MESA-LOADER: failed to retrieve device information
    MESA-LOADER: failed to retrieve device information
    MESA-LOADER: failed to open kms_swrast: /usr/lib/dri/kms_swrast_dri.so: cannot open shared object file: Permission denied (search paths /usr/lib/arm-linux-gnueabihf/dri:$${ORIGIN}/dri:/usr/lib/dri)
    failed to load driver: kms_swrast
    MESA-LOADER: failed to open swrast: /usr/lib/dri/swrast_dri.so: cannot open shared object file: Permission denied (search paths /usr/lib/arm-linux-gnueabihf/dri:$${ORIGIN}/dri:/usr/lib/dri)
    failed to load swrast driver
    /home/pi/MagicMirror/node_modules/electron/dist/electron exited with signal SIGINT
    MESA-LOADER: failed to retrieve device information
    MESA-LOADER: failed to retrieve device information
    MESA-LOADER: failed to retrieve device information
    MESA-LOADER: failed to open kms_swrast: /usr/lib/dri/kms_swrast_dri.so: cannot open shared object file: Permission denied (search paths /usr/lib/arm-linux-gnueabihf/dri:$${ORIGIN}/dri:/usr/lib/dri)
    failed to load driver: kms_swrast
    MESA-LOADER: failed to open swrast: /usr/lib/dri/swrast_dri.so: cannot open shared object file: Permission denied (search paths /usr/lib/arm-linux-gnueabihf/dri:$${ORIGIN}/dri:/usr/lib/dri)
    failed to load swrast driver

GNU nano 5.4 /home/pi/.pm2/logs/mm-out.log

magicmirror@2.20.0 start
DISPLAY="${DISPLAY:=:0}" ./node_modules/.bin/electron js/electron.js

[27.07.2022 22:06.08.552] [LOG] Starting MagicMirror: v2.20.0
[27.07.2022 22:06.08.559] [LOG] Loading config ...
[27.07.2022 22:06.08.569] [LOG] Loading module helpers ...
[27.07.2022 22:06.08.573] [LOG] No helper found for module: alert.
[27.07.2022 22:06.08.596] [LOG] Initializing new module helper ...
[27.07.2022 22:06.08.598] [LOG] Module helper loaded: updatenotification
[27.07.2022 22:06.08.600] [LOG] No helper found for module: clock.
[27.07.2022 22:06.08.943] [LOG] Initializing new module helper ...
[27.07.2022 22:06.08.944] [LOG] Module helper loaded: calendar
[27.07.2022 22:06.08.948] [LOG] No helper found for module: compliments.
[27.07.2022 22:06.08.951] [LOG] No helper found for module: weather.
[27.07.2022 22:06.08.994] [LOG] Initializing new module helper ...
[27.07.2022 22:06.08.995] [LOG] Module helper loaded: newsfeed
[27.07.2022 22:06.08.996] [LOG] All module helpers loaded.
[27.07.2022 22:06.09.183] [LOG] Starting server on port 8080 ...
[27.07.2022 22:06.09.206] [LOG] Server started ...
[27.07.2022 22:06.09.207] [LOG] Connecting socket for: updatenotification
[27.07.2022 22:06.09.208] [LOG] Starting module helper: updatenotification
[27.07.2022 22:06.09.209] [LOG] Connecting socket for: calendar
[27.07.2022 22:06.09.210] [LOG] Starting node helper for: calendar
[27.07.2022 22:06.09.211] [LOG] Connecting socket for: newsfeed
[27.07.2022 22:06.09.212] [LOG] Starting node helper for: newsfeed
[27.07.2022 22:06.09.213] [LOG] Sockets connected & modules started ...
[27.07.2022 22:06.09.807] [LOG] Launching application.
[27.07.2022 22:06.13.349] [LOG] Create new calendarfetcher for url: http://www.calendarlabs.com/ical-calendar/ics/76/US_Holidays.ics - Interval: 300000
[27.07.2022 22:06.13.367] [LOG] Create new newsfetcher for url: https://rss.nytimes.com/services/xml/rss/nyt/HomePage.xml - Interval: 300000
[27.07.2022 22:06.13.397] [INFO] Checking git for module: default
[27.07.2022 22:06.13.951] [INFO] Newsfeed-Fetcher: Broadcasting 35 items.
[27.07.2022 22:06.14.178] [INFO] Calendar-Fetcher: Broadcasting 6 events.
[27.07.2022 22:11.14.273] [INFO] Newsfeed-Fetcher: Broadcasting 35 items.
[27.07.2022 22:11.14.710] [INFO] Calendar-Fetcher: Broadcasting 6 events.

magicmirror@2.20.0 start
DISPLAY="${DISPLAY:=:0}" ./node_modules/.bin/electron js/electron.js

[27.07.2022 22:11.53.768] [LOG] Starting MagicMirror: v2.20.0
[27.07.2022 22:11.53.777] [LOG] Loading config ...
[27.07.2022 22:11.53.784] [LOG] Loading module helpers ...
[27.07.2022 22:11.53.787] [LOG] No helper found for module: alert.
[27.07.2022 22:11.53.804] [LOG] Initializing new module helper ...
[27.07.2022 22:11.53.806] [LOG] Module helper loaded: updatenotification
[27.07.2022 22:11.53.808] [LOG] No helper found for module: clock.
[27.07.2022 22:11.54.006] [LOG] Initializing new module helper ...
[27.07.2022 22:11.54.007] [LOG] Module helper loaded: calendar
[27.07.2022 22:11.54.009] [LOG] No helper found for module: compliments.
[27.07.2022 22:11.54.011] [LOG] No helper found for module: weather.
[27.07.2022 22:11.54.034] [LOG] Initializing new module helper ...
[27.07.2022 22:11.54.034] [LOG] Module helper loaded: newsfeed
[27.07.2022 22:11.54.040] [LOG] Loading module helpers ...
[27.07.2022 22:11.54.041] [LOG] No helper found for module: alert.
[27.07.2022 22:11.54.042] [LOG] Initializing new module helper ...
[27.07.2022 22:11.54.043] [LOG] Module helper loaded: updatenotification
[27.07.2022 22:11.54.044] [LOG] No helper found for module: clock.
[27.07.2022 22:11.54.045] [LOG] Initializing new module helper ...

Have you run npm install in the MMM-MyQ module directory? The log looks like it doesn't have the dependent node module installed.

If this is the only module that doesn't work on your screen, I don't know what to suggest. I've tried it with a remote server, a local server, etc., and it all works for me. I have it hosted on an RPi 3 (or maybe 4? I can't remember) and being viewed by Chromium-based browsers.

Which browser are you viewing it from? Are there any client-side (browser dev tools) warnings/errors showing up? Maybe you could also attach your full stdout and stderr logs from the server Magic Mirror instance?

I am not using MM in server mode. Dev tool is displaying a Electron Security warning and Openweather app failure. I started fresh and only loaded/configured MyQ to see if I can narrow it down. So no other default modules have been configured. I am still not able to get MyQ to display. Dev tool shows MyQ load and started. Hope the logs above are what you are looking for.

Have you run npm install in the MMM-MyQ module directory? The log looks like it doesn't have the dependent node module installed.

I want to say I did but let me be sure and check again.

Have you run npm install in the MMM-MyQ module directory? The log looks like it doesn't have the dependent node module installed.

I want to say I did but let me be sure and check again.

To be clear we are talking about "~/MagicMirror/modules/MMM-MyQ" directory?

Have you run npm install in the MMM-MyQ module directory? The log looks like it doesn't have the dependent node module installed.

I want to say I did but let me be sure and check again.

To be clear we are talking about "~/MagicMirror/modules/MMM-MyQ" directory?

Yes.

See below, I did the npm install, did a reboot of the Raspberry Pi, and I do not seem to have the MyQ on my MM.

pi@raspberrypi:~/MagicMirror/modules/MMM-MyQ $ npm install

added 116 packages, and audited 173 packages in 11s

54 packages are looking for funding
run npm fund for details

1 high severity vulnerability

To address all issues, run:
npm audit fix

Run npm audit for details.
pi@raspberrypi:~/MagicMirror/modules/MMM-MyQ $ npm audit fix

changed 1 package, and audited 173 packages in 2s

54 packages are looking for funding
run npm fund for details

found 0 vulnerabilities

I wouldn't have run npm audit fix since that might change some versions to things that are incompatible with the library.

But can you attach a new mm-error.log now to see if that MyQ error is gone or not?

GNU nano 5.4 /home/pi/.pm2/logs/mm-error.log
MESA-LOADER: failed to retrieve device information
MESA-LOADER: failed to retrieve device information
MESA-LOADER: failed to retrieve device information
MESA-LOADER: failed to open kms_swrast: /usr/lib/dri/kms_swrast_dri.so: cannot open shared object file: Permission denied (search paths /usr/lib/arm-linux-gnueabihf/dri:$${ORIGIN}/dri:/usr/lib/dri)
failed to load driver: kms_swrast
MESA-LOADER: failed to open swrast: /usr/lib/dri/swrast_dri.so: cannot open shared object file: Permission denied (search paths /usr/lib/arm-linux-gnueabihf/dri:$${ORIGIN}/dri:/usr/lib/dri)
failed to load swrast driver
/home/pi/MagicMirror/node_modules/electron/dist/electron exited with signal SIGINT
[27.07.2022 22:11.54.039] [ERROR] ^[[31mWARNING! Could not load config file. Starting with default configuration. Error found: Error: Cannot find module '@hjdhjd/myq'^[[39m
^[[31mRequire stack:^[[39m
^[[31m- /home/pi/MagicMirror/modules/MMM-MyQ/node_helper.js^[[39m
^[[31m- /home/pi/MagicMirror/js/app.js^[[39m
^[[31m- /home/pi/MagicMirror/js/electron.js^[[39m
^[[31m- /home/pi/MagicMirror/node_modules/electron/dist/resources/default_app.asar/main.js^[[39m
^[[31m- ^[[39m
[27.07.2022 22:11.54.052] [ERROR] App threw an error during load
[27.07.2022 22:11.54.054] [ERROR] Error: Cannot find module '@hjdhjd/myq'
Require stack:

  • /home/pi/MagicMirror/modules/MMM-MyQ/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
  • at Module._resolveFilename (node:internal/modules/cjs/loader:940:15)
    at n._resolveFilename (node:electron/js2c/browser_init:245:1105)
    at Module._resolveFilename (/home/pi/MagicMirror/node_modules/module-alias/index.js:49:29)
    at Module._load (node:internal/modules/cjs/loader:785:27)
    at c._load (node:electron/js2c/asar_bundle:5:13343)
    at Module.require (node:internal/modules/cjs/loader:1012:19)
    at require (node:internal/modules/cjs/helpers:102:18)
    at Object. (/home/pi/MagicMirror/modules/MMM-MyQ/node_helper.js:9:13)
    at Module._compile (node:internal/modules/cjs/loader:1118:14)
    at Module._extensions..js (node:internal/modules/cjs/loader:1173:10)
    [27.07.2022 22:11.54.056] [ERROR] Whoops! There was an uncaught exception...
    [27.07.2022 22:11.54.062] [ERROR] Error: Cannot find module '@hjdhjd/myq'
    Require stack:
  • /home/pi/MagicMirror/modules/MMM-MyQ/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
  • at Module._resolveFilename (node:internal/modules/cjs/loader:940:15)
    at n._resolveFilename (node:electron/js2c/browser_init:245:1105)
    at Module._resolveFilename (/home/pi/MagicMirror/node_modules/module-alias/index.js:49:29)
    at Module._load (node:internal/modules/cjs/loader:785:27)
    at c._load (node:electron/js2c/asar_bundle:5:13343)
    at Module.require (node:internal/modules/cjs/loader:1012:19)
    at require (node:internal/modules/cjs/helpers:102:18)
    at Object. (/home/pi/MagicMirror/modules/MMM-MyQ/node_helper.js:9:13)
    at Module._compile (node:internal/modules/cjs/loader:1118:14)
    at Module._extensions..js (node:internal/modules/cjs/loader:1173:10) {
    code: 'MODULE_NOT_FOUND',
    requireStack: [
    '/home/pi/MagicMirror/modules/MMM-MyQ/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',
    undefined
    ]

Yeah, the problem is still that it's not installing the NPM module that MMM-MyQ depends on:

[27.07.2022 22:11.54.062] [ERROR] Error: Cannot find module '@hjdhjd/myq'

This should have been installed by the npm install in the MMM-MyQ directory. You should have some files at ~/MagicMirror/modules/MMM-MyQ/node_modules/@hjdhjd/myq - if you don't, that's your problem; maybe it was removed by the npm audit fix command? If you do, then I'm out of ideas.

Yeah, the problem is still that it's not installing the NPM module that MMM-MyQ depends on:

[27.07.2022 22:11.54.062] [ERROR] Error: Cannot find module '@hjdhjd/myq'

This should have been installed by the npm install in the MMM-MyQ directory. You should have some files at ~/MagicMirror/modules/MMM-MyQ/node_modules/@hjdhjd/myq - if you don't, that's your problem; maybe it was removed by the npm audit fix command? If you do, then I'm out of ideas.

Yes, I have dist folder with 13 files in it.

Sorry, I can't help any further. The MM error is complaining that it can't find that. You could try npm install without running audit fix afterward, but I don't know that it will help. Sounds like this module isn't going to work for you.

Okay, Thank you for your time. Let me know the best way to send you a beer and I will be sure to contribute.

Last login: Thu Jul 28 08:55:54 on ttys001
Matthews-Air:~ matthewvanslyke$ ssh pi@192.168.1.18
pi@192.168.1.18's password:
Linux raspberrypi 5.15.32-v7l+ #1538 SMP Thu Mar 31 19:39:41 BST 2022 armv7l

The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.

Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
Last login: Thu Jul 28 09:05:37 2022 from 192.168.1.110
pi@raspberrypi:~ $ nano /home/pi/.pm2/logs/mm-error.log
pi@raspberrypi:~ $ nano /home/pi/MagicMirror/config/config.js.
pi@raspberrypi:~ $ nano home/pi/MagicMirror/config/config.js.
pi@raspberrypi:~ $
pi@raspberrypi:~ $ nano /home/pi/MagicMirror/config/config.js
pi@raspberrypi:~ $ pm2 restart mm
Use --update-env to update environment variables
[PM2][ERROR] Process or Namespace mm not found
pi@raspberrypi:~ $ --update-env
-bash: --update-env: command not found
pi@raspberrypi:~ $ sudo --update-env
sudo: unrecognized option '--update-env'
usage: sudo -h | -K | -k | -V
usage: sudo -v [-AknS] [-g group] [-h host] [-p prompt] [-u user]
usage: sudo -l [-AknS] [-g group] [-h host] [-p prompt] [-U user] [-u user] [command]
usage: sudo [-AbEHknPS] [-r role] [-t type] [-C num] [-D directory] [-g group] [-h host] [-p prompt] [-R directory] [-T timeout] [-u user] [VAR=value] [-i|-s] []
usage: sudo -e [-AknS] [-r role] [-t type] [-C num] [-D directory] [-g group] [-h host] [-p prompt] [-R directory] [-T timeout] [-u user] file ...
pi@raspberrypi:~ $ update-env
-bash: update-env: command not found
pi@raspberrypi:~ $ mp2 kill
-bash: mp2: command not found
pi@raspberrypi:~ $ pm2 kill
[PM2][WARN] No process found
[PM2] [v] All Applications Stopped
[PM2] [v] PM2 Daemon Stopped
pi@raspberrypi:~ $ update-env
-bash: update-env: command not found
pi@raspberrypi:~ $ --update-env
-bash: --update-env: command not found
pi@raspberrypi:~ $ pm2 restart
[PM2] Spawning PM2 daemon with pm2_home=/home/pi/.pm2
[PM2] PM2 Successfully daemonized

error: missing required argument `id|name|namespace|all|json|stdin'

pi@raspberrypi:~ $ pm2 start mm
[PM2][ERROR] Script not found: /home/pi/mm
pi@raspberrypi:~ $ pm2 stop mm
[PM2][ERROR] Process or Namespace mm not found
pi@raspberrypi:~ $ pm2 update
Be sure to have the latest version by doing npm install pm2@latest -g before doing this procedure.
[PM2][WARN] No process found
[PM2] [v] All Applications Stopped
[PM2] [v] PM2 Daemon Stopped
[PM2] Spawning PM2 daemon with pm2_home=/home/pi/.pm2
[PM2] Restoring processes located in /home/pi/.pm2/dump.pm2
[PM2] Process /home/pi/mm.sh restored

PM2 updated
┌─────┬───────┬─────────────┬─────────┬─────────┬──────────┬────────┬──────┬───────────┬──────────┬──────────┬──────────┬──────────┐
│ id │ name │ namespace │ version │ mode │ pid │ uptime │ ↺ │ status │ cpu │ mem │ user │ watching │
├─────┼───────┼─────────────┼─────────┼─────────┼──────────┼────────┼──────┼───────────┼──────────┼──────────┼──────────┼──────────┤
│ 0 │ mm │ default │ N/A │ fork │ 1742 │ 0s │ 0 │ online │ 0% │ 2.7mb │ pi │ disabled │
└─────┴───────┴─────────────┴─────────┴─────────┴──────────┴────────┴──────┴───────────┴──────────┴──────────┴──────────┴──────────┘
pi@raspberrypi:~ $ npm install pm2@latest -g
npm WARN config global --global, --local are deprecated. Use --location=global instead.
npm ERR! code EACCES
npm ERR! syscall rename
npm ERR! path /usr/lib/node_modules/pm2
npm ERR! dest /usr/lib/node_modules/.pm2-zkn4vkCL
npm ERR! errno -13
npm ERR! Error: EACCES: permission denied, rename '/usr/lib/node_modules/pm2' -> '/usr/lib/node_modules/.pm2-zkn4vkCL'
npm ERR! [Error: EACCES: permission denied, rename '/usr/lib/node_modules/pm2' -> '/usr/lib/node_modules/.pm2-zkn4vkCL'] {
npm ERR! errno: -13,
npm ERR! code: 'EACCES',
npm ERR! syscall: 'rename',
npm ERR! path: '/usr/lib/node_modules/pm2',
npm ERR! dest: '/usr/lib/node_modules/.pm2-zkn4vkCL'
npm ERR! }
npm ERR!
npm ERR! The operation was rejected by your operating system.
npm ERR! It is likely you do not have the permissions to access this file as the current user
npm ERR!
npm ERR! If you believe this might be a permissions issue, please double-check the
npm ERR! permissions of the file and its containing directories, or try running
npm ERR! the command again as root/Administrator.

npm ERR! A complete log of this run can be found in:
npm ERR! /home/pi/.npm/_logs/2022-07-28T14_25_25_182Z-debug-0.log
pi@raspberrypi:~ $ pm2 restart mm
Use --update-env to update environment variables
[PM2] Applying action restartProcessId on app [mm](ids: [ 0 ])
[PM2] mm
┌─────┬───────┬─────────────┬─────────┬─────────┬──────────┬────────┬──────┬───────────┬──────────┬──────────┬──────────┬──────────┐
│ id │ name │ namespace │ version │ mode │ pid │ uptime │ ↺ │ status │ cpu │ mem │ user │ watching │
├─────┼───────┼─────────────┼─────────┼─────────┼──────────┼────────┼──────┼───────────┼──────────┼──────────┼──────────┼──────────┤
│ 0 │ mm │ default │ N/A │ fork │ 1878 │ 0s │ 1 │ online │ 0% │ 2.7mb │ pi │ disabled │
└─────┴───────┴─────────────┴─────────┴─────────┴──────────┴────────┴──────┴───────────┴──────────┴──────────┴──────────┴──────────┘
pi@raspberrypi:~ $ pm2 save
[PM2] Saving current process list...
[PM2] Successfully saved in /home/pi/.pm2/dump.pm2
pi@raspberrypi:~ $ pm2 show mm
Describing process with id 0 - name mm
┌───────────────────┬─────────────────────────────────┐
│ status │ online │
│ name │ mm │
│ namespace │ default │
│ version │ N/A │
│ restarts │ 1 │
│ uptime │ 61s │
│ script path │ /home/pi/mm.sh │
│ script args │ N/A │
│ error log path │ /home/pi/.pm2/logs/mm-error.log │
│ out log path │ /home/pi/.pm2/logs/mm-out.log │
│ pid path │ /home/pi/.pm2/pids/mm-0.pid │
│ interpreter │ bash │
│ interpreter args │ N/A │
│ script id │ 0 │
│ exec cwd │ /home/pi │
│ exec mode │ fork_mode │
│ node.js version │ N/A │
│ node env │ N/A │
│ watch & reload │ ✘ │
│ unstable restarts │ 0 │
│ created at │ 2022-07-28T14:26:19.346Z │
└───────────────────┴─────────────────────────────────┘
Divergent env variables from local env
┌────────────────┬─────────────────────────────────────┐
│ SSH_CONNECTION │ 192.168.1.110 58297 192.168.1.18 22 │
│ XDG_SESSION_ID │ 4 │
│ SSH_CLIENT │ 192.168.1.110 58297 22 │
│ SSH_TTY │ /dev/pts/0 │
└────────────────┴─────────────────────────────────────┘

Add your own code metrics: http://bit.ly/code-metrics
Use pm2 logs mm [--lines 1000] to display logs
Use pm2 env 0 to display environment variables
Use pm2 monit to monitor CPU and Memory usage mm
pi@raspberrypi:~ $ nano /home/pi/.pm2/logs/mm-error.log
pi@raspberrypi:~ $ sudo reboot now
packet_write_wait: Connection to 192.168.1.18 port 22: Broken pipe
Matthews-Air:~ matthewvanslyke$ ssh pi@192.168.1.18
pi@192.168.1.18's password:
Linux raspberrypi 5.15.32-v7l+ #1538 SMP Thu Mar 31 19:39:41 BST 2022 armv7l

The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.

Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
Last login: Thu Jul 28 09:28:18 2022
pi@raspberrypi:~ $ pm2 start mm
[PM2] Spawning PM2 daemon with pm2_home=/home/pi/.pm2
[PM2] PM2 Successfully daemonized
[PM2][ERROR] Script not found: /home/pi/mm
pi@raspberrypi:~ $ pm2 start mm.sh
[PM2] Starting /home/pi/mm.sh in fork_mode (1 instance)
[PM2] Done.
┌─────┬───────┬─────────────┬─────────┬─────────┬──────────┬────────┬──────┬───────────┬──────────┬──────────┬──────────┬──────────┐
│ id │ name │ namespace │ version │ mode │ pid │ uptime │ ↺ │ status │ cpu │ mem │ user │ watching │
├─────┼───────┼─────────────┼─────────┼─────────┼──────────┼────────┼──────┼───────────┼──────────┼──────────┼──────────┼──────────┤
│ 0 │ mm │ default │ N/A │ fork │ 1370 │ 0s │ 0 │ online │ 0% │ 2.6mb │ pi │ disabled │
└─────┴───────┴─────────────┴─────────┴─────────┴──────────┴────────┴──────┴───────────┴──────────┴──────────┴──────────┴──────────┘
pi@raspberrypi:~ $ pm2 show mm
Describing process with id 0 - name mm
┌───────────────────┬─────────────────────────────────┐
│ status │ online │
│ name │ mm │
│ namespace │ default │
│ version │ N/A │
│ restarts │ 0 │
│ uptime │ 67s │
│ script path │ /home/pi/mm.sh │
│ script args │ N/A │
│ error log path │ /home/pi/.pm2/logs/mm-error.log │
│ out log path │ /home/pi/.pm2/logs/mm-out.log │
│ pid path │ /home/pi/.pm2/pids/mm-0.pid │
│ interpreter │ bash │
│ interpreter args │ N/A │
│ script id │ 0 │
│ exec cwd │ /home/pi │
│ exec mode │ fork_mode │
│ node.js version │ N/A │
│ node env │ N/A │
│ watch & reload │ ✘ │
│ unstable restarts │ 0 │
│ created at │ 2022-07-28T14:30:01.002Z │
└───────────────────┴─────────────────────────────────┘
Divergent env variables from local env

Add your own code metrics: http://bit.ly/code-metrics
Use pm2 logs mm [--lines 1000] to display logs
Use pm2 env 0 to display environment variables
Use pm2 monit to monitor CPU and Memory usage mm
pi@raspberrypi:~ $ nano /home/pi/.pm2/logs/mm-error.log

GNU nano 5.4 /home/pi/.pm2/logs/mm-error.log
[2105:0728/085938.505014:ERROR:gpu_process_host.cc(968)] GPU process launch failed: error_code=1002
[2105:0728/085938.507407:ERROR:gpu_process_host.cc(968)] GPU process launch failed: error_code=1002
[2105:0728/085938.509867:ERROR:gpu_process_host.cc(968)] GPU process launch failed: error_code=1002
[2105:0728/085938.512203:ERROR:gpu_process_host.cc(968)] GPU process launch failed: error_code=1002
[2105:0728/085938.514638:ERROR:gpu_process_host.cc(968)] GPU process launch failed: error_code=1002
[2105:0728/085938.525849:ERROR:gpu_process_host.cc(968)] GPU process launch failed: error_code=1002
[2105:0728/085938.525914:FATAL:gpu_data_manager_impl_private.cc(450)] GPU process isn't usable. Goodbye.
[28.07.2022 09:25.07.927] [ERROR] Whoops! There was an uncaught exception...
[28.07.2022 09:25.07.935] [ERROR] Error: listen EADDRINUSE: address already in use 127.0.0.1:8080
at Server.setupListenHandle [as _listen2] (node:net:1330:16)
at listenInCluster (node:net:1378:12)
at GetAddrInfoReqWrap.doListen [as callback] (node:net:1516:7)
at GetAddrInfoReqWrap.onlookup [as oncomplete] (node:dns:73:8) {
code: 'EADDRINUSE',
errno: -98,
syscall: 'listen',
address: '127.0.0.1',
port: 8080
}
[28.07.2022 09:25.07.936] [ERROR] MagicMirror² will not quit, but it might be a good idea to check why this happened. Maybe no internet connection?
[28.07.2022 09:25.07.937] [ERROR] If you think this really is an issue, please open an issue on GitHub: https://github.com/MichMich/MagicMirror/issues
MESA-LOADER: failed to retrieve device information
MESA-LOADER: failed to retrieve device information
MESA-LOADER: failed to retrieve device information
MESA-LOADER: failed to open kms_swrast: /usr/lib/dri/kms_swrast_dri.so: cannot open shared object file: Permission denied (search paths /usr/lib/arm-linux-gnueabihf/dri:$${ORIGIN}/dri:/usr/lib/dri)
failed to load driver: kms_swrast
MESA-LOADER: failed to open swrast: /usr/lib/dri/swrast_dri.so: cannot open shared object file: Permission denied (search paths /usr/lib/arm-linux-gnueabihf/dri:$${ORIGIN}/dri:/usr/lib/dri)
failed to load swrast driver
/home/pi/MagicMirror/node_modules/electron/dist/electron exited with signal SIGINT
[28.07.2022 09:26.24.574] [ERROR] Whoops! There was an uncaught exception...
[28.07.2022 09:26.24.587] [ERROR] Error: listen EADDRINUSE: address already in use 127.0.0.1:8080
at Server.setupListenHandle [as _listen2] (node:net:1330:16)
at listenInCluster (node:net:1378:12)
at GetAddrInfoReqWrap.doListen [as callback] (node:net:1516:7)
at GetAddrInfoReqWrap.onlookup [as oncomplete] (node:dns:73:8) {
code: 'EADDRINUSE',
errno: -98,
syscall: 'listen',
address: '127.0.0.1',
port: 8080
}
[28.07.2022 09:26.24.588] [ERROR] MagicMirror² will not quit, but it might be a good idea to check why this happened. Maybe no internet connection?
[28.07.2022 09:26.24.589] [ERROR] If you think this really is an issue, please open an issue on GitHub: https://github.com/MichMich/MagicMirror/issues
MESA-LOADER: failed to retrieve device information
MESA-LOADER: failed to retrieve device information
MESA-LOADER: failed to retrieve device information
MESA-LOADER: failed to open kms_swrast: /usr/lib/dri/kms_swrast_dri.so: cannot open shared object file: Permission denied (search paths /usr/lib/arm-linux-gnueabihf/dri:$${ORIGIN}/dri:/usr/lib/dri)
failed to load driver: kms_swrast
MESA-LOADER: failed to open swrast: /usr/lib/dri/swrast_dri.so: cannot open shared object file: Permission denied (search paths /usr/lib/arm-linux-gnueabihf/dri:$${ORIGIN}/dri:/usr/lib/dri)
failed to load swrast driver
MESA-LOADER: failed to retrieve device information
MESA-LOADER: failed to retrieve device information
MESA-LOADER: failed to retrieve device information
MESA-LOADER: failed to open kms_swrast: /usr/lib/dri/kms_swrast_dri.so: cannot open shared object file: Permission denied (search paths /usr/lib/arm-linux-gnueabihf/dri:$${ORIGIN}/dri:/usr/lib/dri)
failed to load driver: kms_swrast
MESA-LOADER: failed to open swrast: /usr/lib/dri/swrast_dri.so: cannot open shared object file: Permission denied (search paths /usr/lib/arm-linux-gnueabihf/dri:$${ORIGIN}/dri:/usr/lib/dri)
failed to load swrast driver

I think I finally fixed this in the latest version. After updating:

rm -rf node_modules
npm install