summaryrefslogtreecommitdiff
path: root/waterspout_radar
diff options
context:
space:
mode:
authorAki <please@ignore.pl>2023-04-03 23:30:45 +0200
committerAki <please@ignore.pl>2023-04-03 23:30:45 +0200
commit33cc3c920c2e89abcf07cf5a1c181287748fadf3 (patch)
treefae4536c9d318719d5dd5a52a3b7ad9b35e232cb /waterspout_radar
parente433009ef3df8f3b27bdaf0bb3ff7c79909c89ba (diff)
downloadwaterspout-radar-33cc3c920c2e89abcf07cf5a1c181287748fadf3.zip
waterspout-radar-33cc3c920c2e89abcf07cf5a1c181287748fadf3.tar.gz
waterspout-radar-33cc3c920c2e89abcf07cf5a1c181287748fadf3.tar.bz2
Added low clouds to the web interface
Diffstat (limited to 'waterspout_radar')
-rw-r--r--waterspout_radar/web.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/waterspout_radar/web.py b/waterspout_radar/web.py
index 63fa3fa..a3ee09b 100644
--- a/waterspout_radar/web.py
+++ b/waterspout_radar/web.py
@@ -10,10 +10,11 @@ def predictions():
body = "<!doctype html><html lang='en'><meta charset='utf-8'><title>Predictions</title>"
body += "<h1>Prediction</h1><hr>"
body += "<table>"
- body += "<tr><th>Time<th>&Delta;Temp<th>Depth<th>Wind<th>SWI</tr>"
+ body += "<tr><th>Time<th>Low Clouds<th>&Delta;Temp<th>Depth<th>Wind<th>SWI</tr>"
for prediction in sorted(_storage.Storage(".waterspout/predictions.json"), key=lambda x: (x.time, x.swi)):
body += "<tr>"
body += f"<td>{prediction.time}"
+ body += f"<td>{prediction.low_clouds}"
body += f"<td>{prediction.temperature_difference}"
body += f"<td>{prediction.convective_cloud_depth}"
body += f"<td>{prediction.wind}"