diff options
| author | root <root@turin.home> | 2022-01-30 15:41:58 +0000 |
|---|---|---|
| committer | root <root@turin.home> | 2022-01-30 15:41:58 +0000 |
| commit | 333bdb9507ca82709d92fe8919a9b40fc02d7dc7 (patch) | |
| tree | 52f0c6375d7dbdd59ce01a9d73a82a0302d18e54 /api.py | |
| parent | 74a189c366e07e681176bc207bdcc1aa316790c7 (diff) | |
Minor fixes
Diffstat (limited to 'api.py')
| -rw-r--r-- | api.py | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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 </pre> """ @@ -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) |
