This commit is contained in:
fewieden
2018-12-27 19:37:02 +01:00
parent 1920f8158e
commit 10bc326490
7 changed files with 107 additions and 117 deletions

View File

@@ -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";
}
};
}