Skip to content

This bash script automates the process of installing Magic Mirror with my favourite modules. This approach allows for easy backup and replication of your mirror if need be.

License

Notifications You must be signed in to change notification settings

jeev20/AutomatedMagicMirrorInstallation

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Automated MagicMirror Installation

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.

Usage

  1. Clone this repository

  2. cd into the cloned repository

  3. Convert the script to executable (right click --> Properties --> Permissions --> Is executable --> Checked)

  4. 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
  5. Run the InstallMagicMirrorWithModules.js

  6. 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.

  7. That is it! You should see your MagicMirror up and running

OutputSample

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) OR
  • npm run start (runs the application on the host machine)

Script tested in

  • Rapsberry Pi 3B+
  • Kubuntu 20.04

If you would like to contribute, please do and send me a pull request. 👍

About

This bash script automates the process of installing Magic Mirror with my favourite modules. This approach allows for easy backup and replication of your mirror if need be.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published