Read the statement by Michael Teeuw here.
Magic mirror is not showing up
-
when i try to start the magic mirror using pm2 start mm.sh, it says “Starting /home/pi/mm.sh in fork_mode (1 instance)”
and then it says
“Done”
and then table that this looks like this shows up
id │ name │ mode │ ↺ │ status │ cpu │ memory │
├────┼────────────────────┼──────────┼──────┼───────────┼──────────┼──────────┤
│ 0 │ mm │ fork │ 0 │ online │ 0% │ 2.4mbthen nothing happens. I have watched countless videos about the whole prossess and i do everything that they do, but after the enter pm2 start mm.sh the table shows up and then the magic mirror page shows up. i dont know what to do
-
@CoopDog1712 ok, best thing is to use my script to set it up…
see
https://github.com/sdetweil/MagicMirror_scripts
last script on the pagebut in the meantime
pm2 stop all
pm2 logs --lines=50
to see what is going on
does executing mm.sh work by itself?
pm2 is really picky… if there is a batch (bash) script, then it MUST be named mm.sh just mm won’t work.
then pm2 delete 0
pm2 save -f
then run my fixuppm2.sh script -
-
-
@CoopDog1712 you can’t change and entry, but you can delete it
pm2 delete 0 or pm2 delete mm
pm2 logs --lines=50 might tell us what us going on
pm2 is a command
pm2 --help will show you all the things you can dops, you can attach pics here… the third icon from the right above the editor here
-
@CoopDog1712 i couldnt see much of that image
-
after typing in pm2 logs --lines=50, all that is coming up is a repeating of these couple lines
-
@CoopDog1712 yes, sometimes, the install messes up
pm2 stop all cd ~/MagicMirror npm install electron@17.2.0to test
cd ~/MagicMirror npm startif all looks good
ctrl-c to stop
thenpm2 start MagicMirrorI should have asked, what pi is this on ? not pi 0 w, right?
-
@sdetweil no its a pi 4
-
@sdetweil so it works now, and after i enter pm2 start MagicMirror, it loads the software for the magic mirror, the only issue is that their is nothing only a blank screen, no time, weather, nothing. all that comes up is a blank screen. any suggestions?
-
@CoopDog1712 have u added modules?
if so see
https://forum.magicmirror.builders/topic/15778/fix-for-black-screen-in-2-16-and-laterand
pm2 logs --lines=50
will show you what is happening -
@sdetweil i did what you said and this is what came up.
pi@raspberrypi:~/MagicMirror/modules/default/clock $ npm init -y
Wrote to /home/pi/MagicMirror/modules/default/clock/package.json:{
“name”: “clock”,
“version”: “1.0.0”,
“description”: “Theclockmodule is one of the default modules of the MagicMirror². This module displays the current date and time. The information will be updated realtime.”,
“main”: “clock.js”,
“scripts”: {
“test”: “echo "Error: no test specified" && exit 1”
},
“keywords”: [],
“author”: “”,
“license”: “ISC”
}pi@raspberrypi:~/MagicMirror/modules/default/clock $ npm install ???
npm ERR! code EINVALIDTAGNAME
npm ERR! Invalid tag name “???”: Tags may not have any characters that encodeURIComponent encodes.npm ERR! A complete log of this run can be found in:
npm ERR! /home/pi/.npm/_logs/2022-04-24T14_06_36_382Z-debug-0.log
pi@raspberrypi:~/MagicMirror/modules/default/clock $ pm2 start MagicMirror
[PM2] Applying action restartProcessId on app [MagicMirror](ids: [ 4 ])
[PM2] MagicMirror ✓
[PM2] Process successfully started -
@CoopDog1712 no… not in clock module… we ship that
what was the black screen failure message from the console output?
you read the messages and get the name of the missing library, and replace the ??? with that name
the reason YOU have to read the messages is because there are multiple libraries missing…
you only need to fix the ones that impact the modules you installed -
@sdetweil i dont think i saw one. i never installed any modulles, even the ones that should come with it are not showing up
-
@CoopDog1712 ok, still show the messages where u start mm
either via
npm start
or
pm2if pm2., then
pm2 logs --lines=50will show the console output
what pi is this?
-
@sdetweil pi 4
-
-
@CoopDog1712 ah yes, fun times…
do
pm2 stop all cd ~/MagicMirror npm install electron@17.2.0 npm startmm should come up
minimize mm (alt-spacebar, n)
ctrl-c to stop running instancethen
pm2 statusthis will show the status or pm2 managed apps.
┌────┬────────────────────┬──────────┬──────┬───────────┬──────────┬──────────┐ │ id │ name │ mode │ ↺ │ status │ cpu │ memory │ ├────┼────────────────────┼──────────┼──────┼───────────┼──────────┼──────────┤ │ 0 │ MagicMirror │ fork │ 0 │ online │ 0% │ 2.7mb │ └────┴────────────────────┴──────────┴──────┴───────────┴──────────┴──────────┘use the name or the row number
pm2 start xxxxxx is the name or the row number
for examplepm2 start 0 -
@sdetweil after i installed electron@17.2.0 then started it, this came up

then i did start pm2 start 4, and it started, but was still a blank screen
-
@CoopDog1712 says something is still running…
you didn’t do pm2 stop all
after doing test
ps -ef | grep -i magicmirror
should return nothing
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

