Read the statement by Michael Teeuw here.
automatic update module by notification
-
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
-
@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-restoretiny thing saved, can be to GitHub too.
-
@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.
-
@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
-
@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.
-
@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.
-
@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.
-
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.
-
@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 ;)
-