.. author:: Thomas Johnson <https://johnson.tj/>
.. tag:: lang-nodejs
.. tag:: web
.. tag:: smart-mirror
.. tag_list::
MagicMirror² is an open source modular smart mirror platform. With a growing list of installable modules, the MagicMirror² allows you to convert your hallway or bathroom mirror into your personal assistant. MagicMirror² is built by the creator of the original MagicMirror with the incredible help of a growing community of contributors.
Note
For this guide you should be familiar with the basic concepts of
We're using :manual:`Node.js <lang-nodejs>` in the latest version:
[isabell@stardust ~]$ uberspace tools version show node
Using 'Node.js' version: '20'
[isabell@stardust ~]$
Your website domain needs to be set up:
We clone the repository to our home directory and install the application.
[isabell@stardust ~]$ git clone https://github.com/MichMich/MagicMirror
[isabell@stardust ~]$ cd MagicMirror
[isabell@stardust MagicMirror]$ npm install
[…]
[isabell@stardust MagicMirror]$ npm audit fix --force
[…]
[isabell@stardust MagicMirror]$
After the installation you need to setup your config file.
[isabell@stardust MagicMirror]$ cp config/config.js.sample config/config.js
[isabell@stardust MagicMirror]$
Change the address from localhost
to 0.0.0.0
. You may remove the IP addresses in ipWhitelist
to access your MagicMirror² from everywhere.
address: "0.0.0.0",
Create ~/etc/services.d/magicmirror.ini
with the following content:
[program:magicmirror]
directory=%(ENV_HOME)s/MagicMirror
command=npm run server
autostart=yes
autorestart=yes
If it's not in state RUNNING, check your configuration.
Note
MagicMirror² running on port 8080.
Note
Check the update feed regularly to stay informed about the newest version.
Stop your service and repeat the installation step.
Tested with MagicMirror² v2.25.0 and Uberspace 7.15.6
.. author_list::