mirror of
https://github.com/MichMich/MagicMirror.git
synced 2025-08-21 04:45:17 +00:00
Add new Event CURRENTWEATHER_TYPE
- send it from the weather and currentweather module - use it in the compliments module directly instead of the data
This commit is contained in:
@@ -152,6 +152,7 @@ Module.register("weather", {
|
||||
// What to do when the weather provider has new information available?
|
||||
updateAvailable: function () {
|
||||
Log.log("New weather information available.");
|
||||
this.sendNotification("CURRENTWEATHER_TYPE", { type: this.weatherProvider.currentWeather().weatherType.replace("-", "_") });
|
||||
this.updateDom(0);
|
||||
this.scheduleUpdate();
|
||||
},
|
||||
|
Reference in New Issue
Block a user