mirror of
https://github.com/MichMich/MagicMirror.git
synced 2025-08-21 04:45:17 +00:00
cleanup
This commit is contained in:
@@ -14,16 +14,16 @@
|
||||
|
||||
class WeatherObject {
|
||||
constructor() {
|
||||
this.date = null
|
||||
this.windSpeed = null
|
||||
this.windDirection = null
|
||||
this.sunrise = null
|
||||
this.sunset = null
|
||||
this.temperature = null
|
||||
this.minTemperature = null
|
||||
this.maxTemperature = null
|
||||
this.weatherType = null
|
||||
this.humidity = null
|
||||
this.date = null;
|
||||
this.windSpeed = null;
|
||||
this.windDirection = null;
|
||||
this.sunrise = null;
|
||||
this.sunset = null;
|
||||
this.temperature = null;
|
||||
this.minTemperature = null;
|
||||
this.maxTemperature = null;
|
||||
this.weatherType = null;
|
||||
this.humidity = null;
|
||||
}
|
||||
|
||||
cardinalWindDirection () {
|
||||
@@ -78,4 +78,4 @@ class WeatherObject {
|
||||
var now = new Date();
|
||||
return (this.sunrise < now && this.sunset > now) ? "sunset" : "sunrise";
|
||||
}
|
||||
};
|
||||
}
|
||||
|
Reference in New Issue
Block a user