Read the statement by Michael Teeuw here.
troubleshooting
-
I have a few MagicMirror installs going and I just love them. I notice that some config.js file edits will be applied with a MagicMirror reload(ctrl-r), some wont take without a complete program close and restart. What edits require a restart and what requires a reload and how can you check? How can I troubleshoot those things?
I have a latest install that I am configuring a calendar for my dad, and I can not get the clock to take edits. No change that I make will be applied. Not even with a whole restart. I am not sure how to troubleshoot this.
Rob
-
@rob73 the pm2 app can restart on config change, and my installer sets it up that way.
however it doesn’t work reliably on any platform.
i made changes last year to solve this, and its works sometimes -
@rob73 show the module structure for clock in config. js please
-
@rob73 oh, some ctrl-r
ctrl-r only reloads the web page, its does not restart any of the node_helpers some modules use
node_helpers only get loaded at startup
example. weather is all in browser, calendar uses a node_helper to get data
so ctrl-r will reload weather completely
if you changed the calendar config to add/remove a calendar, then ctrl-r will NOT do that
so, you have to look a the module implementation to see how you need to restart -
@sdetweil That makes sense to me about reloading the page and not restarting the modules and things.
I figured out the calendar config. I was leaving out the config {} section and just adding the options right under the module: “clock” & position:“top_left”.
I looked at that over and over and compared to examples and I couldnt figure it out to save my life. I woke up in the middle of the night and took a look at it again and it jumped out at me.
Thanks for the responses.
Rob
-
@rob73 cool was thinking missing config section
hate those wake up in the night thoughts
-
@sdetweil those wake up in the night thoughts may be some of my best work… lol…
Thanks again!