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.

    Automatic checking of all MagicMirror² modules

    Scheduled Pinned Locked Moved Development
    83 Posts 9 Posters 103.8k Views 10 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.
    • KristjanESPERANTOK Online
      KristjanESPERANTO Module Developer @sdetweil
      last edited by

      @mumblebaj said in Automatic checking of all MagicMirror² modules:

      Just out of interest, which image does it select as the thumbnail?

      If the script doesn’t find an image with ‘screenshot’ or ‘example’ at the beginning of the name it takes the first it finds .

      The prerequisite for the whole thing is that a free license is specified in the package.json. If there is no package.json and no free license, no image will be searched.

      Stats were great, fixed most of the issues identified in my modules.

      Nice, thank you! I just updated the list and a lot of issues disappeared 👏

      @sdetweil said in Automatic checking of all MagicMirror² modules:

      I don’t know how to make that happen in my text editor

      On my keyboard it’s just +

      and its useless

      I think it’s worth striving to call things by their proper names, so I don’t find the test useless. Feel free to just ignore it :-)

      there is no need for a package,json… as this module does all its work inside the modulename.js there is no functional requirement

      You are right, functionally there is no need for this. However, the file is a good source of information that is interesting for the website - e.g. keywords.

      MMM-Alexa

      Do you know if the original module (https://github.com/sakirtemel/MMM-alexa) still works? Otherwise I should mark it as outdated.

      and one of my modules (the only one I have ever posted) is not present in the master list , and I did not remove it. MMM-SleepWake

      I’ve added it now :-)

      S JalibuJ 2 Replies Last reply Reply Quote 0
      • S Offline
        sdetweil @KristjanESPERANTO
        last edited by sdetweil

        @KristjanESPERANTO I have no info on MMM-Alexa or why i forked it

        Sam

        How to add modules

        learning how to use browser developers window for css changes

        1 Reply Last reply Reply Quote 1
        • KristjanESPERANTOK Online
          KristjanESPERANTO Module Developer @sdetweil
          last edited by

          @sdetweil said in Automatic checking of all MagicMirror² modules:

          and this is misleading

          There is no package.json. We need this file to gather information about the module.
          

          I added ‘for the website’ at the end of the sentence. I hope that this is clearer.

          Thanks for the feedback :-)

          S mumblebajM 3 Replies Last reply Reply Quote 0
          • S Offline
            sdetweil @KristjanESPERANTO
            last edited by

            @KristjanESPERANTO I have no website.

            Sam

            How to add modules

            learning how to use browser developers window for css changes

            KristjanESPERANTOK 1 Reply Last reply Reply Quote 0
            • KristjanESPERANTOK Online
              KristjanESPERANTO Module Developer @sdetweil
              last edited by

              @sdetweil Yes, I mean this website: https://kristjanesperanto.github.io/MagicMirror-3rd-Party-Modules/. Information from the package.json files is used there.

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

                @KristjanESPERANTO “This” instead of “The” perhaps?

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

                KristjanESPERANTOK 1 Reply Last reply Reply Quote 1
                • KristjanESPERANTOK Online
                  KristjanESPERANTO Module Developer @BKeyport
                  last edited by

                  @BKeyport Good suggestion :-) But what do you think of this:

                  No keywords in 'package.json'. We would use them as tags on the module list website.

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

                    @KristjanESPERANTO Kinda awkward, honestly.

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

                    KristjanESPERANTOK 1 Reply Last reply Reply Quote 1
                    • KristjanESPERANTOK Online
                      KristjanESPERANTO Module Developer @BKeyport
                      last edited by

                      @BKeyport Sorry, I tend to use the logic of my native language in my English sentences 😅

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

                        @KristjanESPERANTO I figured that’s what it was. Not a big deal - everyone here don’t speak english properly, even us native speakers. 🤣`

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

                        KristjanESPERANTOK 1 Reply Last reply Reply Quote 1
                        • KristjanESPERANTOK Online
                          KristjanESPERANTO Module Developer @BKeyport
                          last edited by KristjanESPERANTO

                          @BKeyport 😆

                          I thought “This” doesn’t fit so well because the sentence is on the page with the issues and not on the page of the modules where the keywords are used. Is the following issue messages less awkward? Do you have another idea?

                          There are no keywords in 'package.json'. We would use them as tags on the module list page.

                          There is no 'package.json'. We need this file to gather information about the module for the module list page.

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

                            @KristjanESPERANTO

                            There is no package.json. We need this file to gather information about the module for this website

                            is what I meant.

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

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

                              @KristjanESPERANTO said in Automatic checking of all MagicMirror² modules:

                              @mumblebaj said in Automatic checking of all MagicMirror² modules:

                              Just out of interest, which image does it select as the thumbnail?

                              If the script doesn’t find an image with ‘screenshot’ or ‘example’ at the beginning of the name it takes the first it finds .

                              Hi @KristjanESPERANTO does it expect the example.png in a specific folder (such as img/ or /) or can it also lookup in docs/?

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

                                @KristjanESPERANTO and, this impacts my scripts as i use package.json as the indicator for doing an npm install in the module folder.

                                Sam

                                How to add modules

                                learning how to use browser developers window for css changes

                                KristjanESPERANTOK 1 Reply Last reply Reply Quote 0
                                • KristjanESPERANTOK Online
                                  KristjanESPERANTO Module Developer @Jalibu
                                  last edited by

                                  @Jalibu said in Automatic checking of all MagicMirror² modules:

                                  Hi @KristjanESPERANTO does it expect the example.png in a specific folder (such as img/ or /) or can it also lookup in docs/?

                                  No, you can put it where ever you want :-)

                                  1 Reply Last reply Reply Quote 0
                                  • KristjanESPERANTOK Online
                                    KristjanESPERANTO Module Developer @sdetweil
                                    last edited by

                                    @sdetweil said in Automatic checking of all MagicMirror² modules:

                                    @KristjanESPERANTO and, this impacts my scripts as i use package.json as the indicator for doing an npm install in the module folder.

                                    There are some modules that only have devDependencies, so your script already makes unnecessary npm install calls. Can you adjust your trigger and check whether dependencies are set in the package.json?

                                    S 1 Reply Last reply Reply Quote 0
                                    • MZ-BERM Offline
                                      MZ-BER
                                      last edited by

                                      Great work @KristjanESPERANTO. Really, really like this. Is there a way to also publish the github stars and # of forks? I also would love if there is a way to “like” a module.

                                      1 Reply Last reply Reply Quote 1
                                      • M Offline
                                        MMRIZE
                                        last edited by MMRIZE

                                        I suggest you and the community expand package.json to regularise the details of the module. (recommended but optional)
                                        For example;

                                        {
                                          "name": "mmm-something",
                                          "version": "1.0.0",
                                          ...
                                          "mm" : {
                                            "communityId" : "johndoe",
                                            "community" : "MagicMirror forum",
                                            "screenshot" : "https://somewhere.com/screenshot.png",
                                            "install" : "https://github.com/johndoe/mmm-something/README.md#installation",
                                            "update" : "...",
                                            "email" : "johndoe@somewhere",
                                            "required: {
                                              "mm" : "2.25",
                                              "node" : "18.0"
                                            },
                                            "notice" : [
                                              "This will not work in Windows.",
                                              "Pre-dependency required. Please readme."
                                            ]
                                          }
                                        }
                                        

                                        The fields are my imagination. Maybe the community can reach an agreement on rules.

                                        1 Reply Last reply Reply Quote 2
                                        • mumblebajM Offline
                                          mumblebaj Module Developer @KristjanESPERANTO
                                          last edited by

                                          @KristjanESPERANTO My MMM-SweepClock doesn’t have a package.json either as all work done in the MMM-SweepClock.js file. I can add one for completeness and conformity. I also notice I did not have an image. I usually name my images image-1.png etc. so the main image is generally the first one.

                                          Check out my modules at: https://github.com/mumblebaj?tab=repositories
                                          Check my blog-post: https://mumblebaj.xyz/
                                          Check my MM Container: https://hub.docker.com/repository/docker/mumblebaj/magicmirror/general

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

                                            @KristjanESPERANTO oh, and one more thing… my MMM-SleepWake module does not have any UI… so there is no photo…

                                            Sam

                                            How to add modules

                                            learning how to use browser developers window for css changes

                                            KristjanESPERANTOK 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
                                            • 2 / 5
                                            • 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