summaryrefslogtreecommitdiff
path: root/waterspout_radar/templates
diff options
context:
space:
mode:
Diffstat (limited to 'waterspout_radar/templates')
-rw-r--r--waterspout_radar/templates/predictions.html19
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>&Delta;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>