• 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.

Use npm for module installs

Scheduled Pinned Locked Moved Feature Requests
16 Posts 6 Posters 9.1k Views 4 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.
  • P Offline
    paviro Admin
    last edited by May 3, 2016, 11:55 AM

    That’s correct but would that be a real problem?

    We're all stories in the end. Just make it a good one, eh?

    – The Doctor

    M 1 Reply Last reply May 3, 2016, 12:03 PM Reply Quote 0
    • M Offline
      MichMich Admin @paviro
      last edited by May 3, 2016, 12:03 PM

      @paviro Yes,it has to big of an impact on the file structure. This would require a lot of rewriting. (And besides that, it’s extremely ugly :))

      1 Reply Last reply Reply Quote 0
      • P Offline
        paviro Admin
        last edited by May 3, 2016, 12:04 PM

        I agree on the ugly part :D your are right I guess, would just be easier for the users :) but probably not enough to be worth it.

        We're all stories in the end. Just make it a good one, eh?

        – The Doctor

        1 Reply Last reply Reply Quote 0
        • M Offline
          MichMich Admin
          last edited by May 3, 2016, 12:18 PM

          It’s not that it’s not worth it. It’s just not cleanest solution.

          1 Reply Last reply Reply Quote 0
          • N Offline
            nogE
            last edited by Apr 27, 2017, 6:56 PM

            if it could be possible to build a Management Interface like iobroker (www.iobroker.org), it would be much more comfortable to use. Good node update und plugin design.

            1 Reply Last reply Reply Quote 0
            • B Offline
              Beh
              last edited by Apr 28, 2017, 5:59 PM

              I’d really like to see some kind of ‘package manager’ for all the mirror modules. A more or less centralized solution for this would be great.

              But I agree with @MichMich that npm is not really the solution for that.

              B 1 Reply Last reply Apr 29, 2017, 7:38 AM Reply Quote 0
              • B Offline
                broberg Project Sponsor @Beh
                last edited by Apr 29, 2017, 7:38 AM

                @Beh Maybe a setup page for the MM config file,

                basically just a script that runs just like the MM page (maybe could be started with npm start config?)
                where you could access a list of modules (retrieved from an “official” module list that has the right format),

                And when the module is selected and “install” is clicked the page does the git clone process, npm install and adds the configuration fields to the config.js file according to the instructions gotten from the module list. (all default settings except for location which the user should select before he is able to install the module).

                Since the format of the config for all modules are more or less the same it shouldn’t be that difficult to have the page retrieve the different config variables from the modules and display it in a more userfriendly way (ie input fields on a html page instead of sorting out the “code”).

                Because let’s face it, most of the “troubleshooting” for new users are config file related errors (a comma missing or using wrong quotation marks, placing the module code outside the module list etc etc)

                Shouch a solution would probably not require a rewrite of any MM base code, it would just be a standalone addition.
                But it would require a compatible modules list with a strict format.

                S 1 Reply Last reply Apr 29, 2017, 7:48 AM Reply Quote 1
                • S Offline
                  strawberry 3.141 Project Sponsor Module Developer @broberg
                  last edited by Apr 29, 2017, 7:48 AM

                  @broberg so whats the difference on what you described to the remote module?

                  Please create a github issue if you need help, so I can keep track

                  B 1 Reply Last reply Apr 29, 2017, 10:22 AM Reply Quote 0
                  • B Offline
                    broberg Project Sponsor @strawberry 3.141
                    last edited by broberg Apr 29, 2017, 10:46 AM Apr 29, 2017, 10:22 AM

                    @strawberry-3.141 I have no bloody idea, haven’t tried the remote module.

                    but first off, not remote, second it could fetch a list (database) of modules and execute the git clone commands directly. or is that included in the remote as well?

                    S 1 Reply Last reply Apr 29, 2017, 11:09 AM Reply Quote 0
                    • S Offline
                      strawberry 3.141 Project Sponsor Module Developer @broberg
                      last edited by Apr 29, 2017, 11:09 AM

                      @broberg it is

                      Please create a github issue if you need help, so I can keep track

                      B 1 Reply Last reply Apr 29, 2017, 11:22 AM Reply Quote 1
                      • 1
                      • 2
                      • 1 / 2
                      • First post
                        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