Read the statement by Michael Teeuw here.
Unsolved Problem with sending socket notification to module
-
getDepartures: function () { var self = this;
Careful. getDepartures is not called by mm, so it’s very likely that ‘this’ is NOT pointing to the node_module instance.
Save ‘this’ when u get the 1st socketnotification only. Just once.
-
Thanks for the help!
I don’t know what happend, but I forgot to turn off the Pi during the night. This morning the Pi had crashed. I did a power-toggle and now one of the modules (the one I cleaned up regarding the “this-self”) is working.I must look more into this.
Update: I now know what is behind the problem!!!
After a power toggle everything works OK. But when I stop and restart the MagicMirror usingpm2 stop mm
and
pm2 start mm
The modules stop working.
Does anybody know a better way of restarting the Magic Mirror?
I must be able to do that in order to test the changes I do to the configuration… -
@PerBa I do this start/stop a hundred times a day without problem.
I kill all the node processes
I don’t use pm2 -
-
@PerBa any update?