aboutsummaryrefslogtreecommitdiffstats
path: root/snag/templates/dashboard
diff options
context:
space:
mode:
authorMatt Kohls <mattkohls13@gmail.com>2023-09-04 15:36:33 -0400
committerMatt Kohls <mattkohls13@gmail.com>2023-09-04 15:36:33 -0400
commitc8ef8843aaaf28bc38b544ae8ac72accf233aead (patch)
tree53e846d7480814040bbebe11dd6e290f5d366589 /snag/templates/dashboard
downloadsensor-aggregator-c8ef8843aaaf28bc38b544ae8ac72accf233aead.tar.gz
sensor-aggregator-c8ef8843aaaf28bc38b544ae8ac72accf233aead.tar.bz2
sensor-aggregator-c8ef8843aaaf28bc38b544ae8ac72accf233aead.zip
Revamped project init
New repo for larger structural changes from Sensor-Server. Currently doing most all the same stuff but hopefully better. Still have to clean out some of the older templates for the new interface
Diffstat (limited to 'snag/templates/dashboard')
-rw-r--r--snag/templates/dashboard/dashboard.html43
1 files changed, 43 insertions, 0 deletions
diff --git a/snag/templates/dashboard/dashboard.html b/snag/templates/dashboard/dashboard.html
new file mode 100644
index 0000000..c061b66
--- /dev/null
+++ b/snag/templates/dashboard/dashboard.html
@@ -0,0 +1,43 @@
+{% extends 'layout.html' %}
+
+{% block headline %}{% block title %}Dashboard{% endblock %}{% endblock %}
+
+{% block content %}
+<main>
+ {% if deviceList|length == 0 %}
+Hmmm nothing seems to be logged yet
+ {% endif %}
+ {% for entry in deviceList %}
+
+ <h2> {{ entry.name }} | {{ entry.location }} </h2>
+ <table>
+ <tr>
+ {% if entry.location != "status" %}
+ <td>
+ <figure>
+ <embed type="image/png" src="/graph/humidity-temperature.png?deviceId={{ entry.deviceId }}&type={{ entry.location}}" />
+ </figure>
+ </td>
+
+ <td>
+ <figure>
+ <embed type="image/png" src="/graph/pressure.png?deviceId={{ entry.deviceId }}&type={{ entry.location}}" />
+ </figure>
+ </td>
+ {% else %}
+ <td>
+ <figure>
+ <embed type="image/png" src="/graph/battery.png?deviceId={{ entry.deviceId }}" />
+ </figure>
+ </td>
+ {% endif %}
+ </tr>
+
+ </table>
+
+ {% endfor %}
+
+</main>
+{% endblock %}
+
+{% block footer %} Best by: {{ generatedAt }} {% endblock %}