Read the statement by Michael Teeuw here.
MagicMirror on Pi Zero W
-
This post is deleted! -
@Iseknutz said in MagicMirror on Pi Zero W:
I installed the image from https://forum.magicmirror.builders/topic/1183/how-i-got-my-magic-mirror-working-on-a-raspberry-pi-0-zero/84 , updated the System to use the onboard wifi and this works for me.
@Iseknutz
At least I can get this method up and running on my RPI0w, but what’s the trick to updating the system to use the onboard wifi? I’ve created the wpa_supplicant.conf and I’ve even jacked with the etc/network/interfaces - but no luck getting it to connect to the network.
Thx -
@kylelmartin can you post or pm your WPA_supplicant.conf file? Please remove your passwords and maybe change your wifi name if that makes you feel better.
How are you updating your wpa-supplicant through a terminal or by copying it onto your card? Windows or Mac?
CaptnJB -
@CaptnJB
here is the wpa_supplicant.conf file - or at least the latest rendition of it.country=US ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev update_config=1 network={ ssid="KLM-Guest" key_mgmt=NONE priority=1 id_str="guest" } network={ ssid="mywebsite.com" psk="oldasspw" priority=2 id_str="klm" }My regular old wifi network name has a “.” in the name and I thought that might cause some problems. So, I set up a second guest wifi network so this device wouldn’t need a password.
-
@kylelmartin, I apologize for the delay just landed in Madrid. For starters I would take out the id lines. Keep it simple. Try this.
country=US ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev update_config=1 network={ ssid="KLM-Guest" psk="" priority=1 } network={ ssid="KLM" psk="oldasspw" priority=2 }Also, mywebsite.com should be be your router ssid. If you have it set to that “mywebsite.com” in the file you gave it is most likely “KLM”.
Why would you want the guest network to have priority?
CaptnJB
-
@kylelmartin after the Update to the actual OS, the Onboard-WiFi from my raspi0 was automatically enabled. Did you use the Desktop or console?
-
-
@Iseknutz
What do you mean by “after the Update to the actual OS”? I used the image linked above. I can’t do an update/upgrade as I have no internet connection. I’m using the console on the Pi and editing my conf in Mint Linux. I’m using Jessie Lite rather than the full install.@CaptnJB
Thanks for the rewrite on the wpa_supplicant, but it still won’t connect to any provided wifi network.Thanks to all.
-
@kylelmartin I have connected an USB Wlan Dongle (Edimax, working without extra software) and do the update. Im using Jessie Lite and later I installed the desktop.
Sorry for my bad english ;) -
Greetings from Toulouse. To do the update and upgrade, from the terminal type:
sudo apt-get update
sudo apt-get upgradeAfter the installation of the new updated packages, sudo shutdown. Wait. Remove the power and your edimax adapter and connect power. Now does it work?
JB
-
-
@rootsudo Thank you!
This along with post number 23 got my Pi Zero and Pi zero W working perfectly :)
-
@rootsudo said in MagicMirror on Pi Zero W:
The Beginnings:
- Place wpa_supplicant.conf in Boot folder of SD card
- Boot SD card and login
- Enable SSH: sudo raspi-config -> Select Interfacing Options -> select SSH -> select Enable -> select Finish
After step 4 i recommend creating an empty file called “ssh” and also put it in the Boot folder of the SD card.
So you don’t have to do step 6, cause ssh is started on boot with the default credentials (user: pi, password: raspberry)After boot, it did not open the browser, instead it just showed the console window.
Problem was solved by installing x-server withsudo apt-get install xserver-xorg -
my I please someone to make an image of sd card with installed and working MM? i’m trying about week to run MM on piZero and nothing… all the time diffrent errors which i don’t understand.
-
This post is deleted! -
Hi @12wsx try this thread https://forum.magicmirror.builders/post/32731
-
tried on stretch lite and got this
pi@raspberrypi:~/MagicMirror $ sudo npm install npm WARN engine http-auth@3.2.3: wanted: {"node":">=4.6.1"} (current: {"node":"4.2.1","npm":"2.14.7"}) npm WARN deprecated coffee-script@1.10.0: CoffeeScript on NPM has moved to "coffeescript" (no hyphen) npm WARN engine apache-crypt@1.2.1: wanted: {"node":">=4.6.1"} (current: {"node":"4.2.1","npm":"2.14.7"}) npm WARN engine apache-md5@1.1.2: wanted: {"node":">=4.6.1"} (current: {"node":"4.2.1","npm":"2.14.7"}) npm WARN engine hawk@6.0.2: wanted: {"node":">=4.5.0"} (current: {"node":"4.2.1","npm":"2.14.7"}) -
Warnings don’t necessarily mean that your mirror won’t work. Have you tried to run it after?
One thing to note: Installation of dependencies using
sudocan, and often does, cause problems. So, in the future, simply usenpm installwithout sudoUpdating your node should clear 4 of those 5 warnings
-
I’m currently trying to do this with Debian Stretch, but the noobs image.
Anyway, the update.rc (command 18) doesn’t work here correctly, because they switched to systemd instead of system-V. There is no error, but the command doesn’t get added to the startup.
Replace the file content from step 14 to:#! /bin/bash ### BEGIN INIT INFO # Provides: startMagicMirror # Required-Start: $all # Required-Stop: # Default-Start: 2 3 4 5 # Default-Stop: # Short-Description: Start MagicMirror software ### END INIT INFO cd /home/pi/MagicMirror node serveronly & sleep 45 sudo xinit /home/pi/startMidori.shAfter this, replace the command 18 with:
sudo systemctl enable startMagicMirror.shThis should lead to the following output:
startMagicMirror.sh.service is not a native service, redirecting to systemd-sysv-install. Executing: /lib/systemd/systemd-sysv-install enable startMagicMirror.shAfter this continue with the manual.
It currently only shows a white screen in my case, but I have just started and maybe that’s even normal, haven’t gotten that far yet in the manual.
-
Update1:
In my case the webserver was not accessible over the network, even after adding my client IP address to the /home/pi/MagicMirror/config/config.js file. This file is in the beginning not there, so first create a copy of the sample file:cp /home/pi/MagicMirror/config/config.js.sample /home/pi/MagicMirror/config/config.jsAfter that, edit the file and replace the word localhost with 0.0.0.0. Also don’t forget to edit the ipWhitelist.
Found here: https://forum.magicmirror.builders/topic/5446/ipwhitelist-still-not-working/4Still having just a white blank screen on my PI, but with the web browser from another pc it’s working :)
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