Read the statement by Michael Teeuw here.
MagicMirror Failing on Raspberry Pi Zero W Rev 1.1
-
@davidgagne said in MagicMirror Failing on Raspberry Pi Zero W Rev 1.1:
Can you help with getting my forum account upgraded so I don’t have all my posts queued for approval?
the config I requested for the forum a couple years ago is a reputation of 2, and then posts will not be moderated.
https://forum.magicmirror.builders/post/104688this keeps out all the spam, and other nasty stuff…
I review every post that goes thru moderation queue. so I am the bottleneck…
to improve your rep, takes contributing something that other users like enough to vote up your post…
I cannot override that.
-
@davidgagne said in MagicMirror Failing on Raspberry Pi Zero W Rev 1.1:
Starting chromium browser now, have patience, it takes a minute
Chromium_browser not installedso you have to install, firefox, midiori, or surf
see my scripts doc -
@sdetweil Right. I did all that – uninstalled chromium, installed Firefox, and edited
installers/mm.sh
– as part of my installation process. I’m not sure why it’s still looking for chromium; I assume it’s hard coded somewhere in the MM startup script. -
@davidgagne not hard coded…
# if not set if [ "$external_browser." == "." ]; then # start chromium echo "Starting chromium browser now, have patience, it takes a minute"
it IS case sensitive and ALSO needs the export
unlike Windows in linux environment variables are not inherited by default…show me the mm.sh
-
@sdetweil Here’s the entire
mm.sh
file:#!/bin/bash # This file is still here to keep PM2 working on older installations. cd ~/MagicMirror export external_browser=firefox DISPLAY=:0 npm start
-
@davidgagne hm… no idea really
you can test the script withcd ~/MagicMirror installers/mm.sh
and
cd ~/MagicMirror export external_browser=firefox npm start
never seen it fail tho.
-
@sdetweil If electron hasn’t been required for years, then why does a fresh install of everything generate tens of thousands of “can’t find electron” lines in
MagicMirror-error.log
? -
@davidgagne the default install is to use electron.
We made it optional, so the install would not just fail.
and my script makes other browsers available as alternatives.if you do the manual install, there is nothing to fix the package.json still trying to use electron. and it errors out.
now you can clear the pm2 logs
pm2 flush
and then see info from future runs
-
@sdetweil Okay. Next issue is that
MagicMirror-out.log
is always empty. I recall that I could find lots of information in there the last time I was setting up a MM, but this time it’s always just blank. (TheMagicMirror-error.log
file is, sadly, useless because it’s just filled with tens of thousands of lines ofError: Cannot find module 'electron'
.)Any idea why
MagicMirror-out.log
is always empty? -
@davidgagne out is empty cause mm never started
Does
npm run server
Work