This repository was archived by the owner on Jun 16, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcurrent.njk
More file actions
executable file
·86 lines (85 loc) · 3.17 KB
/
current.njk
File metadata and controls
executable file
·86 lines (85 loc) · 3.17 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
{% if current %}
{% if not config.onlyTemp %}
<div class="normal medium">
<span>
<span class="wi wi-wind-beaufort-{{ current.windSpeedBft }} dimmed"></span>
{% if config.showWindDirection %}
<sup>
{% if config.showWindDirectionAsArrow %}
<i class="fa fa-long-arrow-up" style="transform:rotate({{ current.windDirection }}deg);"></i>
{% else %}
{{ current.windDirection }}
{% endif %}
</sup>
{% endif %}
</span>
<span class="wi dimmed wi-{{ current.nextSunAction() }}"></span>
<span>
{% if current.nextSunAction() === "sunset" %}
{{ current.sunset }}
{% else %}
{{ current.sunrise }}
{% endif %}
</span>
</div>
{% endif %}
<div class="large light">
{% if current.weatherWarning === "1" %}
<img src="modules/{{name}}/icons/warning.png"
width = "65" height = "65">
{% endif %}
<span class="wi weathericon wi-{{current.weatherType}}"></span>
<span class="bright">
{{ current.temperature | roundValue | unit("temperature") | decimalSymbol }}
</span>
</div>
<div class="normal light indoor">
{% if config.showIndoorTemperature and indoor.temperature %}
<div>
<span class="fa fa-home"></span>
<span class="bright">
{{ indoor.temperature | roundValue | unit("temperature") | decimalSymbol }}
</span>
</div>
{% endif %}
{% if config.showIndoorHumidity and indoor.humidity %}
<div>
<span class="fa fa-tint"></span>
<span class="bright">
{{ indoor.humidity | roundValue | unit("humidity") | decimalSymbol }}
</span>
</div>
{% endif %}
</div>
<div class="dimmed small">
<span class="wi weathericon wi-thermometer-exterior"></span>
<span class="dimmed">
{{ current.minTemperature| roundValue | unit("temperature") | decimalSymbol }}
</span>
<span class="dimmed" allign right>
{{ current.maxTemperature| roundValue | unit("temperature") | decimalSymbol }}
</span>
<span class="wi weathericon wi-thermometer"></span>
<span class="wi weathericon wi-umbrella" "dimmed"></span><span class = "dimmed">
{{current.rainChance }}%
</span>
</div>
<div class="normal medium">
<span class="dimmed">
Voelt als {{ current.feelsLikeTemp | roundValue | unit("temperature") | decimalSymbol }}
</span>
</div>
<div class="crop dimmed small">
{{ current.humanRead }}
</div>
<div class="thin xsmall xsmall">
{{ current.tijdstip }}
</div>
{% else %}
<div class="dimmed light small">
{{ "LOADING" | translate | safe }}
</div>
{% endif %}
<!-- Uncomment the line below to see the contents of the `current` object. -->
<!-- <div style="word-wrap:break-word" class="xsmall dimmed">{{current | dump}}</div> -->