diff options
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) |
