Show humidity.

This commit is contained in:
Michael Teeuw 2017-10-19 16:51:51 +02:00
parent 22a50b72fd
commit 16c887814e
2 changed files with 6 additions and 2 deletions

View File

@ -27,6 +27,9 @@
</sup> </sup>
{% endif %} {% endif %}
</span> </span>
{% if config.showHumidity and current.humidity %}
<span>{{ current.humidity }}</span><sup>&nbsp;<i class="wi wi-humidity humidityIcon"></i></sup>
{% endif %}
<span class="wi dimmed wi-{{current.nextSunAction()}}"></span> <span class="wi dimmed wi-{{current.nextSunAction()}}"></span>
<span> <span>
{% if current.nextSunAction() == "sunset" %} {% if current.nextSunAction() == "sunset" %}

View File

@ -20,9 +20,10 @@ class WeatherObject {
this.sunrise = null this.sunrise = null
this.sunset = null this.sunset = null
this.temperature = null this.temperature = null
this.minTemperature = null, this.minTemperature = null
this.maxTemperature = null, this.maxTemperature = null
this.weatherType = null this.weatherType = null
this.humidity = null
} }
cardinalWindDirection () { cardinalWindDirection () {