@sdetweil It’s frustrating because I swear it was working before I rebooted.
Read the statement by Michael Teeuw here.
Posts
-
RE: Raspberry Pi Zero W for Magic Mirror
-
RE: Raspberry Pi Zero W for Magic Mirror
@sdetweil I emailed you the output from that. I’m guessing
Error: Cannot find module 'electron'
is bad? -
RE: Raspberry Pi Zero W for Magic Mirror
@sdetweil It looks like I spoke too soon. After a reboot, I cannot seem to get any output from MagicMirror.
I rebooted and then calledpm2 start MagicMirror
from within the MagicMirror directory, and it seems to execute just fine. But … nothing happens. It doesn’t actually start the app, as far as I can tell. Even though the output seems the same:[PM2] Applying action restartProcessId on app [MagicMirror](ids: [ 0 ]) [PM2] [MagicMirror](0) ✓ [PM2] Process successfully started ┌────┬────────────────┬─────────────┬─────────┬─────────┬──────────┬────────┬──────┬───────────┬──────────┬──────────┬──────────┬──────────┐ │ id │ name │ namespace │ version │ mode │ pid │ uptime │ ↺ │ status │ cpu │ mem │ user │ watching │ ├────┼────────────────┼─────────────┼─────────┼─────────┼──────────┼────────┼──────┼───────────┼──────────┼──────────┼──────────┼──────────┤ │ 0 │ MagicMirror │ default │ 2.27.0 │ fork │ 4592 │ 1s │ 148 │ online │ 0% │ 27.4mb │ dvg │ disabled │ └────┴────────────────┴─────────────┴─────────┴─────────┴──────────┴────────┴──────┴───────────┴──────────┴──────────┴──────────┴──────────┘
Any ideas?
-
RE: Raspberry Pi Zero W for Magic Mirror
@sdetweil I’m an Apple user. I am sure there’s something similar, though. Thanks.
-
RE: Raspberry Pi Zero W for Magic Mirror
@sdetweil I am not going to bother sending you the install log because it worked!
It took a long time to launch, but now I can see MagicMirror running when I VNC into the Pi.
After running your fixuppm2 script I executed
pm2 start MagicMirror
and got this:[PM2] Applying action restartProcessId on app [MagicMirror](ids: [ 0 ]) [PM2] [MagicMirror](0) ✓ [PM2] Process successfully started ┌────┬────────────────┬─────────────┬─────────┬─────────┬──────────┬────────┬──────┬───────────┬──────────┬──────────┬──────────┬──────────┐ │ id │ name │ namespace │ version │ mode │ pid │ uptime │ ↺ │ status │ cpu │ mem │ user │ watching │ ├────┼────────────────┼─────────────┼─────────┼─────────┼──────────┼────────┼──────┼───────────┼──────────┼──────────┼──────────┼──────────┤ │ 0 │ MagicMirror │ default │ 2.27.0 │ fork │ 28553 │ 0s │ 2 │ online │ 0% │ 2.5mb │ dvg │ disabled │ └────┴────────────────┴─────────────┴─────────┴─────────┴──────────┴────────┴──────┴───────────┴──────────┴──────────┴──────────┴──────────┘
Now when I VNC into the Pi I see it running! So far the date and time is the only thing correctly displaying, but at least now MagicMirror is running. Thank you!
-
RE: Raspberry Pi Zero W for Magic Mirror
@sdetweil Here’s what I got after running your fixup script:
[PM2] Applying action restartProcessId on app [MagicMirror](ids: [ 0 ]) [PM2] [MagicMirror](0) ✓ ┌────┬────────────────┬─────────────┬─────────┬─────────┬──────────┬────────┬──────┬───────────┬──────────┬──────────┬──────────┬──────────┐ │ id │ name │ namespace │ version │ mode │ pid │ uptime │ ↺ │ status │ cpu │ mem │ user │ watching │ ├────┼────────────────┼─────────────┼─────────┼─────────┼──────────┼────────┼──────┼───────────┼──────────┼──────────┼──────────┼──────────┤ │ 0 │ MagicMirror │ default │ 2.27.0 │ fork │ 27952 │ 0s │ 1 │ online │ 0% │ 2.5mb │ dvg │ enabled │ └────┴────────────────┴─────────────┴─────────┴─────────┴──────────┴────────┴──────┴───────────┴──────────┴──────────┴──────────┴──────────┘ [PM2] Saving current process list... [PM2] Successfully saved in /home/dvg/.pm2/dump.pm2
I’ll email install.log to you as soon as I can figure out how to … find and copy the install log.
-
RE: Raspberry Pi Zero W for Magic Mirror
@sdetweil Okay. I’m doing this right now.
- Flashed card with Legacy 32-bit.
- Connected via ssh to run your script.
bash -c "$(curl -sL https://raw.githubusercontent.com/sdetweil/MagicMirror_scripts/master/raspberry.sh)"
Answered yes to disable screen saver and use pm2 questions.
- Removed chromium with:
sudo apt-get remove chromium-browser sudo apt autoremove
- Added Firefox with:
sudo apt-get update sudo apt-get install firefox-esr
- Enabled VNC using sudo raspi-config GUI
- Connect via TigerVNC
- Edit mm.sh via VNC in Pi's baked-in text editor by adding:
cd ~/MagicMirror export external_browser=firefox DISPLAY=:0 npm start
-
sudo reboot
- Connect via ssh
-
cd MagicMirror pm2 start MagicMirror
- And now -- finally! -- some progress:
[PM2] Spawning PM2 daemon with pm2_home=/home/dvg/.pm2 [PM2] PM2 Successfully daemonized [PM2][ERROR] Script not found: /home/dvg/MagicMirror/MagicMirror
So … now what have I done wrong? What script is missing?
-
RE: Raspberry Pi Zero W for Magic Mirror
@sdetweil said in Raspberry Pi Zero 2 W for Magic Mirror:
flash the sd card… its a pi02W, a 3 in pi0 form factor
I’m sorry but I don’t understand what this means. Which PiOS should I flash? I have been trying with the Legacy, 32-bit.
(If it makes a difference, I actually have a Raspberry Pi Zero W Rev 1.1. I don’t think it’s a 2.)
Thank you!
-
RE: Raspberry Pi Zero W for Magic Mirror
@sdetweil I am ripping my hair out trying to get MM running on a Pi Zero W. I’ve followed all of your (super helpful) suggestions across multiple posts, but no matter what I do, I keep getting:
[PM2][ERROR] File ecosystem.config.js not found
any time I try to execute pm2 start.
I’ve run your upgrade / update scripts from github, I’ve removed Chromium and replaced it with Firefox, I’ve uninstalled and reinstalled ten different flavors of the PiOS, I’ve tried the MagicMirrorOS that someone else posted, etc. All with no luck.
Do you have any ideas what could be the problem here?
Thanks in advance,
dvg