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 ++ 1 file changed, 2 insertions(+) (limited to 'api.py') 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) -- cgit v1.2.3