Initial commit

This commit is contained in:
root
2025-07-06 23:48:33 +02:00
commit 137f8c1c93
6 changed files with 236 additions and 0 deletions

28
templates/history.html Normal file
View File

@ -0,0 +1,28 @@
<!DOCTYPE html>
<html>
<head>
<title>Historia pogody - {{ city }}</title>
<style>
body { font-family: Arial; padding: 20px; }
table { border-collapse: collapse; width: 100%; }
th, td { padding: 10px; border: 1px solid #ddd; text-align: left; }
</style>
</head>
<body>
<h2>Historia pogody {{ city }}</h2>
<table>
<tr>
<th>Data</th>
<th>Temperatura (°C)</th>
<th>Wiatr (m/s)</th>
</tr>
{% for r in records %}
<tr>
<td>{{ r.time.strftime('%Y-%m-%d %H:%M') }}</td>
<td>{{ r.temperature }}</td>
<td>{{ r.windspeed }}</td>
</tr>
{% endfor %}
</table>
</body>
</html>