Read the statement by Michael Teeuw here.
New module installer
-
There has been a lot of discussion for a while about the complexities of getting MM up and running…
I think we need an end to end solution for modules… so… well… here it is
see https://github.com/sdetweil/installer
it reads the 3rd party list
and presents a form organized by category
with Modules sorted by most recent update (do we need a choice for by name??)
(because its a web page, you can search it too), ctrl-fopen a module, check the install checkbox
and the name will be added to the list at the end of the page (still tbd is remove when u click off)still to be done, allow you to open the module readme (from github) to view more info before deciding on the module (problem with github…, I need help getting the repo front page in the iframe I have… anyone know how??, right now I set the src via JS… , we could source a local MM hosted file which included the github page…)
this will NOT uninstall modules…
then when you have the list press “install selected modules”
and the process with start…
for each module in the list
it will be git cloned , and npm installed if required,
(and any missing dependencies will be fixed from the list we know about,
same as used in my upgrade script)once all the modules are installed,
the page will be closed
and the new MM will be started with all those modules installed, but not yet configuredonce MM is up, then the MMM-Config page will be opened so you can configure the
modules…you can go back to MMM-Config at any time to update the config.js
you can run install again… as many times as you want
I’m sure lots of things are still unknown, but give it a try. the installer part does not change ANY MM files… only does clone and npm install
if you select a module that is ALREADY installed, it just won’t do that step
issues to my repo please.. conversation here
you cannot install a module NOT listed in the 3rd party list …(as of today Jan, 7 2025)
that may need to change toothis will be integrated with the installer script at some time, and if the module installer detects you are using an ssh session to do install, then it will provide the url to open the selection list on your machine… , current content
I see that you are using an SSH session, I cannot open a browser on your machine I also cannot tell which OS you are using, so you need to select one of these choices linux/raspberry pi os, xdg-open http://192.168.2.106:8080/startup macos, open http://192.168.2.106:8080/startup windows, start http://192.168.2.106:8080/startup and copy/paste the command into a local terminal window I will close the browser page when you are done
I had mac, windows, linux and phone pages open concurrently (no live update across)
happy installing!!!
pics
main page
expanded category
expanded module
-
I added sorting by passing date(default) or name to the installer script
./installer name
will sort modules in category by name
-
updated all the issues… starting MM with MM-Config for the config part(using a different port with the same config)
now fully functional
push button opens the module repo in a new page,
you can drag the tab out to a separate browser instance to not have to flip back and forth
(button not yet added to MMM-Config (don’t have url directly yet)have some visual things to fix , using css
-
also haven’t figured out the docker details
-
fixed the install checkbox issue if already installed
added support to install modules via url, for those modules not in the catalog
-
oops…
had to fix a hard coded path
as it was hard coded, I bet it didn’t run!.. doah!