Ability to hide sun details

This commit is contained in:
Kristof Rado 2020-05-28 10:10:00 +02:00
parent 447c0bffdc
commit 766140f483
2 changed files with 11 additions and 8 deletions

View File

@ -22,14 +22,16 @@
{% if config.showHumidity and current.humidity %} {% if config.showHumidity and current.humidity %}
<span>{{ current.humidity | decimalSymbol }}</span><sup>&nbsp;<i class="wi wi-humidity humidityIcon"></i></sup> <span>{{ current.humidity | decimalSymbol }}</span><sup>&nbsp;<i class="wi wi-humidity humidityIcon"></i></sup>
{% endif %} {% endif %}
<span class="wi dimmed wi-{{ current.nextSunAction() }}"></span> {% if config.showSun %}
<span> <span class="wi dimmed wi-{{ current.nextSunAction() }}"></span>
{% if current.nextSunAction() === "sunset" %} <span>
{{ current.sunset | formatTime }} {% if current.nextSunAction() === "sunset" %}
{% else %} {{ current.sunset | formatTime }}
{{ current.sunrise | formatTime }} {% else %}
{% endif %} {{ current.sunrise | formatTime }}
</span> {% endif %}
</span>
{% endif %}
</div> </div>
{% endif %} {% endif %}
<div class="large light"> <div class="large light">

View File

@ -33,6 +33,7 @@ Module.register("weather",{
useBeaufort: true, useBeaufort: true,
lang: config.language, lang: config.language,
showHumidity: false, showHumidity: false,
showSun: true,
degreeLabel: false, degreeLabel: false,
decimalSymbol: ".", decimalSymbol: ".",
showIndoorTemperature: false, showIndoorTemperature: false,