diff options
| -rw-r--r-- | api.py | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -3,6 +3,8 @@ from __main__ import app @app.route("/api/info") def api_info(): msg = """ + <link rel="stylesheet" type="text/css" href="/static/style.css"> + <pre> You can access data with the api. There are multiple api routes to get data. They are all in the format of [ip address]/api/[data] @@ -14,6 +16,7 @@ def api_info(): returns the current target temperature [ip]/api/on returns True if the heating is off and False if it is off + </pre> """ return msg |
