Read the statement by Michael Teeuw here.
updating without losing settings in config, and js files?
-
I just updated today and had to reset all the screen adjustments I had set during build. Is there a way to do the update without it changing the files back to default?
-
Do all of your editing, configuration and addition of new modules in the MagicMirror/config/config.js file.
Did you modify each module’s javascript file separately? -
@Cyberwrights mine is highly modified. Pretty much every character is changed in some way.
-
@navyvette87 @Cyberwrights is right, and where possible you should migrate your changes into
config.js
,custom.css
, etc.When updating,
git
insists that your files not have changes that conflict with those of the repository. Usegit stash
as outlined here to store your local changes, pull updates from the repo, then restore your own changes. -
Just curious, why would you modify any file other than the
config.js
and thecustom.css
file? -
I am not aware of how to implement “everything” into config.js.
Custom MMM-remotecontrol buttons, cache options, MMM-spotify buttons… -
@Nneuland ALL module and MagicMirror config goes in config.js
the design is anything in config.js is used before the defaults from system and modules
ALL css goes in css/custom.css
anything in css/custom.css overrides anything specified by modules or system settings
IF you edit any other file, you risk blocking updates AND losing your changes when you force update
the override design means you never have your lose anything
this is why my upgrade script is 2 pass, to warn you of changes(that you may have forgotten) that WILL be lost.
-
Just to play devils advocate. Wouldn’t some modifications need to take place before electron launches?
I’d love to clean up my set up. is there any way to single out modified files that need to be implemented into config.js
-
@Nneuland no, we read config. js for electron options and
commandline switches tooto detect changes to base files, in each place (MagicMirror snd module folders ) do
git status
if there are modified files do
git diff filename
to see the actual changesonce you migrate those to config.js
git stash the changed files in that locationrun MagicMirror and test that
then git stash pop
to restore from stashthe git checkout filename
to restore from the repository (hidden in .git folder)repeat til no changed files and MagicMirror and modules run as expected
-
This is gold. Thank you Sam!