Hi, thanks for assisting me.
The problem is I’M not using original weather module, so unable to send notification .
I’m using this one :
https://github.com/MatthiPi/MMM-DefaultWeatherAnimated
{
module: "weather", //change to weather
position: "top_right",
config: {
// See 'Configuration options' for more information.
type: 'current',
weatherEndpoint: '/weather',
units: 'metric',
apiKey: 'X',
locationID: Y
}
},
But unable to figure out how to send notification to current weather objects into this compliment_modules.
(where should I write , this code in this module ?) when I try in provider.js, console says "sender should be module"
this.sendNotification("CURRENTWEATHER_DATA", {foo: "bar"});
MY COMPLIMENT_PLUS Modul compliment_plus.js
notificationReceived: function(notification, payload, sender) {
if (notification === "CURRENTWEATHER_DATA") {
console.log("251", payload.data);
this.setCurrentWeatherType(payload.data);
}
},