diff options
author | Matt Kohls <mattkohls13@gmail.com> | 2023-09-04 15:36:33 -0400 |
---|---|---|
committer | Matt Kohls <mattkohls13@gmail.com> | 2023-09-04 15:36:33 -0400 |
commit | c8ef8843aaaf28bc38b544ae8ac72accf233aead (patch) | |
tree | 53e846d7480814040bbebe11dd6e290f5d366589 /snag/templates/interactive.html | |
download | sensor-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/interactive.html')
-rw-r--r-- | snag/templates/interactive.html | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/snag/templates/interactive.html b/snag/templates/interactive.html new file mode 100644 index 0000000..1756865 --- /dev/null +++ b/snag/templates/interactive.html @@ -0,0 +1,39 @@ +{% extends "layout.html" %} +{% block body %} + <form id="query"> + <p> + <label>Location</label> + <select id="deviceId" name="deviceId"> + <option value="1">Bedroom</option> + <option value="2">Mainfloor</option> + </select> + </p> + <p> + <label>Graph Type</label> + <select id="graph" name="graph"> + <option value="htgraph.png">Humidity & Temperature</option> + <option value="tgraph.png">Temperature</option> + <option value="hgraph.png">Humidity</option> + <option value="pgraph.png">Pressure</option> + <option value="bgraph.png">Battery</option> + </select> + </p> + <p> + <label>Start Date</label> + <input type="date" name="sd" id="sd"> + <input type="time" name="st" id="st"> + </p> + <p> + <label>End Date</label> + <input type="date" name="ed" id="ed"> + <input type="time" name="et" id="et"> + </p> + </form> + <button id='submit'>Submit</button> + + <figure> + <embed id="figure" type="image/png" src="/htgraph.png?deviceId=2" /> + </figure> + + <script src="static/interactive.js"></script> +{% endblock %} |