Read the statement by Michael Teeuw here.
Raspberry Pi Zero W for Magic Mirror
-
@davidgagne said in Raspberry Pi Zero 2 W for Magic Mirror:
async App.start (/home/dvg/MagicMirror/js/app.js:261:3) {
code: ‘MODULE_NOT_FOUND’,
requireStack: [
‘/home/dvg/MagicMirror/modules/MMM-JEOPARDY/node_helper.js’, -
@sdetweil So, because I am relentless, I rebooted to see if that would help. It didn’t, but now it looks like I have a different problem altogether:
cd MagicMirror/ pm2 start MagicMirror [PM2] Spawning PM2 daemon with pm2_home=/home/dvg/.pm2 [PM2] PM2 Successfully daemonized [PM2][ERROR] Script not found: /home/dvg/MagicMirror/MagicMirror
-
@davidgagne pm2 status
-
@sdetweil Oh. I thought the alert module was also indicating it was missing. Okay, I’ve tried
npm init -y
inside the MMM-Jeopardy dir, too, now.pm2 status
gives me:┌────┬────────────────┬─────────────┬─────────┬─────────┬──────────┬────────┬──────┬───────────┬──────────┬──────────┬──────────┬──────────┐ │ id │ name │ namespace │ version │ mode │ pid │ uptime │ ↺ │ status │ cpu │ mem │ user │ watching │ ├────┼────────────────┼─────────────┼─────────┼─────────┼──────────┼────────┼──────┼───────────┼──────────┼──────────┼──────────┼──────────┤ │ 0 │ MagicMirror │ default │ 2.27.0 │ fork │ 1865 │ 11s │ 28 │ online │ 21.4% │ 38.6mb │ dvg │ disabled │ └────┴────────────────┴─────────────┴─────────┴─────────┴──────────┴────────┴──────┴───────────┴──────────┴──────────┴──────────┴──────────┘
And now a subsequent
pm2 start MagicMirror
gives me:[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 │ 1986 │ 0s │ 34 │ online │ 0% │ 22.6mb │ dvg │ disabled │ └────┴────────────────┴─────────────┴─────────┴─────────┴──────────┴────────┴──────┴───────────┴──────────┴──────────┴──────────┴──────────┘
But there’s still nothing displaying (aside from the generic Pi OS desktop, I mean).
-
@davidgagne there are more commands after npm init
-
@sdetweil Ah. I see that. But … I don’t think the Jeopardy module is the main problem here. I’d prefer to simply remove that and try to get back to where I can even get MM to run in the first place; then I’ll screw around with adding modules. As it is I still can’t get MM to even run at all (plus all the restarts).
-
@sdetweil Am I wrong about this? It actually appears that ‘electron’ is the missing module. But that’s not in /modules it’s in /js … Do I follow the same
npm init
steps to get it? -
@davidgagne no the electron missing is a problem in MagicMirror code…
hang on…
-
@davidgagne ok, lets clean up and restart
all command line commands
pm2 flush (to get clear out the old logs) pm2 status cd ~/MagicMirror npm start
all show work… and if you loaded the missing library in the MMM-Jeopardy module then all should be ok.
then ctrl-q on the MM screen should stop it
then
pm2 restart 0
and MM should come back up
-
@sdetweil Okay! I’m doing this right now and will keep you posted. THANK YOU AGAIN.