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 400.9k 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 Offline
      sdetweil @SteakExpert
      last edited by

      @SteakExpert there is more after that that I need…

      Sam

      How to add modules

      learning how to use browser developers window for css changes

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

        @SteakExpert we are looking for content in the MagicMirror runtime messages (from npm start ) that might look like this (forced an error just to get the content)

         [LOG]   stdout: --------------------MMM-Config
        module MMM-Carousel has an error in the construction of its defaults section
        the error line is     transitionTimeout: somevalue,
        please change it to the literal value of the referenced defaults variable
        and restart MagicMirror
        --------------------MMM-Config
        

        the browser message is the last part setup of the error handler

        Sam

        How to add modules

        learning how to use browser developers window for css changes

        1 Reply Last reply Reply Quote 0
        • D Offline
          DarkV
          last edited by

          I am a noob at this, how do I set the port to use the browser and how do I show the QR code on my MM?

          S 1 Reply Last reply Reply Quote 0
          • S Offline
            sdetweil @DarkV
            last edited by sdetweil

            @DarkV the default port is 8080

            you can edit in config.js and change the number, or change it in the form

            and in the MMM-Config config set showQR to true
            or change it in the form
            the doc mentions how to open the form directly in a browser

            note on the QR you MUST change config.js to support outside MagicMirror system access, per the doc

            Sam

            How to add modules

            learning how to use browser developers window for css changes

            D 1 Reply Last reply Reply Quote 0
            • D Offline
              DarkV @sdetweil
              last edited by

              @sdetweil said in Are you tired of editing config.js, or have trouble doing it, see my new module:

              config set showQR

              So, should I add “showQR = True” to the configj.s?
              As I said earlier, I do not have the skill of the format.

              D 1 Reply Last reply Reply Quote 0
              • D Offline
                DarkV @DarkV
                last edited by

                @DarkV
                I get this errorScreenshot 2025-03-27 at 11-04-56 Error.png

                S 1 Reply Last reply Reply Quote 0
                • S Offline
                  sdetweil @DarkV
                  last edited by

                  @DarkV the doc (README.md) says the url

                  IMG_0889.png

                  Sam

                  How to add modules

                  learning how to use browser developers window for css changes

                  D 1 Reply Last reply Reply Quote 0
                  • D Offline
                    DarkV @sdetweil
                    last edited by

                    @sdetweil Apologies for my lack of knowledge, but I didn’t fully understand your response about the URL. Please keep in mind that I’m not very experienced with coding.

                    S 1 Reply Last reply Reply Quote 0
                    • S Offline
                      sdetweil @DarkV
                      last edited by sdetweil

                      @DarkV it takes a little bit of info

                      a url contains
                      a protocol type secure(https) or not (http)
                      a server name or address
                      a port
                      a path
                      and optionally some parameters

                      for MMM-Config

                      just protocol, server, port and path

                      on your local network, we dont need to build our everything for secure encrypted communications

                      if the machine you are opening the browser on is the same machine as MagicMirror is running, then you can use localhost
                      otherwise you need to know the MagicMirror server ip address or network name

                      the port value comes from the MagicMirror config.js, default is 8080
                      (if you dont see a port specified in a url, then the browser uses the default for the protocol, 80 or 443 not/secure, as appropriate)

                      and then the path, for MMM-Config there are two :

                      for configuration
                      /configure
                      and for module installation
                      /installer

                      http://ip:port/configure

                      on the same machine, using defaults
                      http://localhost:8080/configure

                      Sam

                      How to add modules

                      learning how to use browser developers window for css changes

                      D 1 Reply Last reply Reply Quote 0
                      • I Offline
                        IamWayne
                        last edited by

                        Hello, Newbie here, how do you go about using this? What do I need to get started? Do I need Node.js? Have it installed, yet completely lost. How about a guide or video. Thanks

                        S 1 Reply Last reply Reply Quote 0
                        • S Offline
                          sdetweil @IamWayne
                          last edited by

                          @IamWayne did you add the module to config.js?
                          and restart MagicMirror?

                          if so then the url from the doc

                          http://ip:mm_port/configure

                          but by default the MagicMirror config only allows apps from inside the same system to connect, so you would have to minimize MagicMirror then launch a browser to

                          http://localhost:8080/configure

                          or for the module installer

                          http://localhost:8080/installer

                          Sam

                          How to add modules

                          learning how to use browser developers window for css changes

                          1 Reply Last reply Reply Quote 0
                          • I Offline
                            IamWayne
                            last edited by

                            Oh I think that I understand now. I have to add this to the MM installer in the correct folder, correct?

                            S 1 Reply Last reply Reply Quote 0
                            • S Offline
                              sdetweil @IamWayne
                              last edited by

                              @IamWayne this is an add on module, not part of the base

                              see the 1st link in my signature below for short topic about installing modules

                              Sam

                              How to add modules

                              learning how to use browser developers window for css changes

                              1 Reply Last reply Reply Quote 0
                              • citizendevpiC Offline
                                citizendevpi
                                last edited by

                                this module works very well , thanks for the hard work and time . makes this project simple and fun !!

                                1 Reply Last reply Reply Quote 0
                                • D Offline
                                  DarkV @sdetweil
                                  last edited by DarkV

                                  @sdetweil Still no joy, I am going to reinstall.I cannot display the QR code as I do not have any zones left and cannot load the web page1.png Screenshot 2025-04-03 155111.png

                                  S 1 Reply Last reply Reply Quote 0
                                  • S Offline
                                    sdetweil @DarkV
                                    last edited by

                                    @DarkV you dont need the qr code

                                    can you show the messages from npm start?
                                    if using pm2 then

                                    pm2 logs --lines=100
                                    

                                    Sam

                                    How to add modules

                                    learning how to use browser developers window for css changes

                                    D 2 Replies Last reply Reply Quote 0
                                    • D Offline
                                      DarkV @sdetweil
                                      last edited by DarkV

                                      @sdetweil How do I get logs? I am a noob regarding MM
                                      I found this

                                      [08.01.2025 00:49.42.199] [ERROR] Failed to retrieve repo info for MMM-Tools: Error: Command failed: cd /home/junior/MagicMirror/modules/MMM-Tools && git fetch -n --dry-run
                                      fatal: unable to access ‘https://github.com/bugsounet/MMM-Tools/’: Could not resolve host: github.com

                                      S 1 Reply Last reply Reply Quote 0
                                      • D Offline
                                        DarkV @sdetweil
                                        last edited by

                                        This post is deleted!
                                        1 Reply Last reply Reply Quote 0
                                        • S Offline
                                          sdetweil @DarkV
                                          last edited by sdetweil

                                          @DarkV way back further in the log, back 50 lines maybe

                                          as using pm2 the good and error lines are separated into two lists

                                          none of the bugsounet repos are online any more
                                          so if you dont want to see those errors, you can exclude them from the updatenotification module scans

                                          Sam

                                          How to add modules

                                          learning how to use browser developers window for css changes

                                          D 1 Reply Last reply Reply Quote 0
                                          • D Offline
                                            DarkV @sdetweil
                                            last edited by

                                            @sdetweil SyntaxError: Unexpected identifier 'config’
                                             at internalCompileFunction (node:internal/vm:73:18)
                                             at wrapSafe (node:internal/modules/cjs/loader:1185:20)
                                             at Module._compile (node:internal/modules/cjs/loader:1227:27)
                                             at Object…js (node:internal/modules/cjs/loader:1326:10)
                                             at Module.load (node:internal/modules/cjs/loader:1126:32)
                                             at node:internal/modules/cjs/loader:967:12
                                             at Function._load (node:electron/js2c/node_init:2:13357)
                                             at Module.require (node:internal/modules/cjs/loader:1150:19)
                                             at require (node:internal/modules/cjs/helpers:121:18)
                                             at loadConfig (/home/junior/MagicMirror/js/app.js:118:14)
                                             at App.start (/home/junior/MagicMirror/js/app.js:248:18)
                                             at Object. (/home/junior/MagicMirror/js/electron.js:192:7)
                                             at Module._compile (node:internal/modules/cjs/loader:1271:14)
                                             at Object…js (node:internal/modules/cjs/loader:1326:10)
                                             at Module.load (node:internal/modules/cjs/loader:1126:32)
                                             at node:internal/modules/cjs/loader:967:12
                                            /home/junior/MagicMirror/node_modules/electron/dist/electron exited with signal SIGINT
                                            [27.03.2025 09:44.46.126] [WARN] Version is incorrect. Skip module: ‘MMM-Config’
                                            Warning: vkCreateInstance: Found no drivers!
                                            Warning: vkCreateInstance failed with VK_ERROR_INCOMPATIBLE_DRIVER
                                            at CheckVkSuccessImpl (…/…/third_party/dawn/src/dawn/native/vulkan/VulkanError.cpp:88)
                                            at CreateVkInstance (…/…/third_party/dawn/src/dawn/native/vulkan/BackendVk.cpp:458)
                                            at Initialize (…/…/third_party/dawn/src/dawn/native/vulkan/BackendVk.cpp:344)
                                            at Create (…/…/third_party/dawn/src/dawn/native/vulkan/BackendVk.cpp:266)
                                            at operator() (…/…/third_party/dawn/src/dawn/native/vulkan/BackendVk.cpp:521)

                                            [27.03.2025 09:46.55.825] [ERROR] WARNING! Could not validate config file. Starting with default configuration. Please correct syntax errors at or above this line: /home/junior/MagicMirror/config/config.js:122
                                             config: {
                                             ^^^^^^

                                            SyntaxError: Unexpected identifier 'config’
                                             at internalCompileFunction (node:internal/vm:73:18)
                                             at wrapSafe (node:internal/modules/cjs/loader:1185:20)
                                             at Module._compile (node:internal/modules/cjs/loader:1227:27)
                                             at Object…js (node:internal/modules/cjs/loader:1326:10)
                                             at Module.load (node:internal/modules/cjs/loader:1126:32)
                                             at node:internal/modules/cjs/loader:967:12
                                             at Function._load (node:electron/js2c/node_init:2:13357)
                                             at Module.require (node:internal/modules/cjs/loader:1150:19)
                                             at require (node:internal/modules/cjs/helpers:121:18)
                                             at loadConfig (/home/junior/MagicMirror/js/app.js:118:14)
                                             at App.start (/home/junior/MagicMirror/js/app.js:248:18)
                                             at Object. (/home/junior/MagicMirror/js/electron.js:192:7)
                                             at Module._compile (node:internal/modules/cjs/loader:1271:14)
                                             at Object…js (node:internal/modules/cjs/loader:1326:10)
                                             at Module.load (node:internal/modules/cjs/loader:1126:32)
                                             at node:internal/modules/cjs/loader:967:12
                                            /home/junior/MagicMirror/node_modules/electron/dist/electron exited with signal SIGINT
                                            [27.03.2025 09:47.26.134] [WARN] Version is incorrect. Skip module: ‘MMM-Config’
                                            Warning: vkCreateInstance: Found no drivers!
                                            Warning: vkCreateInstance failed with VK_ERROR_INCOMPATIBLE_DRIVER
                                            at CheckVkSuccessImpl (…/…/third_party/dawn/src/dawn/native/vulkan/VulkanError.cpp:88)
                                            at CreateVkInstance (…/…/third_party/dawn/src/dawn/native/vulkan/BackendVk.cpp:458)
                                            at Initialize (…/…/third_party/dawn/src/dawn/native/vulkan/BackendVk.cpp:344)
                                            at Create (…/…/third_party/dawn/src/dawn/native/vulkan/BackendVk.cpp:266)
                                            at operator() (…/…/third_party/dawn/src/dawn/native/vulkan/BackendVk.cpp:521)

                                            /home/junior/MagicMirror/node_modules/electron/dist/electron exited with signal SIGINT
                                            [27.03.2025 09:53.43.417] [WARN] Version is incorrect. Skip module: ‘MMM-Config’
                                            Warning: vkCreateInstance: Found no drivers!
                                            Warning: vkCreateInstance failed with VK_ERROR_INCOMPATIBLE_DRIVER
                                            at CheckVkSuccessImpl (…/…/third_party/dawn/src/dawn/native/vulkan/VulkanError.cpp:88)
                                            at CreateVkInstance (…/…/third_party/dawn/src/dawn/native/vulkan/BackendVk.cpp:458)
                                            at Initialize (…/…/third_party/dawn/src/dawn/native/vulkan/BackendVk.cpp:344)
                                            at Create (…/…/third_party/dawn/src/dawn/native/vulkan/BackendVk.cpp:266)
                                            at operator() (…/…/third_party/dawn/src/dawn/native/vulkan/BackendVk.cpp:521)

                                            /home/junior/MagicMirror/node_modules/electron/dist/electron exited with signal SIGINT
                                            [27.03.2025 09:59.04.576] [WARN] Version is incorrect. Skip module: ‘MMM-Config’
                                            Warning: vkCreateInstance: Found no drivers!
                                            Warning: vkCreateInstance failed with VK_ERROR_INCOMPATIBLE_DRIVER
                                            at CheckVkSuccessImpl (…/…/third_party/dawn/src/dawn/native/vulkan/VulkanError.cpp:88)
                                            at CreateVkInstance (…/…/third_party/dawn/src/dawn/native/vulkan/BackendVk.cpp:458)
                                            at Initialize (…/…/third_party/dawn/src/dawn/native/vulkan/BackendVk.cpp:344)
                                            at Create (…/…/third_party/dawn/src/dawn/native/vulkan/BackendVk.cpp:266)
                                            at operator() (…/…/third_party/dawn/src/dawn/native/vulkan/BackendVk.cpp:521)

                                            /home/junior/MagicMirror/node_modules/electron/dist/electron exited with signal SIGINT
                                            [27.03.2025 10:02.53.766] [WARN] Version is incorrect. Skip module: ‘MMM-Config’
                                            Warning: vkCreateInstance: Found no drivers!
                                            Warning: vkCreateInstance failed with VK_ERROR_INCOMPATIBLE_DRIVER
                                            at CheckVkSuccessImpl (…/…/third_party/dawn/src/dawn/native/vulkan/VulkanError.cpp:88)
                                            at CreateVkInstance (…/…/third_party/dawn/src/dawn/native/vulkan/BackendVk.cpp:458)
                                            at Initialize (…/…/third_party/dawn/src/dawn/native/vulkan/BackendVk.cpp:344)
                                            at Create (…/…/third_party/dawn/src/dawn/native/vulkan/BackendVk.cpp:266)
                                            at operator() (…/…/third_party/dawn/src/dawn/native/vulkan/BackendVk.cpp:521)

                                            /home/junior/MagicMirror/node_modules/electron/dist/electron exited with signal SIGINT
                                            [27.03.2025 10:15.08.770] [ERROR] WARNING! Could not validate config file. Starting with default configuration. Please correct syntax errors at or above this line: /home/junior/MagicMirror/config/config.js:130
                                             {
                                             ^

                                            SyntaxError: Unexpected token '{'
                                             at internalCompileFunction (node:internal/vm:73:18)
                                             at wrapSafe (node:internal/modules/cjs/loader:1185:20)
                                             at Module._compile (node:internal/modules/cjs/loader:1227:27)
                                             at Object…js (node:internal/modules/cjs/loader:1326:10)
                                             at Module.load (node:internal/modules/cjs/loader:1126:32)
                                             at node:internal/modules/cjs/loader:967:12
                                             at Function._load (node:electron/js2c/node_init:2:13357)
                                             at Module.require (node:internal/modules/cjs/loader:1150:19)
                                             at require (node:internal/modules/cjs/helpers:121:18)
                                             at loadConfig (/home/junior/MagicMirror/js/app.js:118:14)
                                             at App.start (/home/junior/MagicMirror/js/app.js:248:18)
                                             at Object. (/home/junior/MagicMirror/js/electron.js:192:7)
                                             at Module._compile (node:internal/modules/cjs/loader:1271:14)
                                             at Object…js (node:internal/modules/cjs/loader:1326:10)
                                             at Module.load (node:internal/modules/cjs/loader:1126:32)
                                             at node:internal/modules/cjs/loader:967:12
                                            /home/junior/MagicMirror/node_modules/electron/dist/electron exited with signal SIGINT
                                            [27.03.2025 10:15.58.981] [WARN] Version is incorrect. Skip module: ‘MMM-Config’
                                            Warning: vkCreateInstance: Found no drivers!
                                            Warning: vkCreateInstance failed with VK_ERROR_INCOMPATIBLE_DRIVER
                                            at CheckVkSuccessImpl (…/…/third_party/dawn/src/dawn/native/vulkan/VulkanError.cpp:88)
                                            at CreateVkInstance (…/…/third_party/dawn/src/dawn/native/vulkan/BackendVk.cpp:458)
                                            at Initialize (…/…/third_party/dawn/src/dawn/native/vulkan/BackendVk.cpp:344)
                                            at Create (…/…/third_party/dawn/src/dawn/native/vulkan/BackendVk.cpp:266)
                                            at operator() (…/…/third_party/dawn/src/dawn/native/vulkan/BackendVk.cpp:521)

                                            /home/junior/MagicMirror/node_modules/electron/dist/electron exited with signal SIGSEGV
                                            [27.03.2025 10:22.57.762] [WARN] Version is incorrect. Skip module: ‘MMM-Config’
                                            Warning: vkCreateInstance: Found no drivers!
                                            Warning: vkCreateInstance failed with VK_ERROR_INCOMPATIBLE_DRIVER
                                            at CheckVkSuccessImpl (…/…/third_party/dawn/src/dawn/native/vulkan/VulkanError.cpp:88)
                                            at CreateVkInstance (…/…/third_party/dawn/src/dawn/native/vulkan/BackendVk.cpp:458)
                                            at Initialize (…/…/third_party/dawn/src/dawn/native/vulkan/BackendVk.cpp:344)
                                            at Create (…/…/third_party/dawn/src/dawn/native/vulkan/BackendVk.cpp:266)
                                            at operator() (…/…/third_party/dawn/src/dawn/native/vulkan/BackendVk.cpp:521)

                                            /home/junior/MagicMirror/node_modules/electron/dist/electron exited with signal SIGINT
                                            [27.03.2025 10:29.29.494] [ERROR] WARNING! Could not validate config file. Starting with default configuration. Please correct syntax errors at or above this line: /home/junior/MagicMirror/config/config.js:130
                                             {
                                             ^

                                            SyntaxError: Unexpected token '{'
                                             at internalCompileFunction (node:internal/vm:73:18)
                                             at wrapSafe (node:internal/modules/cjs/loader:1185:20)
                                             at Module._compile (node:internal/modules/cjs/loader:1227:27)
                                             at Object…js (node:internal/modules/cjs/loader:1326:10)
                                             at Module.load (node:internal/modules/cjs/loader:1126:32)
                                             at node:internal/modules/cjs/loader:967:12
                                             at Function._load (node:electron/js2c/node_init:2:13357)
                                             at Module.require (node:internal/modules/cjs/loader:1150:19)
                                             at require (node:internal/modules/cjs/helpers:121:18)
                                             at loadConfig (/home/junior/MagicMirror/js/app.js:118:14)
                                             at App.start (/home/junior/MagicMirror/js/app.js:248:18)
                                             at Object. (/home/junior/MagicMirror/js/electron.js:192:7)
                                             at Module._compile (node:internal/modules/cjs/loader:1271:14)
                                             at Object…js (node:internal/modules/cjs/loader:1326:10)
                                             at Module.load (node:internal/modules/cjs/loader:1126:32)
                                             at node:internal/modules/cjs/loader:967:12
                                            /home/junior/MagicMirror/node_modules/electron/dist/electron exited with signal SIGINT
                                            [27.03.2025 10:30.26.627] [ERROR] WARNING! Could not validate config file. Starting with default configuration. Please correct syntax errors at or above this line: /home/junior/MagicMirror/config/config.js:130
                                             {
                                             ^

                                            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
                                            • 11
                                            • 12
                                            • 13
                                            • 14
                                            • 15
                                            • 14 / 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