Weather config enhancement

Add new parameter 'useKmh' to display wind speed in km/h instead of m/s.
This commit is contained in:
Aurélien Veillard
2020-11-07 09:54:13 +01:00
parent 3dbe8bfbbf
commit 198525f2ce
3 changed files with 11 additions and 1 deletions

View File

@@ -9,7 +9,11 @@
{% if config.useBeaufort %}
{{ current.beaufortWindSpeed() | round }}
{% else %}
{{ current.windSpeed | round }}
{% if config.useKmh %}
{{ current.kmhWindSpeed() | round }}
{% else %}
{{ current.windSpeed | round }}
{% endif %}
{% endif %}
{% if config.showWindDirection %}
<sup>