diff options
| -rw-r--r-- | api.py | 2 | ||||
| -rw-r--r-- | templates/main.html | 6 |
2 files changed, 5 insertions, 3 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) 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') }}"> </head> <body> - <p> {{ forecast_temp }} </p> + <p> Outside: {{ forecast_temp }} </p> <a href="/up"> <p>Increase</p> </a> - <p> {{ actual_temp }} </p> - <p> {{ target_temp }} </p> + <p> Inside: {{ actual_temp }} </p> + <p> Target: {{ target_temp }} </p> <a href="/down"> <p>Decrease</p> </a> <a href="/export"> <p>Export data</p> </a> </body> |
