This bash script automates the process of installing MagicMirror with any of your favourite modules. This approach allows for easy backup and replication of your mirror if need be.
The script installs MagicMirror in the same directory as this cloned repository.
-
Clone this repository
-
cd into the cloned repository
-
Convert the script to executable (right click --> Properties --> Permissions --> Is executable --> Checked)
-
Edit the
config.js
file to the requried configuration for each of the modules. Example modules and configuration options can be here:Module Name Github URL MMM-World Clock https://github.com/BKeyport/MMM-Worldclock MMM-PostDelivery-Norway https://github.com/reidarw/MMM-PostDelivery-Norway.git MMM-TRV-WastePlan https://github.com/reidarw/MMM-TRV-WastePlan.git MMM-Entur-tavle https://github.com/Arve/MMM-Entur-tavle.git MMM-Tibber https://github.com/ottopaulsen/MMM-Tibber MMM-Tools https://github.com/bugsounet/MMM-Tools -
Run the
InstallMagicMirrorWithModules.js
-
The script will require your user password before installing as some of the commands require superuser role (sudo). MagicMirror itself does not need superuser role, but the apt update and upgrade commands do.
-
That is it! You should see your MagicMirror up and running
After installation is complete. The next time you want to start MagicMirror, navigate to the directory where MagicMirror is installed and use one of the following commands:
npm run server
(starts a local server) ORnpm run start
(runs the application on the host machine)
- Rapsberry Pi 3B+
- Kubuntu 20.04
If you would like to contribute, please do and send me a pull request. 👍