• Recent
  • Tags
  • Unsolved
  • Solved
  • MagicMirror² Repository
  • Documentation
  • 3rd-Party-Modules
  • Donate
  • Discord
  • Register
  • Login
MagicMirror Forum
  • Recent
  • Tags
  • Unsolved
  • Solved
  • MagicMirror² Repository
  • Documentation
  • 3rd-Party-Modules
  • Donate
  • Discord
  • Register
  • Login
A New Chapter for MagicMirror: The Community Takes the Lead
Read the statement by Michael Teeuw here.

New module installer

Scheduled Pinned Locked Moved General Discussion
51 Posts 7 Posters 8.4k Views 6 Watching
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    sdetweil
    last edited by sdetweil Jan 17, 2025, 10:46 PM Jan 17, 2025, 10:34 PM

    @chrisfr1976

    thanks for your patience… I think this will be better

    I have merged the installer function into the MMM-Config module

    currently the installer function is in a separate branch (with_installer) while we test it out

    note: if you are using docker, then these steps need to be done INSIDE the running container, using
    docker exec -it mm bash
    to get to a commandline inside the container
    AFTER using ssh to get to the docker host commandline

    if you don’t have MMM-Config

    cd ~/MagicMirror/modules
    git clone https://github.com/sdetweil/MMM-Config
    cd MMM-Config
    git checkout with_installer
    npm install
    

    see the readme above on how to add this module to your config.js

    if you already have MMM-Config

    cd ~/MagicMirror/modules/MMM-Config
    git pull
    git checkout with_installer
    npm install
    

    no configuration changes are required

    restart your MagicMirror instance

    for docker based MM instances, the steps are the same
    I notice that some of the files in the git pull will be marked as changed,
    altho its only the permissions
    so erase those files and then git pull
    and then checkout the with_installer branch
    etc

    Using the installer

    use this url

    http://mm_server:MM_port/installer
    

    and you will get the installer module selection page

    see the readme for usage

    after pushing the install selected modules button and the individual module installs complete,
    the MMM-Config configuration page will replace the installer page you had open

    when you are done configuring the modules, press Save, Create config
    and the current MMM-Config page will be closed, and your MM instance will be restarted
    (in most cases)

    from the readme

    MMM-Config will try to restart your MagicMirror system after configuration is complete
    
    if the MagicMirror instance is configured to auto restart due to config.js, that will happen naturally
    
    if the MagicMirror instance is NOT configured to auto restart due to config.js, then the MMM-Config **restart option** will be used to restart
    
    if the MagicMirror instance is in a docker container, like khassel's then the MagicMirror process will be killed, causing the container to restart
    
    if none of those options work, then you will have to restart the MagicMirror instance manually (same as if you modified config.js on your own)
    

    Sam

    How to add modules

    learning how to use browser developers window for css changes

    P 1 Reply Last reply Jan 18, 2025, 1:44 AM Reply Quote 0
    • P Offline
      plainbroke @sdetweil
      last edited by plainbroke Jan 18, 2025, 1:48 AM Jan 18, 2025, 1:44 AM

      @sdetweil
      All I am getting is this:

      “Select all the modules you would like to install”

      Nothing else it is just white below that …

      Slow learner. But trying anyways.

      S 1 Reply Last reply Jan 18, 2025, 2:35 AM Reply Quote 0
      • S Offline
        sdetweil @plainbroke
        last edited by Jan 18, 2025, 2:35 AM

        @plainbroke go to the module folder and do git pull

        then reload the installer page

        Sam

        How to add modules

        learning how to use browser developers window for css changes

        P 2 Replies Last reply Jan 18, 2025, 2:56 AM Reply Quote 0
        • P Offline
          plainbroke @sdetweil
          last edited by plainbroke Jan 18, 2025, 2:59 AM Jan 18, 2025, 2:56 AM

          @sdetweil
          Ok did the git pull now I get the same thing but in a tan background color.

          should i do the
          git pull
          git checkout with_installer
          npm install

          did that and it says everything is up to date.
          I really hoped that would get it running.
          Sounds like a very useful module.

          Slow learner. But trying anyways.

          S 1 Reply Last reply Jan 18, 2025, 3:03 AM Reply Quote 0
          • P Offline
            plainbroke @sdetweil
            last edited by Jan 18, 2025, 3:03 AM

            @sdetweil
            http://192.168.1.200:8280/modules/MMM-Config/module_installer/module_installer.html
            Is that the installer page you are talking about?
            Or is there something else I should try???

            Slow learner. But trying anyways.

            S 1 Reply Last reply Jan 18, 2025, 3:05 AM Reply Quote 0
            • S Offline
              sdetweil @plainbroke
              last edited by Jan 18, 2025, 3:03 AM

              @plainbroke hm…

              can you open the module folder and see if

              module_form_schema.json

              is present

              also can you open the config page

              http://server:port/modules/MMM-Config/review

              Sam

              How to add modules

              learning how to use browser developers window for css changes

              1 Reply Last reply Reply Quote 0
              • S Offline
                sdetweil @plainbroke
                last edited by Jan 18, 2025, 3:05 AM

                @plainbroke if you go to /installer it redirects to the correct url

                Sam

                How to add modules

                learning how to use browser developers window for css changes

                P 1 Reply Last reply Jan 18, 2025, 3:12 AM Reply Quote 0
                • P Offline
                  plainbroke @sdetweil
                  last edited by Jan 18, 2025, 3:12 AM

                  @sdetweil

                  pi@CameraS:~/MagicMirror/modules/MMM-Config $ dir
                  config.html                       form-client.js                     node_helper.js     schema3_19492568968280.json  translations
                  config_lastchange_19492568968280  MMM-Config.css                     node_modules       schemas                      webform.css
                  create_form_for_module.cmd        MMM-Config.js                      package.json       scripts                      webform.js
                  create_form_for_module.sh         MMM-Config.schema.json             package-lock.json  templates                    workdir
                  defaults_19492568968280.js        module_installer                   postinstall        test_convert.cmd
                  doc_images                        modules_lastchange_19492568968280  postinstall.cmd    test_convert.sh
                  exec_script.js                    modules_list.txt                   README.md          touch.cmd
                  

                  When I ran it with review it came back.
                  Cannot GET /modules/MMM-Config/installer

                  Slow learner. But trying anyways.

                  S 1 Reply Last reply Jan 18, 2025, 3:13 AM Reply Quote 0
                  • S Offline
                    sdetweil @plainbroke
                    last edited by Jan 18, 2025, 3:13 AM

                    @plainbroke sorry cd module_installer

                    Sam

                    How to add modules

                    learning how to use browser developers window for css changes

                    P 1 Reply Last reply Jan 18, 2025, 3:14 AM Reply Quote 0
                    • P Offline
                      plainbroke @sdetweil
                      last edited by plainbroke Jan 18, 2025, 3:28 AM Jan 18, 2025, 3:14 AM

                      @sdetweil
                      Yes it is in there.

                      I am going to turn in been sick for the last 2 days. worn out…
                      Take your time with it. I am in no hurry.

                      Slow learner. But trying anyways.

                      S 3 Replies Last reply Jan 18, 2025, 3:29 AM Reply Quote 1
                      • 1
                      • 2
                      • 3
                      • 4
                      • 5
                      • 6
                      • 2 / 6
                      2 / 6
                      • First post
                        13/51
                        Last post
                      Enjoying MagicMirror? Please consider a donation!
                      MagicMirror created by Michael Teeuw.
                      Forum managed by Sam, technical setup by Karsten.
                      This forum is using NodeBB as its core | Contributors
                      Contact | Privacy Policy