summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorroot <root@turin.home>2022-01-30 15:32:52 +0000
committerroot <root@turin.home>2022-01-30 15:32:52 +0000
commit455b655759db7ada3c7af28629cb8af95cecbaee (patch)
tree4d7437844b44fc9d0d64dfdcd485200419f292db
parent276ef8a13d4ee8c35a9ca470af12aa63146d1d36 (diff)
Rounding for user interface
-rw-r--r--main.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/main.py b/main.py
index ca9ddcc..58d8291 100644
--- a/main.py
+++ b/main.py
@@ -36,7 +36,7 @@ def main_page():
# paramaterised location of template in 'templates' folder
return render_template(
"main.html",
- actual_temp=boiler.temperature,
+ actual_temp=round(boiler.temperature,2),
target_temp=boiler.target,
forecast_temp=weather.temperature()
)