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.

    Added MMM-ModuleUpdateNotifier and MMM-AptUpdateNotifier

    Scheduled Pinned Locked Moved Utilities
    10 Posts 2 Posters 53 Views 2 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 @CrashTest
      last edited by

      @CrashTest so, how would a user fix modules which have updated libs, not listed in their package.json dependencies list?

      Sam

      How to add modules

      learning how to use browser developers window for css changes

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

        @sdetweil I am not an expert in that area at all. The follow are some general thoughts:

        1. Assume the developer must have listed the needed packages in the dependencies part of the package.json. Not sure how a dependency would not be listed. (Stating the obvious here)
        2. If the developer used the cavet such as “^1.2.3”, and you are asking how to update to a newer major version of the dependency, I would say you should work with the development on their module’s github page. Of course, you could also update the package.json file and run “npm install”, and then see if things still work correctly. Be aware that I do not think that my MMM-ModuleUpdateNotifier would have informed of you this issue as it is just looking to see if new commits in github for the modules.

        Doubt the above helps.

        I guess I could update MMM-ModuleUpdateNotifier to also run “npm install --dry-run” and somehow incorporate that into the notification to the user. That would align with my intent which was to let me know if I had any maintenance to perform on my MM.

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

          @CrashTest you assume the developers are active and interested in doing dependency updates for no particular reason . ( many w breaking changes)

          Most developers are not active on the forums.

          Anyhow I don’t think the module one is particularly helpful for users. As it sets off a fire alarm with no resolution.
          In my humble opinion

          Sam

          How to add modules

          learning how to use browser developers window for css changes

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

            Never said it was useful (except to myself :)).

            But to be clear, MMM-ModuleUpdateNotifier will inform the user if a module they are using has an update (and therefore the developer is active). So it does notify the user of an actionable thing.

            Either way, the two modules are out there in the wild now. If people have suggestions, they can interact with the projects on github or ignore them if not useful for them.

            For me, it was an interesting opportunity to do some AI-assisted coding in a language that I have not used before and to get back into Linux a little.

            Cheers

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

              @CrashTest Our updatenotification module does that for the active modules… same as for MM base

              I wasn’t talking about that one
              I’m the moderator here, so just watching out for our users…

              Sam

              How to add modules

              learning how to use browser developers window for css changes

              C 2 Replies Last reply Reply Quote 0
              • C Offline
                CrashTest @sdetweil
                last edited by

                Sounds good. Totally new to this world of MM. My efforts on these modules started when I saw someone post in the “Show Your Mirror” folder that they created a custom module to check for apt updates, but they did not include the module. So I figured I would create one.

                Cheers

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

                  I did not know that about the default updatenotification module. Good to know.

                  I have that module in my config.js with no config options, so I am running the default options. And I have not seen it put up a notification if there was a newer commit on one of the modules (which was the case). In my case that one module that had a newer commit was in my modules directory but not used in config.js, so looking at useModulesFromConfig option, I assume that module was not looked at. So it all makes sense.

                  I did put in a pull request to tweak wording in updatenotification.md

                  Cheers

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

                    @CrashTest awesome effort!

                    Sam

                    How to add modules

                    learning how to use browser developers window for css changes

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

                      @CrashTest I saw update for the doc

                      It should automagically put up an update banner for all
                      Modules in config.js if their git GitHub ( source repo) commit status changes

                      It as also outputs messsges where npm start is logged as it scans the repository

                      Sam

                      How to add modules

                      learning how to use browser developers window for css changes

                      1 Reply Last reply Reply Quote 0
                      • 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