Code Monkey home page Code Monkey logo

mmm-autoinstall's Introduction

Auto Install - MagicMirror² module

Build Status

This is a module for MagicMirror². Checks the configuration for modules that are used, not but installed. Missing modules are fetched from the configured repository and npm install is run afterwards.

Installing the module

To install the module, just clone this repository to your modules folder: git clone https://github.com/qistoph/MMM-autoinstall.git autoinstall. Then run cd autoinstall and npm install to install the dependencies.

Using the module

This module should be loaded before any modules with a repository URL. Preferably configure this module first in your config:

modules: [
  {
    module: 'autoinstall'
  },
]

Modules that should be automatically installed need to have a repository set. E.g.

modules: [
  {
    module: 'nstreinen',
    repository: 'https://www.github.com/qistoph/MMM-nstreinen',
    config: {
      ...
    }
  }
]

If only default modules or modules with a repository configured are used, you now only have to copy your config.js to a new system (e.g. from your dev/test to your actual mirror) and all modules will automatically be installed.

Updating outdated modules

The default module updatenotifier will let you know when updates are available. You can use autoinstall to install available updates for your modules that have a repository defined. This is not automatically done on startup, because it slows down the initialization of your mirror.

To check for updates and install them, run this in your MagicMirror² directory:

nodejs modules/autoinstall/update.js

mmm-autoinstall's People

Contributors

dependabot[bot] avatar qistoph avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar

mmm-autoinstall's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.