From 7d613a4272802be9914943235dc78966f4591d97 Mon Sep 17 00:00:00 2001 From: jakub_figat Date: Thu, 24 Jul 2025 12:19:02 +0000 Subject: [PATCH] Add templates/hourly_forecast.html --- templates/hourly_forecast.html | 221 +++++++++++++++++++++++++++++++++ 1 file changed, 221 insertions(+) create mode 100644 templates/hourly_forecast.html diff --git a/templates/hourly_forecast.html b/templates/hourly_forecast.html new file mode 100644 index 0000000..dfcf175 --- /dev/null +++ b/templates/hourly_forecast.html @@ -0,0 +1,221 @@ + + + + + Prognoza godzinowa - {{ city }} + + + + + +

Prognoza godzinowa dla {{ city }}

+ +
+ + + + +
+ + {% if error %} +

{{ error }}

+ {% elif hourly_forecast %} + + + + + + + + {% for i in range(hourly_forecast["time"]|length) %} + + + + + + + {% endfor %} + +
GodzinaTemp. (°C)Wiatr (km/h)Opady (mm)
{{ hourly_forecast["time"][i] }}{{ hourly_forecast["temperature_2m"][i] }}{{ hourly_forecast["windspeed_10m"][i] }}{{ hourly_forecast["precipitation"][i] }}
+ + + + + {% endif %} + + +