![]() Now you’re going to want to get into that directory and update the Magic Mirro running these two lines of code: Then after you’ve updated – you want to update the Magic Mirror library- because it will likely show updates are available once it is loaded. There are a few things you want to do in the console now – so run this line of code to update Raspian: Step 4: Update Raspberry Pi and Magic Mirror Then, once you’ve updated those two values- simply hit ctrl+x and hit ‘y’ to say yes- that you want to update this file, and it will exit the file and bring you back to the console for our last step here. So, when you boot up- you’ll see something like this: If that’s the case- you want to hit ctrl+alt+f1 or ctrl+w, ctrl+c all seemed to work in stopping the smart mirror from loading so I could do some pre-configuring. You may see the Smart Mirror boot right on up after a few minutes and it might get in your way. When you boot the Raspberry Pi Zero W up, it will bring you directly to the console because it is Raspian Stretch Lite and there is no ‘graphical’ OS- as it would be far too slow for the time being with the graphical version. You just have to go into the wifi configuration directory once you’ve booted up into the console. This is important because updating everything will be reliant on this step. ![]() This is fairly simple- make sure to exit out of the magic mirror if it loads up with ctrl+alt+f1 or ctrl+w so you can configure your wifi. This will save you time and remove the friction of having to exit out of the magic mirror while it autostarts and sleeps in a loop. Then we will come back and rename them back to the original script names i.e. We are just copying them, and removing them temporarily. These steps above will make you enter into your home directory- and we are going to rename two scripts and then remove the original script. Sudo cp chromium_start.sh chromium_start1.sh Go into your home directory and rename the mmstart.sh and chromium_start.sh to different names and remove those files.Įxample or just run these commands from the console: Simply use ctrl+w or ctrl+alt+f1 and once you are back in the console I want you to do two things. One thing however, you may notice- is that you can’t get the mirror to stop. I timed it, and it takes approximately 2 minutes for the Magic Mirror to load- just be patient. Step 2: Plug everything in and start the Pi Zero! More information depending on your OS system of choice here: You can use Etcher, Win32DiskImager- if using Linux or Windows. Step 1: Download the Image and Flash onto SD Card:īasically you need to use a flash tool for loading this image ( link above to original article I used and the image file) onto an SD Card. He also has some other great articles and if you really want to give back to the individual that made this build possible- there’s a donate link at the bottom of his blog. Note: This link was from Emmanuel’s article above- make sure to check it out, great read and very thorough. I will show you the exact steps that I took when I was able to accomplish it in less than 15 minutes time! No kidding! Upon further reading of his great article and build – there’s an image file with raspbian stretch lite- with magic mirror configured on it already! All that is needed – is to update the wifi configuration file, expand the filesystem, and updating the magic mirror library. There’s a great article out there of the manual build – it goes out to Emmanual Contreras and in it- he has both the manual steps to get it to work on a Raspberry Pi Zero W, and also a pre-loaded image with Raspian Stretch Lite, Chromium, Electron etc- so once you flash the image on a good SD card (make sure it’s a descent card)- you can simply boot up the Raspberry Pi Zero and do a couple more steps and within 15 minutes, you’re ready to go!Ĭreating Smart Mirror with Raspberry Pi Zero W (Credit to Emmanual Contreras): See my other article here- if you want to see my full build of my original smart mirror: Click here You can also buy a monitor if you intend to turn this into a Smart Mirror and get all the other goods- but I would just start with the Raspbery Pi Zero W and the SD Card, because it’s very easy to get going and you can customize the aesthetics later. *Don’t forget you need a kit or you can buy the cables seperate, but the kit is the best way to go- however, I do not recommend some of the SD cards that come in those kits, which is why I have it seperate. Bonus Add-Ons / Motion Detection Switch:.Optionals: If you’re building a Smart Mirror All I had to do was update the wifi configuration and update the magic mirror and was ready to go! I went looking online and found a guide that showed how to manual build it, and also at the end of the article- had an image that had the magic mirror pre-loaded on it.
0 Comments
Leave a Reply. |