diff options
author | Aki <please@ignore.pl> | 2023-04-04 23:37:03 +0200 |
---|---|---|
committer | Aki <please@ignore.pl> | 2023-04-04 23:37:03 +0200 |
commit | fd4ab7ef4410a435f8c7339e111f791f5fdc9d0b (patch) | |
tree | 45b5a40df27233a87e70494cca54800174842090 /waterspout_radar/templates | |
parent | 33cc3c920c2e89abcf07cf5a1c181287748fadf3 (diff) | |
download | waterspout-radar-fd4ab7ef4410a435f8c7339e111f791f5fdc9d0b.zip waterspout-radar-fd4ab7ef4410a435f8c7339e111f791f5fdc9d0b.tar.gz waterspout-radar-fd4ab7ef4410a435f8c7339e111f791f5fdc9d0b.tar.bz2 |
Moved predictions page to templates
Diffstat (limited to 'waterspout_radar/templates')
-rw-r--r-- | waterspout_radar/templates/predictions.html | 19 |
1 files changed, 19 insertions, 0 deletions
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 @@ +<!doctype html> +<html lang="en"> +<meta charset="utf-8"> +<title>Predictions</title> +<h1>Predictions</h1> +<hr> +<table> +<tr><th>Time<th>Low Clouds<th>ΔTemp<th>Cloud Depth<th>Wind<th>SWI</tr> +{% for p in predictions %} +<tr> +<td>{{ p.time }} +<td>{{ "{:.0f}".format(p.low_clouds * 100) }}% +<td>{{ "{:.1f}".format(p.temperature_difference) }} +<td>{{ "{:.1f}".format(p.convective_cloud_depth) }} +<td>{{ "{:.1f}".format(p.wind) }} +<td>{{ "{:.1f}".format(p.swi) }} +</tr> +{% endfor %} +</table> |