@sdetweil Thank you. Everything is working fine now.
Read the statement by Michael Teeuw here.
Posts
-
RE: Problem with mmm-openhabfloorplan after fresh install
-
RE: Problem with mmm-openhabfloorplan after fresh install
@maxheartrate I found a fix. I had to install the request module manually:
npm install request.
Explanation in this post:
https://issueexplorer.com/issue/MichMich/MagicMirror/2688 -
Problem with mmm-openhabfloorplan after fresh install
Hi everyone,
I updated my Magic Mirror and something must have gone wrong. Afterwards, I reinstalled Magic Mirror into a new folder. Everything works fine until I start to load custom modules. My most important one is mmm-openhabfloorplan.
After installation, Magic Mirror won’t start anymore. I get the following message:
> magicmirror@2.17.1 start /home/pi/MagicMirror > DISPLAY="${DISPLAY:=:0}" ./node_modules/.bin/electron js/electron.js [23.12.2021 21:26.41.242] [LOG] Starting MagicMirror: v2.17.1 [23.12.2021 21:26.41.255] [LOG] Loading config ... [23.12.2021 21:26.41.274] [LOG] Loading module helpers ... [23.12.2021 21:26.41.281] [LOG] No helper found for module: alert. [23.12.2021 21:26.41.318] [LOG] Initializing new module helper ... [23.12.2021 21:26.41.320] [LOG] Module helper loaded: updatenotification [23.12.2021 21:26.41.322] [LOG] No helper found for module: clock. [23.12.2021 21:26.41.751] [LOG] Initializing new module helper ... [23.12.2021 21:26.41.753] [LOG] Module helper loaded: calendar [23.12.2021 21:26.41.757] [LOG] Initializing new module helper ... [23.12.2021 21:26.41.760] [LOG] Module helper loaded: currentweather [23.12.2021 21:26.41.768] [LOG] Initializing new module helper ... [23.12.2021 21:26.41.770] [LOG] Module helper loaded: weatherforecast [23.12.2021 21:26.41.781] [ERROR] WARNING! Could not load config file. Starting with default configuration. Error found: Error: Cannot find module 'request' Require stack: - /home/pi/MagicMirror/modules/mmm-openhabfloorplan/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 - [23.12.2021 21:26.41.783] [LOG] Loading module helpers ... [23.12.2021 21:26.41.785] [LOG] No helper found for module: alert. [23.12.2021 21:26.41.787] [LOG] Initializing new module helper ... [23.12.2021 21:26.41.788] [LOG] Module helper loaded: updatenotification [23.12.2021 21:26.41.790] [LOG] No helper found for module: clock. [23.12.2021 21:26.41.792] [LOG] Initializing new module helper ... [23.12.2021 21:26.41.794] [LOG] Module helper loaded: calendar [23.12.2021 21:26.41.797] [LOG] Initializing new module helper ... [23.12.2021 21:26.41.800] [LOG] Module helper loaded: currentweather [23.12.2021 21:26.41.803] [LOG] Initializing new module helper ... [23.12.2021 21:26.41.805] [LOG] Module helper loaded: weatherforecast [23.12.2021 21:26.41.812] [ERROR] App threw an error during load [23.12.2021 21:26.41.817] [ERROR] Error: Cannot find module 'request' Require stack: - /home/pi/MagicMirror/modules/mmm-openhabfloorplan/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 (internal/modules/cjs/loader.js:887:15) at Function.n._resolveFilename (electron/js2c/browser_init.js:257:1128) at Function.Module._resolveFilename (/home/pi/MagicMirror/node_modules/module-alias/index.js:49:29) at Module._load (internal/modules/cjs/loader.js:732:27) at Function.f._load (electron/js2c/asar_bundle.js:5:12913) at Module.require (internal/modules/cjs/loader.js:959:19) at require (internal/modules/cjs/helpers.js:88:18) at Object.<anonymous> (/home/pi/MagicMirror/modules/mmm-openhabfloorplan/node_helper.js:1:17) at Module._compile (internal/modules/cjs/loader.js:1078:30) at Object.Module._extensions..js (internal/modules/cjs/loader.js:1108:10) [23.12.2021 21:26.41.820] [ERROR] Whoops! There was an uncaught exception... [23.12.2021 21:26.41.833] [ERROR] Error: Cannot find module 'request' Require stack: - /home/pi/MagicMirror/modules/mmm-openhabfloorplan/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 (internal/modules/cjs/loader.js:887:15) at Function.n._resolveFilename (electron/js2c/browser_init.js:257:1128) at Function.Module._resolveFilename (/home/pi/MagicMirror/node_modules/module-alias/index.js:49:29) at Module._load (internal/modules/cjs/loader.js:732:27) at Function.f._load (electron/js2c/asar_bundle.js:5:12913) at Module.require (internal/modules/cjs/loader.js:959:19) at require (internal/modules/cjs/helpers.js:88:18) at Object.<anonymous> (/home/pi/MagicMirror/modules/mmm-openhabfloorplan/node_helper.js:1:17) at Module._compile (internal/modules/cjs/loader.js:1078:30) at Object.Module._extensions..js (internal/modules/cjs/loader.js:1108:10) { code: 'MODULE_NOT_FOUND', requireStack: [ '/home/pi/MagicMirror/modules/mmm-openhabfloorplan/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 ] } [23.12.2021 21:26.41.842] [ERROR] MagicMirror will not quit, but it might be a good idea to check why this happened. Maybe no internet connection? [23.12.2021 21:26.41.844] [ERROR] If you think this really is an issue, please open an issue on GitHub: https://github.com/MichMich/MagicMirror/issues [23.12.2021 21:26.42.328] [LOG] Launching application.Does anyone know how to fix this error?
Best, Max
-
RE: MagicMirror runs in small window after update
@sdetweil Sorry. I didn’t mean to push you. I just checked my home directory. There is no config folder. I don’t really see any other folder that looks like one.
-
RE: MagicMirror runs in small window after update
Unfortunately, I wasn’t able to fix my problem yet. Does anyone have an idea how to get the full fullscreen?
@sdetweil or someone else? Advise would be highly appreciated. Best, Max -
RE: MagicMirror runs in small window after update
@sdetweil said in MagicMirror runs in small window after update:
grep version ~/MagicMirror/package.json
Hi Sam,
it’s
"version": "2.13.0".Best, Max
-
RE: MagicMirror runs in small window after update
@sdetweil O.k. Thank you for the information. I still wonder why the Magic Mirror does not cover the full desktop. Before the latest update, I did not see anything but the Mirror window.
-
RE: MagicMirror runs in small window after update
@sdetweil Thank you for your advise, Sam.
This is what I already tried - and just tried again:electronOptions:{ x:0, width: 1081, height: 1921, fullscreen: false, kiosk: true }The problem remains the same. I also added more than one pixel to width and height but it wouldn’t change the result.
-
RE: MagicMirror runs in small window after update
I was able to almost fix my problem using
electronOptions : { width: 1080, height: 1920 }However, I have a thin line from the desktop at the right and bottom edge shining through. The electron window does not cover the whole screen. I tried to use
fullscreen: trueandkiosk: trueand set the width and height to values higher than my display size but it didn’t change anything. Interesting though, when I setx: 1in electronOptions to offset the window by a pixel, the thin line will disappear on the right side but appears on the left.Any ideas how to fix this? @sdetweil
-
RE: MagicMirror runs in small window after update
I just tried to start MM with npm start from the MagicMirror directory. Didn’t work.
This is the message I receive:
magicmirror@2.13.0 start /home/pi/MagicMirror
DISPLAY=“${DISPLAY:=:0}” ./node_modules/.bin/electron js/electron.js -
RE: MagicMirror runs in small window after update
@sdetweil Hi Sam, CTRL + “-” decreases the size of the modules in the window. However, the Magic Mirror window’s overall size remains the same. I would like to show it full screen again so that I don’t see the desktop.
Best, Max -
MagicMirror runs in small window after update
Hi, I just updated my Magic Mirror. After rebooting the mirror dashboard is no longer running in full screen. It looks like an overlay window without borders which is on top of the desktop.
I did not change anything in my setup and have no clue where to look to fix this.
I checked main.css and everything looks fine.
Does anyone have an idea where this might come from and how to fix it?
-
RE: After 2.8 I'm having tons of issues. What are the steps from square 1 to get this working?
I just did a reboot to see if MagicMirror survives it. :winking_face:
Since I ran your @sdetweil script in my time of desparation, pm2 now autostarts two instances of MagicMirror. One is MagicMirror and one my original mm.
Where do I edit this again? I forgot how I managed to do the autostart in the first place … sorry.
-
RE: After 2.8 I'm having tons of issues. What are the steps from square 1 to get this working?
I am now using my original config.js and I am copying the modules one by one, then restarting Magic Mirror and checking if it still works.
I have got some stuff back up and running now. Thank so much up to this point.
-
RE: After 2.8 I'm having tons of issues. What are the steps from square 1 to get this working?
@sdetweil
That’s what I did. I have a fresh MagicMirror now. It is running but can’t find the config file (I haven’t copied config.js.sample to config.js yet). -
RE: After 2.8 I'm having tons of issues. What are the steps from square 1 to get this working?
Alright. Now I have something else but a black screen for the first time in days:
“Magic Mirror - please create a config file”
What do you suggest now?
-
RE: After 2.8 I'm having tons of issues. What are the steps from square 1 to get this working?
Hi @sdetweil, thanks for joining in and for your advise.
I followed your steps just as described. The node_helper was the only module in the newly cloned node_modules folder. I then ran npm install and an npm install in every modules folder with a package.json file.
After that I ran into the missing node_helper error again. Obviously the folder was deleted when I ran the npm install in the MagicMirror folder. Now I copied the node_helper folder from the newly cloned version again and I am back at the error I sent in my previous post. :dizzy_face:
-
RE: After 2.8 I'm having tons of issues. What are the steps from square 1 to get this working?
Your two suggestions did not work. That is why I followed step 3: cloning MM again and copying node_helper to node_modules.
I ran npm install in node_modules and in the MagicMirror directory.
Now it looks like I got one error further … :flushed_face:
This is what I get now:
> sh run-start.sh Starting MagicMirror: v2.8.0 Loading config ... Loading module helpers ... WARNING! Could not load config file. Starting with default configuration. Error found: Error: Cannot find module '../../../js/class.js' Loading module helpers ... App threw an error during load Error: Cannot find module '../../../js/class.js' at Module._resolveFilename (internal/modules/cjs/loader.js:602:15) at Function.Module._resolveFilename (/home/pi/MagicMirror/node_modules/electron/dist/resources/electron.asar/common/reset-search-paths.js:35:12) at Function.Module._load (internal/modules/cjs/loader.js:528:25) at Module.require (internal/modules/cjs/loader.js:658:17) at require (internal/modules/cjs/helpers.js:20:18) at Object.<anonymous> (/home/pi/MagicMirror/node_modules/node_helper/index.js:8:13) at Object.<anonymous> (/home/pi/MagicMirror/node_modules/node_helper/index.js:127:3) at Module._compile (internal/modules/cjs/loader.js:711:30) at Object.Module._extensions..js (internal/modules/cjs/loader.js:722:10) at Module.load (internal/modules/cjs/loader.js:620:32) Whoops! There was an uncaught exception... { Error: Cannot find module '../../../js/class.js' at Module._resolveFilename (internal/modules/cjs/loader.js:602:15) at Function.Module._resolveFilename (/home/pi/MagicMirror/node_modules/electron/dist/resources/electron.asar/common/reset-search-paths.js:35:12) at Function.Module._load (internal/modules/cjs/loader.js:528:25) at Module.require (internal/modules/cjs/loader.js:658:17) at require (internal/modules/cjs/helpers.js:20:18) at Object.<anonymous> (/home/pi/MagicMirror/node_modules/node_helper/index.js:8:13) at Object.<anonymous> (/home/pi/MagicMirror/node_modules/node_helper/index.js:127:3) at Module._compile (internal/modules/cjs/loader.js:711:30) at Object.Module._extensions..js (internal/modules/cjs/loader.js:722:10) at Module.load (internal/modules/cjs/loader.js:620:32) code: 'MODULE_NOT_FOUND' } MagicMirror will not quit, but it might be a good idea to check why this happened. Maybe no internet connection? If you think this really is an issue, please open an issue on GitHub: https://github.com/MichMich/MagicMirror/issues Launching application. -
RE: After 2.8 I'm having tons of issues. What are the steps from square 1 to get this working?
Hi, thank you for your advise.
ls ~/MagicMirror/node_modules/node_helper/shows me
ls: Zugriff auf ‘/home/pi/MagicMirror/node_modules/node_helper/’ nicht möglich: Datei oder Verzeichnis nicht gefunden
File or folder not foundgit checkout -- node_modules/node_helper/index.jsresults in
error: pathspec ‘node_modules/node_helper/index.js’ did not match any file(s) known to git.