Read the statement by Michael Teeuw here.
Installing on a Pi Zero
-
thats my “achievment” from last night…
pi@raspberrypi:~ $ cd MagicMirror/ pi@raspberrypi:~/MagicMirror $ npm start > magicmirror@2.6.0 start /home/pi/MagicMirror > sh run-start.sh run-start.sh: 4: run-start.sh: electron: not found npm ERR! file sh npm ERR! code ELIFECYCLE npm ERR! errno ENOENT npm ERR! syscall spawn npm ERR! magicmirror@2.6.0 start: `sh run-start.sh` npm ERR! spawn ENOENT npm ERR! npm ERR! Failed at the magicmirror@2.6.0 start script. npm ERR! This is probably not a problem with npm. There is likely additional logging output above. npm ERR! A complete log of this run can be found in: npm ERR! /home/pi/.npm/_logs/2019-01-10T07_11_11_053Z-debug.log pi@raspberrypi:~/MagicMirror $ -
finally full success!!:)
@big11 install directly from raspberry terminal not via ssh.
After few fresh installation and hundreds errors last time tried install usingbash -c "$(curl -sL https://raw.githubusercontent.com/ac2799/MagicMirror/master/installers/raspberry.sh)"from raspberrypi terminal.There were some errors but finally worked.
if you want, I can make a image of my card and share it. -
you made my day…
it works…
the first differences i encountered was the Installation of electron …
this i didn’t found at all the others…and i thought before, that this will be the quest…
regarding to the warnings installing npm
you could fix that with “npm Audit fix” or “npm Audit fix --force”
as suggested…i did this also, so maybe this could be an error too…
and if it works but this warnings, who cares…. :-)
have a great day…
thank you -
Awesome write up. Super helpful!
-
Thank you very much for this work! The tutorial works perfectly. I just installed it in a rpi zero W. Highly recommended for anyone who wants to install it on this SBC.
-
Many thanks Andrew - worked well for me (other than first step: connecting to wifi with WPA2 needed some minor tweaks.)
-
@cdh1001 please specify tweaks as they might help others.
-
@andyc7687 - I needed to delete the line:
key_mgmt=WPA-PSKBased on discussions elsewhere I originally tried renaming Key_mgmt to WPA2 and/or changing group=CCMP, but neither of those were necessary for me; simply deleting the line was sufficient. -
@cdh1001 thanks, I will amend my guide over the weekend then.
-
Thanks for the script and the hints so far :-)
Unfortunately I am really frustrated after x installations. :-( Currently everything is installed the autostart works but chrome says “err_connection_refused”!
Does anyone have an idea?
Zero W V1.1 / Raspian Desktop / no sudo
-
@smolo Some suggestions: First, make sure that some form of IP address is present in the
addresskey. Usually 127.0.0.1, but the IP address of your pi will probably work too. Without that value, the web server has a tendency to freak out.Second, make sure you are specifying the port in your web call. That one has bitten me a couple times.
Third, I would double-check your IP whitelist in the
config.js. Possibly open it up to all connections and attempt to view the magic mirror from another computer. See if the problem is local to the PI Zero or if it is on a deeper level. -
@bhepler
First, as a supplement the installation is absolute standard except for another VNC server.
Chromium starts automaticly with http://localhost:8080I have already tested the following constellations before my post.
the local ip (192.168.2.84:8080)
127.0.0.1:8080
localhost:8080“err_connection_refused”
with https browser fault > “err_address_unreachable”
Other things :…
- ublock is inactive!
- Configuration vom MagicMirror Config:
var config = {
port: 8080,
address: “0.0.0.0”,
ipWhitelist: [], - Test from another pc > “err_connection_refused”
-
I’ve solved the problem and it’s going crazy. After I tried with a portscanner to find out if there is anything running I found out that there is no port 8080 open.
If somebody has problems checking the logs via "pm2 logs MagicMirror --lines 1000
I missed the npm module “moment” under “/home/pi/MagicMirror/node_modules/moment”!!!:astonished_face:
Go to MagicMirror > “npm install” the problem was solved!:slightly_smiling_face:
-
@andyc7687, thanks a lot! It will be easy for me now, I planned going for building a device like yours
Regards -
@analogcheep thanks, let me know if yours works and upvote if it is helpful!
-
today i have to reinstall MM and I have some small problem. MM do not show on local hdmi outpul- I can see the dektop but no MM. Server is working properly because when I open it from laptop i can see MM, when I connect to raspberry pi via vnc i can see to MM. What is going on? what i miss?
-
-
thank you for help, i had to reinstal system once more becase there were a lot of errors.
After new instalation pm2 didn’t start properly. after few hours i found why.
In pm2_MagicMirrorPi0.json
line:
“script” : “/MagicMirror/PiZero/startMagicMirror.sh”,
should be :
“script” : “/MagicMirror/PiZero/startMagicMirrorPi0.sh”, -
which installer are you using? I don’t see the filename pm2_MagicMirrorPi0.json
or “script” : “/MagicMirror/PiZero/startMagicMirror.sh”,
in the raspberry.sh script… -
ah, ok… i see you followed the manual instructions back a few posts…
i have a modified raspberry.sh I have for testing, that takes user into account
https://www.dropbox.com/s/izj6dz2z9557oga/raspberry.sh?dl=0
to use it like normal
bash -c “$(curl -sL https://www.dropbox.com/s/izj6dz2z9557oga/raspberry.sh?dl=0)”
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