From 333bdb9507ca82709d92fe8919a9b40fc02d7dc7 Mon Sep 17 00:00:00 2001 From: root Date: Sun, 30 Jan 2022 15:41:58 +0000 Subject: Minor fixes --- api.py | 2 ++ templates/main.html | 6 +++--- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/api.py b/api.py index 468942b..46d7635 100644 --- a/api.py +++ b/api.py @@ -16,6 +16,7 @@ def api_info(): [ip]/api/target_temperature returns the current target temperature [ip]/api/on + [ip]/api/heating_on returns True if the heating is off and False if it is off """ @@ -31,6 +32,7 @@ def api_target_temperature(): return str(boiler.target) +@app.route("/api/on") @app.route("/api/heating_on") def api_on(): return str(boiler.on) diff --git a/templates/main.html b/templates/main.html index 296d813..262ba6f 100644 --- a/templates/main.html +++ b/templates/main.html @@ -6,10 +6,10 @@ href= "{{ url_for('static',filename='style.css') }}"> -

{{ forecast_temp }}

+

Outside: {{ forecast_temp }}

Increase

-

{{ actual_temp }}

-

{{ target_temp }}

+

Inside: {{ actual_temp }}

+

Target: {{ target_temp }}

Decrease

Export data

-- cgit v1.2.3