How to Make a Magic Mirror with Raspberry Pi

Pages
Contributors: Ell C
Favorited Favorite 6

Installing Magic Mirror

If you've followed along with the Raspberry Pi 4 Kit Hookup Guide, you should have a functioning Raspberry Pi desktop in front of you. Now we can move on to the "magic"!

Installing Magic Mirror

The basic installation is relatively straight forward. We'll run through the steps here, but you can also head over to the Magic Mirror Installation & Usage tutorial and follow their steps.

Install NodeSource

We first need to install NodeSource. Open a terminal window on your Raspberry Pi desktop. Then copy and paste the following code:

language:shell
curl -sL https://deb.nodesource.com/setup_10.x | sudo -E bash -

If all goes well, you should see something like the following:

Step1_-_Installing NodeSource

Click the image for a closer look.

Install NodeJS

The next thing we need is NodeJS. Copy and paste the code below into your terminal window:

language:shell
sudo apt install -y nodejs

Step2_-_Installing NodeJS

Installing NodeJS....

Step2_-_Installing NodeJS In Progress

Clone the MagicMirror GitHub Repo

Now we get to the good part! Let's clone the MagicMirror GitHub repo to our Raspberry Pi. Copy and paste this code to your terminal and watch the GitHub clone magic happen....

language:shell
git clone https://github.com/MichMich/MagicMirror

Step3-Cloning the Git Repo

Away we go!

Step3-Cloning the Git Repo Complete

Install Magic Mirror

We're close! Go ahead and cd (change dir) into the MagicMirror directory:

language:shell
cd MagicMirror

And then we type in the following:

language:shell
npm install

Step4-Install Magic Mirror

Copy the Sample Config File

So close! Let's copy the sample config file into one we can play around with:

language:shell
cp config/config.js.sample config/config.js

Step5-Copy Config Sample

Run the Sample Config

Okay! Let's make this magic!

language:shell
npm start

Default Magic Mirror