diff options
author | Matt Kohls <mattkohls13@gmail.com> | 2021-04-23 23:42:42 -0400 |
---|---|---|
committer | Matt Kohls <mattkohls13@gmail.com> | 2021-04-23 23:42:42 -0400 |
commit | 437c1179b545927197637c26bb2d87d20401e5f2 (patch) | |
tree | 590e57b5dd6f0d707d8e95a7a5242bd1e892053f /templates/interactive.html | |
parent | 352c56375b4ec2af8f0b593b450069271bcd65e2 (diff) | |
download | Sensor-Server-437c1179b545927197637c26bb2d87d20401e5f2.tar.gz Sensor-Server-437c1179b545927197637c26bb2d87d20401e5f2.tar.bz2 Sensor-Server-437c1179b545927197637c26bb2d87d20401e5f2.zip |
Many changes, mostly to make landing page more readable
Oh and a file to read a sensor attached via i2c on a Raspberry Pi and
add that to the db
Diffstat (limited to 'templates/interactive.html')
-rw-r--r-- | templates/interactive.html | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/templates/interactive.html b/templates/interactive.html new file mode 100644 index 0000000..1756865 --- /dev/null +++ b/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 %} |