-
-
Notifications
You must be signed in to change notification settings - Fork 4.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
enhancement: allow optional new install section for modules for automatic installation #3683
Comments
have you tried my mmm-config, auto discovery and config. add/remove from running(disable) the hard part is getting from github to modules folder |
Hi, @khassel
So, now i will write only in French Je ne suis pas d'accord d'avoir un installateur de module intégré à MagicMirror². Je pense qu'il serait mieux de corriger les "derniers" bugs (calendar, weather, la suite de tests, ...) avant de coder des choses inutles (par exemple: #3682 ) Les fonctionnalitées comme la "mise a jour automatique" via updatenotification, les animations des modules et autres ne devraient plus être autorisé a etre codé dans MM² donc l'auto-installation, je suis contre :( |
i think if we were going to do something here,
after start , continuing config/update is another problem xxx I think is what your MMM-ModInstall module does or more simply, use the catalog and do the clone/npm that other part would take on config and continuing config. |
my intention is only to get things automated. I want to have a So having a |
Je préfère me taire et plus rien dire. |
i like the idea but adding a new section to many no longer maintained modules makes it hard to get there. many of the modules won't be visual or functional with the default values.. (our cal and weather are not), I know a couple of authors that have had medical problems and will never be back, and don't have the capability to transfer ownership. don't get me wrong, I want this too.. anyone use HomeAssistant Community Store (not to mention the integrations install......) , but HA has a strong UI base |
thats not the point, as a mm user I would become the ability to setup such an "automated" |
The idea of only having to put my config.js into a fresh installation for it to work is tempting. This should work for all my modules. "no longer maintained modules" should not stop us from introducing improvements. I'm also in favour of not bloating the core unnecessarily, but I think this is worth including. Something like an app store or module store would of course also be great, but that is a separate topic which should be dealt with independently of this PR. @bugsounet Sorry, I don't understand French. |
@khassel , ok, so the idea is to insert a new module with JUST the URL info(for your module), so that your module can do the clone and install. @KristjanESPERANTO do you save any of the info building the 3rd party list as json, name, description, url |
yes, example: normal module config as we do it all the time: {
module: "MMM-Flights",
config: {
// module config ...
},
}, now add a new section if you want it to be installed automatic, so it looks like: {
module: "MMM-Flights",
install: {
url: "https://gitlab.com/khassel/MMM-Flights.git",
},
config: {
// module config ...
},
}, You could do it with most modules including unmaintained ones ... |
Yes, you can find it |
I decided to put action where my mouth is new module installer |
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:
Problems with this approach
MMM-ModInstall
before you can use it (bad for automation)MMM-ModInstall
must be the first module inmodules
section to install following modulesI 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.
The text was updated successfully, but these errors were encountered: