diff options
Diffstat (limited to 'waterspout_radar/web.py')
-rw-r--r-- | waterspout_radar/web.py | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/waterspout_radar/web.py b/waterspout_radar/web.py index 67ac4ca..63fa3fa 100644 --- a/waterspout_radar/web.py +++ b/waterspout_radar/web.py @@ -10,8 +10,14 @@ 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>ΔTemp<th>Depth<th>SWI</tr>" + body += "<tr><th>Time<th>Δ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 += f"<tr><td>{prediction.time}<td>{prediction.temperature_difference}<td>{prediction.convective_cloud_depth}<td>{prediction.swi}</tr>" + body += "<tr>" + body += f"<td>{prediction.time}" + body += f"<td>{prediction.temperature_difference}" + body += f"<td>{prediction.convective_cloud_depth}" + body += f"<td>{prediction.wind}" + body += f"<td>{prediction.swi}" + body += "</tr>" body += "</table>" return body |