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.

    obsession with modul checker

    Scheduled Pinned Locked Moved Development
    19 Posts 4 Posters 460 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.
    • H Offline
      HeikoGr
      last edited by

      I am obsessed with the modul checker on the MagicMirror² 3rd Party Modules list…

      so, i asked github copilot to implement an instant modul checker script.

      technically it clones the modul checker repo, and the local files to /tmp/mm-modul-checker… and installs the deps.

      you can find it in recently most active repo:
      https://github.com/HeikoGr/MMM-Webuntis/blob/master/scripts/magicmirror-check.mjs

      run it: node scripts/magicmirror-check.mjs and you will get:

      
      > mmm-webuntis@0.6.1 check:mm
      > node scripts/magicmirror-check.mjs
      
      🔍 Setting up MagicMirror checker...
      Fetching checker repository (git-free) via `degit` (first time only)...
      📦 Installing dependencies...
      ✓ Copying local files (excluding node_modules)...
      ✓ Checking MMM-Webuntis (including uncommitted changes)
      🔎 Running full module checks...
      🔍 Running ESLint check on package.json...
      
      ================================================================================
      MMM-Webuntis - MagicMirror Module Check Results
      ================================================================================
      
      📋 Issues found (1):
        1. Information: There are updates for 1 dependencie(s):
      - prettier  ^3.8.0  →  ^3.8.1
      
      ================================================================================
      📄 Results saved to: magicmirror-check-results.md
      Compare with: https://modules.magicmirror.builders/result.html
      ================================================================================
      
      💡 Tip: Use --cleanup to remove checker files after check
      
      htilburgsH 1 Reply Last reply Reply Quote 1
      • htilburgsH Offline
        htilburgs @HeikoGr
        last edited by

        @HeikoGr said in obsession with modul checker:

        node scripts/magicmirror-check.mjs

        I tried it, but get an error

        ❌ Error: Cannot copy a FIFO pipe: cp returned EINVAL (cannot copy a FIFO pipe: /tmp/mm-module-checker-MagicMirror/modules/MagicMirror-----MagicMirrorOrg/.lgd-nfy0) /tmp/mm-module-checker-MagicMirror/modules/MagicMirror-----MagicMirrorOrg/.lgd-nfy0
        

        (still trying to learn JS, but not afraid to ask and AI is my best friend) ☺

        1 Reply Last reply Reply Quote 0
        • H Offline
          HeikoGr
          last edited by

          you need to put the script inside the folder of the module you want to check - not the MagicMirror folder itself

          htilburgsH 1 Reply Last reply Reply Quote 0
          • htilburgsH Offline
            htilburgs @HeikoGr
            last edited by

            @HeikoGr
            So it is not possible to check all the modules in one run?
            I have to do it for each module?

            (still trying to learn JS, but not afraid to ask and AI is my best friend) ☺

            H 1 Reply Last reply Reply Quote 0
            • H Offline
              HeikoGr @htilburgs
              last edited by

              @htilburgs my main objection was to support the module development. so yes, at the moment it’s a per module check,

              htilburgsH 1 Reply Last reply Reply Quote 0
              • htilburgsH Offline
                htilburgs @HeikoGr
                last edited by

                @HeikoGr
                Oké, clear. Thanks for the quick replys

                (still trying to learn JS, but not afraid to ask and AI is my best friend) ☺

                KristjanESPERANTOK 1 Reply Last reply Reply Quote 0
                • KristjanESPERANTOK Offline
                  KristjanESPERANTO Module Developer @htilburgs
                  last edited by

                  @heikogr Nice idea! I’ll take a closer look.

                  1 Reply Last reply Reply Quote 0
                  • H Offline
                    HeikoGr
                    last edited by

                    @htilburgs now it should work for all installed modules

                    htilburgsH 1 Reply Last reply Reply Quote 0
                    • htilburgsH Offline
                      htilburgs @HeikoGr
                      last edited by

                      @HeikoGr
                      So now I put It in the MagicMirror folder?

                      (still trying to learn JS, but not afraid to ask and AI is my best friend) ☺

                      H 1 Reply Last reply Reply Quote 0
                      • H Offline
                        HeikoGr @htilburgs
                        last edited by HeikoGr

                        @htilburgs the script looks if it is under an magicmirror/modules folder and takes this as root folder for modules.
                        otherwise it will take /opt/magic_mirror/modules

                        if your setup is different you need to adapt the script.

                        the script itself can be placed independently

                        htilburgsH S 2 Replies Last reply Reply Quote 0
                        • htilburgsH Offline
                          htilburgs @HeikoGr
                          last edited by

                          @HeikoGr
                          Oké, thank you

                          (still trying to learn JS, but not afraid to ask and AI is my best friend) ☺

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

                            @HeikoGr the script could check and provide a parameter

                            Sam

                            How to add modules

                            learning how to use browser developers window for css changes

                            1 Reply Last reply Reply Quote 0
                            • htilburgsH Offline
                              htilburgs @htilburgs
                              last edited by

                              @heikogr
                              I gave it a testrun and it gave me an error

                               Running checks for 17 modules...
                              ❌ Error: Command failed: npx tsx scripts/check-modules/index.ts
                              npm warn exec The following package was not found and will be installed: tsx@4.21.0
                              [2026-01-23T17:21:24.195Z] [ERROR] [check-modules] Schema validation failed for modules.stage.4:
                              /modules/6/keywords: must NOT have fewer than 1 items
                              /modules/8/keywords: must NOT have fewer than 1 items
                              /modules/15/keywords: must NOT have fewer than 1 items
                              
                              npm warn exec The following package was not found and will be installed: tsx@4.21.0
                              [2026-01-23T17:21:24.195Z] [ERROR] [check-modules] Schema validation failed for modules.stage.4:
                              /modules/6/keywords: must NOT have fewer than 1 items
                              /modules/8/keywords: must NOT have fewer than 1 items
                              /modules/15/keywords: must NOT have fewer than 1 items
                              

                              Any idea?

                              (still trying to learn JS, but not afraid to ask and AI is my best friend) ☺

                              htilburgsH 1 Reply Last reply Reply Quote 0
                              • htilburgsH Offline
                                htilburgs @htilburgs
                                last edited by

                                After installing tsx (npm install tsx@4.21.0) it gave me a new error:

                                🔎 Running checks for 17 modules...
                                ❌ Error: Command failed: npx tsx scripts/check-modules/index.ts
                                [2026-01-23T17:25:32.134Z] [ERROR] [check-modules] Schema validation failed for modules.stage.4:
                                /modules/6/keywords: must NOT have fewer than 1 items
                                /modules/8/keywords: must NOT have fewer than 1 items
                                /modules/15/keywords: must NOT have fewer than 1 items
                                
                                [2026-01-23T17:25:32.134Z] [ERROR] [check-modules] Schema validation failed for modules.stage.4:
                                /modules/6/keywords: must NOT have fewer than 1 items
                                /modules/8/keywords: must NOT have fewer than 1 items
                                /modules/15/keywords: must NOT have fewer than 1 items
                                

                                (still trying to learn JS, but not afraid to ask and AI is my best friend) ☺

                                H KristjanESPERANTOK 2 Replies Last reply Reply Quote 0
                                • H Offline
                                  HeikoGr @htilburgs
                                  last edited by

                                  @htilburgs i guess your modules are missing the minimal requirements for MagicMirror modules in the packages.json file.

                                  I managed to lower the requirements…

                                  1 Reply Last reply Reply Quote 0
                                  • KristjanESPERANTOK Offline
                                    KristjanESPERANTO Module Developer @htilburgs
                                    last edited by

                                    @htilburgs In case you haven’t seen it yet: You can also check https://modules.magicmirror.builders/result.html#MMM-MyHomeWizard-by-HTilburgs. Thats the result of the checks on what you pushed to GitHub.

                                    htilburgsH 1 Reply Last reply Reply Quote 0
                                    • htilburgsH Offline
                                      htilburgs @KristjanESPERANTO
                                      last edited by

                                      @KristjanESPERANTO
                                      Thanks, I didn’t know about this.
                                      This is the result of running the script?

                                      (still trying to learn JS, but not afraid to ask and AI is my best friend) ☺

                                      H 1 Reply Last reply Reply Quote 0
                                      • H Offline
                                        HeikoGr @htilburgs
                                        last edited by

                                        @htilburgs it‘s the original script. My script only tries to run this script locally on demand

                                        htilburgsH 1 Reply Last reply Reply Quote 1
                                        • htilburgsH Offline
                                          htilburgs @HeikoGr
                                          last edited by

                                          @HeikoGr 👍

                                          (still trying to learn JS, but not afraid to ask and AI is my best friend) ☺

                                          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 / 1
                                          • 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