Read the statement by Michael Teeuw here.
Restart MagicMirror once a day
-
@sdetweil said in Restart MagicMirror once a day:
pm2 can schedule restart
Dear Sam,
which file is called to start the mirror when I have used your install script?
(I guess I have to insert the cron-related additions there…)Thanks,
Ralf -
@rkorell you can do it from the commandline, OR the config file
the config file I create is in the installers folder
pm2_MagicMirror.jsonit looks like you can do
pm2 restart xx --cron-restart
AFTER the app was defined already
-
@sdetweil said in Restart MagicMirror once a day:
@rkorell you can do it from the commandline, OR the config file
the config file I create is in the installers folder
pm2_MagicMirror.jsonit looks like you can do
pm2 restart xx --cron-restart
AFTER the app was defined already
Do you mean I can issue the above command and pm2 will store/keep this as configuration?
This would be pretty cool…
Wasn’t there a “pm2 save” or something like this???Ralf
-
@rkorell yes, pm2 save will ‘save’ the config for use later
this cron feature is new to me. so I haven’t tested what you need to do…
read their doc -
@sdetweil Yupp. Have read.
For me it’s for later - just potential - use.
Currently I’m fine without daily restart.Thanks for your explanation!
Ralf -
@rkorell yes, we still don’t know completely, BUT the OP asked for capability,
and here it is… already available in the tools we use…this community thrives on contribution, and I hope others will be able to do that for this topic as well.
-
@veny Just restarting the MM does not resolve the issue with the weather module freezing. We need to find why the weather module freezes. Maybe turn on Debug in the config and then see if there are any errors on the next freeze?
-
@mumblebaj I think its this
https://github.com/MagicMirrorOrg/MagicMirror/issues/3687 -
@sdetweil Yeah, was reading that earlier when you posted it from another issue. Will see if I can pull the MM repo and have a look at the code in there.
-
@mumblebaj the problem is we are passing back data, and not the response object
and we didn’t check to see if the response was valid(statusCode==200), and after that sometimes the data is trashif you have MM installed, you HAVE the repo!