Read the statement by Michael Teeuw here.
Automatic Updates
-
I’m running MagicMirror using pm2 if that matters. What I am looking for, if it’s possible, is some way to update MagicMirror and modules on startup. Is such a thing possible, or even desirable?
-
@cliff365 there is no auto update that I am aware of, and based on the changes in the last few releases I would not want this.
lots of work has gone into building a system that does what you want…
I personally would not be excited to have it crash after an update…
thats why my upgrade script is a two pass approach… test on first pass, identify any issues that need to be resolved,
make changes on second pass
pi0w got whacked this release, as we need a new node level, but its not available on pi0w…(easily)
and then electron is not available, so I have been setting you chromium over server mode…
now chromium (and firefox) are permanently busted on pi0w… have to install a downlevel chromium to get something to worksome of the network security stuff is impacts, cross origin restrictions (CORS) are affecting modules now…
some that are used frequently but haven’t been maintained…MM ships a new release every 90 days… thats a LOT of churn (aka work) you may not need or want
-
@sdetweil Thanks for the quick reply. I use your upgrade script and it is nothing short of amazing. I’ll take your advice and do updates with the script.
The problem I constantly battle is pm2 is just a little aggressive on restarting MM, and it takes me many tries to finally do a ‘pm2 stop all’ so I can have a command line. I wish I knew how to increase the time for pm2 restarts.
-
@cliff365 just minimize the screen
alt-spacebar, n
and open a terminal window
ctrl-alt-t
or use ssh, from your pc or phone, so you don’t need to do that
-
@cliff365 pm2’s JOB is to restart the apps it manages…
-
@sdetweil I did not know that was possible. Another thanks!
-
@cliff365 magicmirror is just a full screen app, running in a normal browser
-
@cliff365 I have done a. Module for this ;)
-
@bugsounet said in Automatic Updates:
@cliff365 I have done a. Module for this ;)
Would be nice to have repository specific auto update functionality in the default module.