Navigation

    MagicMirror Forum

    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • Donate
    • Discord
    1. Home
    2. PerBa
    P
    • Profile
    • Following 0
    • Followers 0
    • Topics 2
    • Posts 4
    • Best 0
    • Groups 0

    PerBa

    @PerBa

    0
    Reputation
    142
    Profile views
    4
    Posts
    0
    Followers
    0
    Following
    Joined Last Online

    PerBa Follow

    Latest posts made by PerBa

    • RE: Problem with sending socket notification to module

      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 using

      pm2 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…

      posted in Troubleshooting
      P
      PerBa
    • RE: Problem with sending socket notification to module

      Re: Problem with sending socket notification to module

      The line of code that sends the notification is:

      getDepartures: function () {
      var self = this;
      ...
      self.sendSocketNotification('DEPARTURES', CurrentDeparturesArray); 
      

      the corresponding code in the module is:

      socketNotificationReceived: function (notification, payload) {
      	Log.info('MODULE:: received notification');
      	Log.info("Received Notification" + notification);
              if (notification === 'DEPARTURES') {
      

      Thanks!

      posted in Troubleshooting
      P
      PerBa
    • Problem with sending socket notification to module

      (sorry if this is a re-post, I made a post but couldn’t find it later. Admin can remove this post if needed)

      Hello,
      I’m new to MagicMirror, but I have a problem with two swedish modules:
      MMM-SL-PublicTransport
      MMM-Weather-SMHI-Hourly

      When I’m using them I get the same problem:
      Notifications from module to helper works fine
      Notifications from helper to module does not work (notifications never received).

      I don’t know how to handle this problem. I’ve spent a day with debug logs now, but I’m nowhere close to a solution.

      I would be so happy if someone with knowledge about the communication procedures could look into these two modules and see if they perhaps haven’t been updated after a “core-functionality” change.

      Thanks,
      Per Badlund, Sweden

      posted in Troubleshooting
      P
      PerBa