Skip to content

enhancement: allow optional new install section for modules for automatic installation #3683

@khassel

Description

@khassel

I wrote the module MMM-ModInstall which checks for an install object beside the module config and does install the module if the module dir not exists.

Example:

let config = {
  modules: [
    {
      module: "MMM-ModInstall",
    },
    {
      module: "MMM-Flights",
      install: {
        url: "https://gitlab.com/khassel/MMM-Flights.git",
        branch: "",
        command: "",
        timeout: 300; // in sec.
      },
      config: {
        // module config ...
      },
    },
  ],
};

Problems with this approach

  • you need to install MMM-ModInstall before you can use it (bad for automation)
  • MMM-ModInstall must be the first module in modules section to install following modules

I think auto installation should be a feature of core mm. This would solve the above problems und the config.js would contain all values for (re)installing the modules.

It is an additional feature and will not break any existing stuff.

I would be happy to move the ~40 lines of code into mm core if accepted.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions