• Recent
  • Tags
  • Unsolved
  • Solved
  • MagicMirror² Repository
  • Documentation
  • 3rd-Party-Modules
  • Donate
  • Discord
  • Register
  • Login
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.1k 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.
  • S Away
    sdetweil @bdream
    last edited by Dec 26, 2022, 2:57 PM

    @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
    • B Offline
      bhepler Module Developer @bdream
      last edited by bhepler Dec 26, 2022, 6:13 PM Dec 26, 2022, 6:12 PM

      @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 Away
        sdetweil @bdream
        last edited by Dec 26, 2022, 7:36 PM

        @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
        • K Offline
          karsten13 @bdream
          last edited by Dec 26, 2022, 9:14 PM

          @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 Dec 27, 2022, 9:52 AM

            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 Dec 27, 2022, 3:23 PM Reply Quote 1
            • B Offline
              bdream @MMRIZE
              last edited by Dec 27, 2022, 3:23 PM

              @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 Dec 27, 2022, 4:02 PM Reply Quote 0
              • S Away
                sdetweil @bdream
                last edited by Dec 27, 2022, 4:02 PM

                @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
                • B Offline
                  bugsounet Banned @bdream
                  last edited by Dec 28, 2022, 9:45 AM

                  @bdream , Hi it’s already coded since some year but not published in this forum :beaming_face_with_smiling_eyes:

                  B 1 Reply Last reply Jan 1, 2023, 10:43 AM Reply Quote -1
                  • B Offline
                    bdream @bugsounet
                    last edited by Jan 1, 2023, 10:43 AM

                    @bugsounet sounds good!

                    What is the midules name please?

                    –
                    cheers, bdream

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