summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorroot <root@turin.home>2022-01-30 15:41:58 +0000
committerroot <root@turin.home>2022-01-30 15:41:58 +0000
commit333bdb9507ca82709d92fe8919a9b40fc02d7dc7 (patch)
tree52f0c6375d7dbdd59ce01a9d73a82a0302d18e54
parent74a189c366e07e681176bc207bdcc1aa316790c7 (diff)
Minor fixes
-rw-r--r--api.py2
-rw-r--r--templates/main.html6
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
</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>