Merge branch 'develop' into develop

This commit is contained in:
Michael Teeuw
2020-12-08 15:53:21 +01:00
committed by GitHub
18 changed files with 1062 additions and 771 deletions

View File

@@ -78,6 +78,11 @@ class WeatherObject {
return 12;
}
kmhWindSpeed() {
const windInKmh = this.windUnits === "imperial" ? this.windSpeed * 1.609344 : (this.windSpeed * 60 * 60) / 1000;
return windInKmh;
}
nextSunAction() {
return moment().isBetween(this.sunrise, this.sunset) ? "sunset" : "sunrise";
}