config edit and restore one liners
-
If modify often your config you may like this 2 little scripts
mmce
cp /home/pi/MagicMirror/config/config.js /home/pi/MagicMirror/config/config.jsbak
vi /home/pi/MagicMirror/config/config.js
cd /home/pi/MagicMirror
npm run config:checkmmcr
cp /home/pi/MagicMirror/config/config.jsbak /home/pi/MagicMirror/config/config.jsI put in .sh an alias and I do the editing with mmce
it simply creates a backup and checks the configif everything works I launch mm
if not a mmcr will restore previous version
simple but handy
-
Humm when i see this …
I will code a new part with my Gateway app:- Edit MagicMirror configuration (only modules/plugins)
- Naturally, you can consult, modify and apply it
- I plan to save it and make save of config
- maybe consult save and apply it (if needed)
- Before save … verify syntax (prevent crash)
simple … and Lazy