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 update module by notification

    Scheduled Pinned Locked Moved Unsolved Requests
    12 Posts 6 Posters 2.2k Views 7 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.
    • B Offline
      bdream
      last edited by

      Hi guys!
      Has anyone made already or have an idea about to automatically update these modules notified by notifier module.

      Reason I’m asking is, that I made a gift to my mother with a MagicMirror. And now it’s every time a notification pops up, my mother is afraid about what happen here and I have to go onsite to fix it by updating the modules.
      My mother is not able to do it by herself.

      Update of MagicMirror would be nice to get an backup prior to the update.

      Many thanks and have a merry Christmas and a happy new Year!

      regards bdream

      –
      cheers, bdream

      S bugsounetB 2 Replies Last reply Reply Quote 0
      • S Offline
        sdetweil @bdream
        last edited by

        @bdream disable the notifications module, then she won’t see any messages.

        if it runs leave it alone

        use my backup/restore scripts
        https://github.com/sdetweil/MagicMirror-backup-restore

        tiny thing saved, can be to GitHub too.

        Sam

        How to add modules

        learning how to use browser developers window for css changes

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

          @sdetweil disabling will not solve issues coming while not updating and module will not more work correct.

          I would prefer having an automatic to update in case it’s notified.

          –
          cheers, bdream

          S bheplerB karsten13K 4 Replies Last reply Reply Quote 0
          • S Offline
            sdetweil @bdream
            last edited by

            @bdream good luck.

            updatenotification does not send any notifications for other modules to use.

            auto updates are challenging to deal with potential issues.

            worst is old API dies, new code uses new api, but also needs new key… so update might work , still no output

            Sam

            How to add modules

            learning how to use browser developers window for css changes

            1 Reply Last reply Reply Quote 0
            • bheplerB Offline
              bhepler Module Developer @bdream
              last edited by bhepler

              @bdream Another option is to use a tool that will let you remotely log into her mirror from your house. Then when she says that it is displaying the available update, you can remotely perform the steps.There are a few services out there that allow you one or two remote access for free and then you pay for any others beyond that.

              But @sdetweil is correct: the mirror itself is very stable so just disable the update notification. If something breaks, she’ll let you know.

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

                @bdream if the module update adds a feature,

                you don’t care, as u are not using it now

                if the module update fixes a bug

                you don’t care as u probably haven’t seen it

                (else u wouldn’t have deployed the module in such a sensitive environment…)

                I STRONGLY recommend,

                If it’s working, don’t touch it.

                Sam

                How to add modules

                learning how to use browser developers window for css changes

                1 Reply Last reply Reply Quote 0
                • karsten13K Online
                  karsten13 @bdream
                  last edited by

                  @bdream said in automatic update module by notification:

                  I would prefer having an automatic to update in case it’s notified.

                  option1: Adding a new paramter “forceUpdate” to the notification module so that it does the update instead of the notification (someone has to code this)

                  option2: Write a bash script which iterates over the module folders doing something like this (in every module folder)

                  git reset --hard
                  git pull
                  [ -f "package.json" ] && npm install
                  

                  This script should be executed e.g. daily by e.g. a cronjob.

                  As Sam already mentioned this would be the hard way, may its better not to change a running system and ignore the notification, your decision.

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

                    I recommend not updating MM or modules unless they work. Just leave them. Update them only when you find some issue or need a new feature.

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

                      @MMRIZE @sdetweil @bhepler @karsten13
                      many thanks for your comments, I really appreciate it!

                      At first I will disable notification at my mothers MM. Hope there will not be a secure issue I oversee than. But it will anyway be an small one in my mothers environment.

                      For me I will play with “play” with the other options you mentioned and will see if this works for a longer time in a good way ;)

                      –
                      cheers, bdream

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

                        @bdream I use TeamViewer to remote access

                        install server, start, get code

                        then client requires code

                        Sam

                        How to add modules

                        learning how to use browser developers window for css changes

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