diff options
author | jwansek <eddie.atten.ea29@gmail.com> | 2023-12-24 14:47:03 +0000 |
---|---|---|
committer | jwansek <eddie.atten.ea29@gmail.com> | 2023-12-24 14:47:03 +0000 |
commit | a5287ad96406339bed6f0335a1507d969a577c9b (patch) | |
tree | 8f966dc3646e065048433f48500d0f30379efd90 /app.py | |
parent | a1e03826c0a904b93d60bd8d44f14cc6ba087314 (diff) | |
download | power.eda.gay-a5287ad96406339bed6f0335a1507d969a577c9b.tar.gz power.eda.gay-a5287ad96406339bed6f0335a1507d969a577c9b.zip |
Removed two files
Diffstat (limited to 'app.py')
-rw-r--r-- | app.py | 17 |
1 files changed, 0 insertions, 17 deletions
@@ -1,17 +0,0 @@ -import database
-import devices
-import flask
-import os
-
-app = flask.Flask(__name__)
-
-@app.route("/")
-def route_index():
- with database.PowerDatabase(host = devices.HOST) as db:
- return flask.render_template(
- "index.html.j2",
- tasmota_devices = db.get_tasmota_devices()
- )
-
-if __name__ == "__main__":
- app.run(host = "0.0.0.0", port = int(os.environ["APP_PORT"]), debug = True)
\ No newline at end of file |