-
The Magic Mirror2
Documentation
-
my Magic Mirror
-
Source: docs.magicmirror.builders
and doityourself
configuration
-
Since 2020 the only official instalation is the manual installation.
-
Connect via SSH to your Rapberry Pi.
Download and install the latest Node.js version:
curl -sL https://deb.nodesource.com/setup_20.x | sudo -E bash -
sudo apt install -y nodejs
-
Clone the repository and check out the master branch:
git clone https://github.com/MichMich/MagicMirror
-
Change directory to repository:
cd MagicMirror/
Install the application: npm install
takes some minutes on Raspberry Pi 4.
sudo npm install -g npm@11.0.0
-
Make a copy of the config sample file:
cp config/config.js.sample config/config.js
-
Test:
Start the application: npm run start
(For Server Only use: npm run server)
stop with ctrl c
-
to start at boot install pm2:
sudo npm install -g pm2
and start pm2
pm2 startup
-
configure pm2:
cd ~
nano mm.sh
add to file:
cd ~/MagicMirror
DISPLAY=:0 npm start
save file!
modify the execution permission
chmod +x mm.sh
-
Start:
pm2 startup
pm2 start mm.sh
and save status:
sudo pm2 save
-
if you want you can stop with:
pm2 stop mm.sh
or restart with
pm2 restart mm.sh
-
Disable screensaver:
Click the Menu button
>> Preferences
>> Raspberry Pi Configuration
.
In opening window select the tab Display
.
Change Screen Blanking
to Disable
. Then click OK
.
-
Rotate Display:
Click the Menu button
>> Preferences
>> Screen Configuration
.
In opening window right click
the display, in context menu select Orientation
.
Click
the way you want to rotate the display.
Click
OK
-
Update Magic Mirror
backup your config.js, custom.css and modules folder
navigate to the MagicMirror folder
cd ~/MagicMirror/
git pull && npm install --only=prod --omit=dev
-
Modules
Positions: magicmirror.builders
3rd Party Modules
Examples
cd ~/MagicMirror/Modules
git clone https://github.com/jalibu/MMM-Jast
cd MMM-Jast
npm install
cd ~/MagicMiror/Modules
git clone https://github.com/fewieden/MMM-Fuel
cd MMM-Fuel
npm install
cd ~/MagicMiror/Modules
git clone https://github.com/jalibu/MMM-NINA
cd MMM-NINA
npm install
cd ~/MagicMiror/Modules
git clone https://github.com/Linas1234/MMM-Regenradar.git
cd MMM-Regenradar
npm install
cd ~/MagicMiror/Modules
git clone https://github.com/XBCreepinJesus/MMM-ServerStatus.git
cd MMM-ServerStatus/
npm install
Show Web Page
{ module: "helloworld",
position: "top_right",
config: {
text: "<iframe src='YOUR_URL' style='height: 500px; width: 300px;'&$
}
},
Update Modules
navigate to module
git pull
if "your local changes to the following files would be overwritten by merge" then
git reset --hard
and try again
-
Update npm
cd ~/MagicMirror
npm install -g npm@latest