Read the statement by Michael Teeuw here.
Black Screen... I have not upgraded the MM2 system software.
-
and it happened… black screen on the Pi4 and MM is still running in the Chrome window on my MacMini.
-
@earnestrichards cool… so… try running server mode
npm start server
and then use chromium browser on the pi4
i have a config that does all this , i tried to have this as the default setup so one could chnage in config.js and voila… but it wasn’t accepted
(I do this on pi 0 as electron doesn’t run there anymore)down load this file to MagicMirror folder
https://raw.githubusercontent.com/sdetweil/MagicMirror_scripts/master/run-start.sh
make it executablechmod +x run-start.sh
edit package. json
copy the start line
change the word “start” to “start1”
looks like this"start1": "DISPLAY=\"${DISPLAY:=:0}\" ./node_modules/.bin/electron js/electron.js",
this saves the old start command
change the right side of the new start to “./run-start,sh”
looks like this"start":"./run-start.sh",
edit config.js
and uncomment this line// serverOnly: true/false/"local" ,
set to local
so it looks like thisserverOnly: "local" ,
now npm start or pm2 start will launch the MM in server mode (no ui)
and then launch chromium-browser over it.
mac still talks to serverif u need to go back, edit config.js, change serverOnly to false,
then npm run start1