-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathindex.html
54 lines (46 loc) · 1.63 KB
/
index.html
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
<html>
<head>
<link rel="stylesheet" type="text/css" href="{{ url_for('static', filename='style.css') }}">
</head>
<body>
<div id="main">
<div id="date">{{ now.time }}</div>
<div id="current">
<img src="{{ ds.img_url }}/{{ now.icon }}.{{ ds.img_ext }}" alt="{{ now.icon }}" />
<div id="temp">{{ now.temperature | int }}°</div>
<div id="highlow">{{ now.high | int }}° H<br />{{ now.low | int }}° L</div>
</div>
<div id="conditions">
<div id="text">{{ now.hour }}</div>
<div id="detail">Feels like: {{ now.apparentTemperature | int }}°
Wind: {{ now.windSpeed | int }} mph {{ now.windDir }}
<br />
Humidity: {{ now.humidity | int }}%
UV Index: {{ now.uvIndex | int }}
Pressure: {{ now.pressure | int }} mb</div>
</div>
<div class="forecast">
{% for item in hourly %}
<span class="next">
{{ item.time }}
<img src="{{ ds.img_url }}/{{ item.icon }}.{{ ds.img_ext }}" />
{{ item.temp | int }}°
</span>
{% endfor %}
</div>
<div id="week">{{ now.forecast }}</div>
<div class="forecast">
{% for item in daily %}
<span class="next">
{{ item.day }}
<br />
{{ item.date }}
<img src=" {{ ds.img_url }}/{{ item.icon }}.{{ ds.img_ext }}" />
{{ item.high | int }}°<br />{{ item.low | int }}°
</span>
{% endfor %}
</div>
<div id="footer">{{ now.city }}<p />Last Updated: {{ now.timestamp }}</div>
</div>
</body>
</html>