From 16c887814eb45f1a77df9a977d812ba89e6fc372 Mon Sep 17 00:00:00 2001 From: Michael Teeuw Date: Thu, 19 Oct 2017 16:51:51 +0200 Subject: [PATCH] Show humidity. --- modules/default/weather/current.njk | 3 +++ modules/default/weather/weatherobject.js | 5 +++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/modules/default/weather/current.njk b/modules/default/weather/current.njk index b5e4a04f..f578ba2b 100644 --- a/modules/default/weather/current.njk +++ b/modules/default/weather/current.njk @@ -27,6 +27,9 @@ {% endif %} + {% if config.showHumidity and current.humidity %} + {{ current.humidity }}  + {% endif %} {% if current.nextSunAction() == "sunset" %} diff --git a/modules/default/weather/weatherobject.js b/modules/default/weather/weatherobject.js index 4ccc4bac..59d2298a 100644 --- a/modules/default/weather/weatherobject.js +++ b/modules/default/weather/weatherobject.js @@ -20,9 +20,10 @@ class WeatherObject { this.sunrise = null this.sunset = null this.temperature = null - this.minTemperature = null, - this.maxTemperature = null, + this.minTemperature = null + this.maxTemperature = null this.weatherType = null + this.humidity = null } cardinalWindDirection () {