diff options
| author | root <root@turin.home> | 2022-01-30 15:32:52 +0000 |
|---|---|---|
| committer | root <root@turin.home> | 2022-01-30 15:32:52 +0000 |
| commit | 455b655759db7ada3c7af28629cb8af95cecbaee (patch) | |
| tree | 4d7437844b44fc9d0d64dfdcd485200419f292db | |
| parent | 276ef8a13d4ee8c35a9ca470af12aa63146d1d36 (diff) | |
Rounding for user interface
| -rw-r--r-- | main.py | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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() ) |
