diff --git a/templates/history_range.html b/templates/history_range.html new file mode 100644 index 0000000..d115520 --- /dev/null +++ b/templates/history_range.html @@ -0,0 +1,208 @@ + + + + + Historia pogody - {{ city }} + + + + +

Historia pogody dla {{ city }}
od {{ start_date }} do {{ end_date }}

+ + {% if error %} +

{{ error }}

+ {% elif history %} + + + + + + + + + + + {% for i in range(history["time"]|length) %} + + + + + + + {% endfor %} + +
DataTemp. maks. (°C)Temp. min. (°C)Opady (mm)
{{ history["time"][i] }}{{ history["temperature_2m_max"][i] }}{{ history["temperature_2m_min"][i] }}{{ history["precipitation_sum"][i] }}
+ + + + + {% endif %} + + +