Read the statement by Michael Teeuw here.
MMM-Button white screen
-
Hello,
I have installed the MMM Button. When I restart my PI3 I only get a white screen.
When I uncomment the butten module in the config with //, the screen is after a new start normal.
I have also tried it with a connected and unconneted butten. Always the same.Has anybody an idea, why I have a white screen?
Sebastian
-
Here is the error log:
pi@raspberrypi:~ $ tail -f /home/pi/.pm2/logs/mm-error-0.log
at Module._resolveFilename (module.js:438:15) at Function.Module._resolveFilename (/home/pi/MagicMirror/node_modules/electron-prebuilt/dist/resources/electron.asar/comm/reset-search-paths.js:35:12) at Function.Module._load (module.js:386:25) at Module.require (module.js:466:17) at require (internal/module.js:20:19) at Object.<anonymous> (/home/pi/MagicMirror/modules/MMM-Button/node_helper.js:10:14) at Module._compile (module.js:541:32) at Object.Module._extensions..js (module.js:550:10) at Module.load (module.js:456:32) at tryModuleLoad (module.js:415:12) code: 'MODULE_NOT_FOUND' } -
code: ‘MODULE_NOT_FOUND’ sounds like you misspelled the module name in the config
-
@strawberry-3.141
I checked the double checked the spelling. Everthing is correct.
The screen stays white…I tried node serveronly
pi@raspberrypi:~/MagicMirror $ node serveronly
Loading config …
Loading module helpers …
No helper found for module: alert.
No helper found for module: clock.
Initializing new module helper …
WARNING! Could not find config. Please create one.
Loading module helpers …
No helper found for module: alert.
No helper found for module: clock.
Initializing new module helper …
Whoops! There was an uncaught exception…
{ Error: Cannot find module ‘onoff’
at Function.Module._resolveFilename (module.js:440:15)
at Function.Module._load (module.js:388:25)
at Module.require (module.js:468:17)
at require (internal/module.js:20:19)
at Object. (/home/pi/MagicMirror/modules/MMM-Button/node_helper.j s:10:14)
at Module._compile (module.js:541:32)
at Object.Module._extensions…js (module.js:550:10)
at Module.load (module.js:458:32)
at tryModuleLoad (module.js:417:12)
at Function.Module._load (module.js:409:3) code: ‘MODULE_NOT_FOUND’ }
MagicMirror will not quit, but it might be a good idea to check why this happene d. Maybe no internet connection?
If you think this really is an issue, please open an issue on GitHub: https://gi thub.com/MichMich/MagicMirror/issues -
Solved the problem…
I hat forgotten to install onoff (pi@raspberrypi:~/MagicMirror $ npm install onoff
) -
That tells me you didn’t read the instructions, because step 2, under Installation, it specifically says to run
'npm install'which would’ve taken care of installingonofffor you. I find it helps when I follow the author’s instructions. -
I read the instruction and I executed the
nmp installin the MagicMirror folder and thought thatonoffwould be installed automaticly.
But I had to executenpm install onoffextra in the MagicMirror folder to get the module run.Maybe there should a step 3, that tells you to execute
npm install onoff.Sebastian
-
No, the instructions, as written, are accurate. You missed the last bit of Step 1:
- Navigate into your MagicMirror’s modules folder and execute git clone https://github.com/ptrbld/MMM-Button.git.**`A new folder will appear navigate into it.`**
- Execute
npm installto install the node dependencies.
Had you done that last bit, you would be executing the next step from within the button module folder, not within the MagicMirror folder.
-
@KirAsh4
Ahhh, okay, that´s an explanation why I have sometimes problems with some modules.Thank you.
-
It can be a confusing, sometimes damn near frustrating landscape to maneuver. Glad you got it to work though.
-
Hello, i have the same problem. I also get a white-screen. My error-log:
$ tail -f /home/pi/.pm2/logs/mm-error-0.log
at Error (native) at process.module.(anonymous function) [as dlopen] (ELECTRON_ASAR.js:178:20) at Object.Module._extensions..node (module.js:583:18) at Object.module.(anonymous function) [as .node] (ELECTRON_ASAR.js:178:20) at Module.load (module.js:473:32) at tryModuleLoad (module.js:432:12) at Function.Module._load (module.js:424:3) at Module.require (module.js:483:17) at require (internal/module.js:20:19) at bindings (/home/pi/MagicMirror/modules/MMM-Button/node_modules/bindings/bindings.js:76:44)Any Ideas? Thanks!
I’ve done everything which was postet in this topic… -
I have the same problem. Also did everything from this thread.
-
i have the same problem.
-
@Babene1 try this
cd ~/MagicMirror/modules/MMM-Button
sudo npm rebuild --runtime=electron --target=1.4.6 --disturl=https://atom.io/download/atom-shell --abi=50 -
now it woks, thank you very much.
Have I made a mistake here?
Or what is the reason? -
I have the same problem. I did perform “nmp install” and “npm install onoff” in the MMM-Button folder.
And the fix from Nonamexp. But the screen after a reboot is white. :-(pi@raspberrypi:~ $ tail -f /home/pi/.pm2/logs/mm-error-0.log at Error (native) at process.module.(anonymous function) [as dlopen] (ELECTRON_ASAR.js:168:20) at Object.Module._extensions..node (module.js:583:18) at Object.module.(anonymous function) [as .node] (ELECTRON_ASAR.js:168:20) at Module.load (module.js:473:32) at tryModuleLoad (module.js:432:12) at Function.Module._load (module.js:424:3) at Module.require (module.js:483:17) at require (internal/module.js:20:19) at bindings (/home/pi/MagicMirror/modules/MMM-Button/node_modules/bindings/bindings.js:76:44) -
@FlorianRD after The Update do you have the raspberry pi restart?
-
Yes, even many times.
-
This post is deleted! -
This post is deleted!
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login