Skip to content

Commit

Permalink
Fix for multiple instances of the module
Browse files Browse the repository at this point in the history
  • Loading branch information
gprezza authored Jan 17, 2021
1 parent cdce8a9 commit cff3cfe
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions MMM-RVV.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ Module.register("MMM-RVV", {

socketNotificationReceived: function(notification, payload) {
this.notification = notification;
if (notification === "RETURN_TRIPS" || notification === "ERR_RETURN_TRIPS") {
if (notification === "RETURN_TRIPS" + this.config.stop_from_ID || notification === "ERR_RETURN_TRIPS") {
this.trips = payload.trips;
this.updateDom(1000); // 1 sec animation delay
}
Expand Down Expand Up @@ -191,4 +191,4 @@ Module.register("MMM-RVV", {

return wrapper;
}
});
});

0 comments on commit cff3cfe

Please sign in to comment.