diff --git a/app.py b/app.py index c3f4585..c0eedc9 100644 --- a/app.py +++ b/app.py @@ -153,3 +153,9 @@ if __name__ == '__main__': status_thread = threading.Thread(target=update_status, daemon=True) status_thread.start() app.run(debug=True) + + +@app.route('/') +def home(): + config = load_config() + return render_template('index.html', devices=config['devices']) \ No newline at end of file diff --git a/index.html b/index.html index 1644c83..3ba186f 100644 --- a/index.html +++ b/index.html @@ -16,16 +16,20 @@

Network Overview

-
+ {% for device in devices %} +
- UniFi Dream Machine Pro - 10.10.10.1 + {{ device.name }} + {{ device.ip }} + {{ device.type }} ({{ device.connection_type }})
- + {% endfor %}
+
+