Read the statement by Michael Teeuw here.
Installing on a Pi Zero
-
@ebolisa i would rebuild the sd card and start again
-
@sdetweil I agree but which OS should I use? The lite one?
-
@ebolisa full desktop
-
@sdetweil Thank you! Finally got it going. I had to change the SD card.
Now I can finally replace my P4 with the P0. The P4, along with the display, are causing heat related problems so, P0 to the rescue.
Just FYI, I cannot hide the cursor and
sudo apt-get install unclutterdidn’t help. -
@ebolisa in css/main.css body should have cursor:none
you are running chromium-browser, not electron, but should have been the same
-
@ebolisa pi0 doesnt have a lot of power, so beware running too much…
check swap space usage
free -m
to see if it needs to be made bigger
-
@sdetweil Yes, I set swap to 1024. It’s slow but it works.
Thanks again!! -
@sdetweil , I went through a fresh SD card install for a Pi Zero W. raspbian and then the raspberry.sh script via your github page. I believe everything completed without error.
However when Magic Mirror launches on reboot, I get a blank page indicating:
This site can’t be reached
localhost refused to connectAny idea what to do to troubleshoot?
-
@rushhour99 is this with extra modules or just the base?
can u show the output of
pm2 logs --lines=100 -
@sdetweil said in Installing on a Pi Zero:
pm2 logs --lines=100
This just the Magic Mirror base. I haven’t added any extra modules.
Unfortunately I cannot paste the pm2 logs output. When I try it gets caught in some sort of spam filter and won’t let me post.
-
@rushhour99 u can email to me… same userid on gmail
also attach /home/pi/install.log
-
@sdetweil Thanks, error log emailed. Ive done this process before without error ~9 months ago. Maybe the rasbian version or magic mirror version has changed recently that is now causing the problem.
-
@rushhour99 there is a new MM version every 2 months…
I test on my own pi 0 .
haven’t seen a problem like this
sent email back, can u send install.log
-
@rushhour99 do this
sudo npm i -g npm@6this will downgrade npm to v6
then
cd ~/MagicMirror rm -rf node_modules rm package-lock.json npm install --only=prodand check if the config.js file exists
ls ~/MagicMirror/config/config,js -laF -
@sdetweil said in Installing on a Pi Zero:
sudo npm -i npm@6
I got an error. Thanks for helping out, this is a new build so I don’t mind if it gets messed up and I need to start over.
$ sudo npm -i npm@6
npm ERR! code ENOENT
npm ERR! syscall open
npm ERR! path /home/pi/package.json
npm ERR! errno -2
npm ERR! enoent ENOENT: no such file or directory, open ‘/home/pi/package.json’
npm ERR! enoent This is related to npm not being able to find a file.
npm ERR! enoentnpm ERR! A complete log of this run can be found in:
npm ERR! /root/.npm/_logs/2021-08-03T22_48_17_691Z-debug.log -
@rushhour99 typo, sorry
sudo npm i -g npm@6 -
@sdetweil Thanks!
I copied the config.js.sample to config.js before running the downgrade commands.
After downgrading and rebooting, the Magic Mirror showed up on my Pi 0 with the default configuration.
-
@rushhour99 great, thanks for the update
I pushed a change to the installer to prevent npm going to v7.
-
I recently purchased a pi0, and installed MagicMirror successfully. However when I go to install more modules, it starts to fail (ie. become very unstable). Other than just ‘upgrading’ to a Pi3/4, is there any reason why I couldn’t host the mirror on my website and just use the browser to display the data?
-
@laurafox08 said in Installing on a Pi Zero:
why I couldn’t host the mirror on my website
what do u mean?
this is a programmed app… its not just a web page.
did u increase the swap space… pi0 doesn’t have much memory…
and its under powered, so it can’t do everything that a pi3 or 4 could do…
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