mirror of
https://github.com/MichMich/MagicMirror.git
synced 2025-06-27 11:50:00 +00:00
Change property name clearly
This commit is contained in:
parent
58569a648c
commit
038b6765e7
@ -156,11 +156,11 @@ Module.register("weather", {
|
|||||||
}
|
}
|
||||||
|
|
||||||
let notificationPayload = {
|
let notificationPayload = {
|
||||||
current: this.weatherProvider?.currentWeatherObject?.simpleClone() ?? null,
|
currentWeather: this.weatherProvider?.currentWeatherObject?.simpleClone() ?? null,
|
||||||
forecast: this.weatherProvider?.weatherForecastArray?.map((ar) => ar.simpleClone()) ?? [],
|
forecastArray: this.weatherProvider?.weatherForecastArray?.map((ar) => ar.simpleClone()) ?? [],
|
||||||
hourly: this.weatherProvider?.weatherHourlyArray?.map((ar) => ar.simpleClone()) ?? [],
|
hourlyArray: this.weatherProvider?.weatherHourlyArray?.map((ar) => ar.simpleClone()) ?? [],
|
||||||
location: this.weatherProvider?.fetchedLocationName,
|
locationName: this.weatherProvider?.fetchedLocationName,
|
||||||
provider: this.weatherProvider.providerName
|
providerName: this.weatherProvider.providerName
|
||||||
};
|
};
|
||||||
this.sendNotification("WEATHER_UPDATED", notificationPayload);
|
this.sendNotification("WEATHER_UPDATED", notificationPayload);
|
||||||
},
|
},
|
||||||
|
@ -126,7 +126,7 @@ class WeatherObject {
|
|||||||
/**
|
/**
|
||||||
* Checks if the weatherObject is at dayTime.
|
* Checks if the weatherObject is at dayTime.
|
||||||
*
|
*
|
||||||
* @returns {boolean} true if it is at dayTime
|
* @return {boolean} true if it is at dayTime
|
||||||
*/
|
*/
|
||||||
isDayTime() {
|
isDayTime() {
|
||||||
return this.date.isBetween(this.sunrise, this.sunset, undefined, "[]");
|
return this.date.isBetween(this.sunrise, this.sunset, undefined, "[]");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user