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.

    Are you tired of editing config.js, or have trouble doing it, see my new module

    Scheduled Pinned Locked Moved Utilities
    293 Posts 28 Posters 399.4k Views 31 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 Do not disturb
      sdetweil
      last edited by sdetweil

      I’ve watched as users continue to struggle with formatting in config.js and i think I have a solution

      https://github.com/sdetweil/MMM-Config

      it automatically discovers what you have installed (in the modules folder) and what you are using (in config.js)

      and will let you turn them on/off, edit the settings and change the module positions. all in a form.

      every time u start MagicMirror it will check to see if config.js has changed since last time, and if you’ve added or removed something from the modules folder… it will construct a form that will allow you to edit the settings of everything.

      and then save it back to config.js (after saving the current copy) (and if using PM2) restart MM to use that new config.js

      also works on Windows installations of MM.

      it can put a QR code on the screen so you can use your phone or ipad, or other scanning device so u don’t have to know the url
      and can also be bookmarked etc…
      I supply a css to allow you to change color of the form.

      some screen shots
      initial form screen
      Screenshot at 2021-05-20 18-39-08.png

      base expanded

      Screenshot at 2021-05-20 18-39-25.png

      some places I can tell what you can do
      Screenshot at 2021-05-20 18-39-18.png

      modules list, blue is enabled, red disabled… (u can changed that in the css file)
      Screenshot at 2021-05-20 18-39-40.png

      sample module form section , discovered from module source file and config.js usage (if any)

      Screenshot at 2021-05-20 18-39-52.png

      module position info, cause you may need one above another, (clock and calendar for example)
      and things in other areas…
      Screenshot at 2021-05-20 18-40-13.png

      if u disable a module (checkbox), the contents STAYS in config.js, otherwise it would lose the important info (apikeys, urls, etc)

      thanks to a few testers(who can name themselves if they want) , we’ve gone thru a lot of modules, but not all…
      so I expect there will be reports of troubles… give it a shot and let me know…

      it currently doesn’t support multiple instances of the same module (used for pages and carousel or similar type modules ), or things like my Covid19 charter.
      but I have an open issue and am working on it…

      Sam

      How to add modules

      learning how to use browser developers window for css changes

      Mykle1M S lavolp3L cowboysdudeC FoziF 5 Replies Last reply Reply Quote 17
      • Mykle1M Offline
        Mykle1 Project Sponsor Module Developer @sdetweil
        last edited by Mykle1

        @sdetweil

        Possibly the most important module ever written for MM. I can see that all the config errors for users (new and old) will be virtually eliminated. I applaud your work on this. Just fantastic!

        Works on MM installations on Ubuntu 16.04 LTS and 20.04 LTS, too.

        Peace!

        Create a working config
        How to add modules

        S 1 Reply Last reply Reply Quote 1
        • S Do not disturb
          sdetweil @sdetweil
          last edited by

          if u set your config.js to allow connection from outside the mm system, you can config from anywhere

          Sam

          How to add modules

          learning how to use browser developers window for css changes

          1 Reply Last reply Reply Quote 1
          • BKeyportB Offline
            BKeyport Module Developer
            last edited by

            WOW! this is cool. I’ll have to see how it works when I get my test box setup.

            The "E" in "Javascript" stands for "Easy"

            1 Reply Last reply Reply Quote 0
            • B Offline
              bdream
              last edited by

              @sdetweil Haven’t had all users the wish for exactly this app?

              Great job :flexed_biceps_medium-light_skin_tone:

              –
              cheers, bdream

              1 Reply Last reply Reply Quote 0
              • lavolp3L Offline
                lavolp3 Module Developer @sdetweil
                last edited by

                @sdetweil Happy to see this developing further. Have waited for something like this for ages!

                How to troubleshoot modules
                MMM-soccer v2, MMM-AVStock

                1 Reply Last reply Reply Quote 0
                • cowboysdudeC Offline
                  cowboysdude Module Developer @sdetweil
                  last edited by

                  @sdetweil WOW this is really AWESOME!!! Very much needed!!

                  Awesome job!!!

                  Thank you Sam!!!

                  1 Reply Last reply Reply Quote 0
                  • S Do not disturb
                    sdetweil @Mykle1
                    last edited by

                    @mykle1 I develop on Ubuntu 18.04, so it works there too!

                    Sam

                    How to add modules

                    learning how to use browser developers window for css changes

                    Mykle1M 1 Reply Last reply Reply Quote 1
                    • Mykle1M Offline
                      Mykle1 Project Sponsor Module Developer @sdetweil
                      last edited by

                      @sdetweil

                      :thumbsup:

                      Create a working config
                      How to add modules

                      1 Reply Last reply Reply Quote 0
                      • S Offline
                        stoffel
                        last edited by

                        hallo everyone,

                        im new with the fantastic mm and i am german so sorry for my english.
                        i testing this modul.

                        for me MMM-Config is not working. the config.html page say MagicMirror is not running.
                        i tested from my pc and direct from my rpi.

                        mmm-config-console.png

                        file not found ‘/modules/MMM-Config/node_modules/jsonform/deps/opt/bootstrap.css.map’
                        i have installed this module 2 times.
                        i have searched in the whole rpi but nothing.

                        my rpi:
                        Raspberry Pi 3B +
                        updated raspian

                        config.js:
                        address: ‘0.0.0.0’
                        ipWhitelist: []

                        who have this file, or where can i download this file ?

                        thanks sdetweil for this great module and a nice day for all

                        S 1 Reply Last reply Reply Quote 0
                        • S Do not disturb
                          sdetweil @stoffel
                          last edited by

                          @stoffel this is because the scanner failed.

                          please look at the messages where u start mm

                          npm start or pm2

                          if pm2, then the pm2 logs --lines=100
                          will produce the output.

                          Sam

                          How to add modules

                          learning how to use browser developers window for css changes

                          1 Reply Last reply Reply Quote 0
                          • S Offline
                            stoffel
                            last edited by

                            thanks sdetweil for your answer,

                            thats the result:

                            0|MagicMirror  | [24.05.2021 16:24.42.647] [LOG]
                            0|MagicMirror  | stdout: completed
                            0|MagicMirror  | [24.05.2021 16:24.42.672] [ERROR]
                            0|MagicMirror  | stderr 2: /home/pi/MagicMirror/modules/MMM-Config/scripts/buildschema3.js:595
                            0|MagicMirror  |     let tt = data[left];
                            0|MagicMirror  |                  ^
                            0|MagicMirror  | TypeError: Cannot read property '' of undefined
                            0|MagicMirror  |     at get_define_info (/home/pi/MagicMirror/modules/MMM-Config/scripts/buildschema3.js:595:18)
                            0|MagicMirror  |     at get_define_info (/home/pi/MagicMirror/modules/MMM-Config/scripts/buildschema3.js:599:12)
                            0|MagicMirror  |     at get_define_info (/home/pi/MagicMirror/modules/MMM-Config/scripts/buildschema3.js:599:12)
                            0|MagicMirror  |     at /home/pi/MagicMirror/modules/MMM-Config/scripts/buildschema3.js:415:29
                            0|MagicMirror  |     at Array.forEach (<anonymous>)
                            0|MagicMirror  |     at Object.<anonymous> (/home/pi/MagicMirror/modules/MMM-Config/scripts/buildschema3.js:405:24)
                            0|MagicMirror  |     at Module._compile (internal/modules/cjs/loader.js:1068:30)
                            0|MagicMirror  |     at Object.Module._extensions..js (internal/modules/cjs/loader.js:1097:10)
                            0|MagicMirror  |     at Module.load (internal/modules/cjs/loader.js:933:32)
                            0|MagicMirror  |     at Function.Module._load (internal/modules/cjs/loader.js:774:14)
                            
                            

                            but why or where searched for bootstrap.css.map

                            i hope you can help me

                            S 1 Reply Last reply Reply Quote 0
                            • S Do not disturb
                              sdetweil @stoffel
                              last edited by sdetweil

                              @stoffel do another git pull… there was a fix yesterday for this… please advise

                              otherwise send me the config.js and the defaults.js (from the modules folder)

                              if u edit any personal info (I don’t share), please try to keep all the lines, don’t delete any

                              send to my email, same userid as here, at gmail.com

                              Sam

                              How to add modules

                              learning how to use browser developers window for css changes

                              1 Reply Last reply Reply Quote 0
                              • S Offline
                                stoffel
                                last edited by

                                i have try it, but all was actuel. also i make an npm install.
                                not solved the problem. it is an file not found error.
                                i send you my config.js and the default.js from the modul

                                and thanks for your help

                                S 1 Reply Last reply Reply Quote 0
                                • S Offline
                                  stoffel
                                  last edited by

                                  ich muss kurz weg. melde mich später nochmal

                                  1 Reply Last reply Reply Quote 0
                                  • S Do not disturb
                                    sdetweil @stoffel
                                    last edited by

                                    @stoffel are you using the MM url

                                    http://mm_address:mm_port/modules/MMM-Config/config.html
                                    

                                    got your files… this will take some thinking…

                                    compliments_plus has a data item with lots of .

                                     "..--..--...."
                                    

                                    the forming system can’t handle the dots in the naming scheme
                                    cause it sees the dots as part of the name, not a literal…

                                    regular compliments has them as LEADING only, and I can trick it…
                                    compliments plus has trailing and/or embedded…

                                    currently there is no escaping mechanism…

                                    I opened issued
                                    https://github.com/sdetweil/MMM-Config/issues/8

                                    Sam

                                    How to add modules

                                    learning how to use browser developers window for css changes

                                    1 Reply Last reply Reply Quote 0
                                    • S Offline
                                      stoffel
                                      last edited by

                                      i’v tryed with my address, the same.

                                      the “…–…–…” are original here
                                      but this

                                                ],
                                                '01-01-....': [
                                                  null
                                                ],
                                                '..-..-....': [
                                                  null
                                                ]
                                      

                                      is the result of MMM-Remote-Control module (edit config), i’v changed it to original

                                      		  "01-01-....": [
                                      			function() {return "<i class=\"fa fa-glass-cheers\"></i> Happy New Year! " + moment().format("YYYY")}
                                      		  ],
                                      		  "..-..-....": [
                                      			function() {return moment().locale(config.language).format("dddd, D MMMM")}
                                      			// https://forum.magicmirror.builders/topic/13332/reloading-config-defaults-or-module
                                      		  ],
                                      

                                      the same problem
                                      i have searched here for the missing file, nothing.

                                      i am testing again ;-)

                                      thanks for your help

                                      S 1 Reply Last reply Reply Quote 0
                                      • S Do not disturb
                                        sdetweil @stoffel
                                        last edited by sdetweil

                                        @stoffel the missing file is not involved…

                                        if the name contains a ‘.’ , it breaks the system. the only example I had was compliments, which had leading dots…

                                        Sam

                                        How to add modules

                                        learning how to use browser developers window for css changes

                                        1 Reply Last reply Reply Quote 0
                                        • JalibuJ Offline
                                          Jalibu Module Developer
                                          last edited by

                                          Wow!
                                          Great module! I just checked out compatibility with my modules and am very impressed.
                                          I’ll leave you some feedback on GitHub.

                                          4f85761e-6517-4a4d-b1ce-5884caeb9f91-image.png

                                          1 Reply Last reply Reply Quote 0
                                          • S Offline
                                            stoffel
                                            last edited by

                                            ok, but it works with this 2 variante.

                                            what system breaks ? mm or MMM-Config ?

                                            i’v comment out the compliments_plus modul in the config.js but is the same result

                                            S 1 Reply Last reply Reply Quote 0

                                            Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                                            Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                                            With your input, this post could be even better 💗

                                            Register Login
                                            • 1
                                            • 2
                                            • 3
                                            • 4
                                            • 5
                                            • 14
                                            • 15
                                            • 1 / 15
                                            • 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