From fd4ab7ef4410a435f8c7339e111f791f5fdc9d0b Mon Sep 17 00:00:00 2001 From: Aki Date: Tue, 4 Apr 2023 23:37:03 +0200 Subject: Moved predictions page to templates --- waterspout_radar/templates/predictions.html | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 waterspout_radar/templates/predictions.html (limited to 'waterspout_radar/templates') diff --git a/waterspout_radar/templates/predictions.html b/waterspout_radar/templates/predictions.html new file mode 100644 index 0000000..1fa3840 --- /dev/null +++ b/waterspout_radar/templates/predictions.html @@ -0,0 +1,19 @@ + + + +Predictions +

Predictions

+
+ + +{% for p in predictions %} + + +{% endfor %} +
TimeLow CloudsΔTempCloud DepthWindSWI
{{ p.time }} +{{ "{:.0f}".format(p.low_clouds * 100) }}% +{{ "{:.1f}".format(p.temperature_difference) }} +{{ "{:.1f}".format(p.convective_cloud_depth) }} +{{ "{:.1f}".format(p.wind) }} +{{ "{:.1f}".format(p.swi) }} +
-- cgit v1.1