cosmicpi-rpi_V1.5/frontend/templates/plotting.html

44 lines
1.9 KiB
HTML
Raw Normal View History

{% extends "cosmic_base.html" %}
{% block title %}Custom Plotting{% endblock %}
{% block head_additions %}
{# The flask_googlemaps package does not work if installed via "sudo pip ...", I should figure out how to fix this #}
{# {{"decoupled-map"|googlemap_js(location_vars['Latitude'], location_vars['Longitude'], markers=[( location_vars['Latitude'], location_vars['Longitude'] )])}} #}
{% endblock %}
{% block content %}
<h1>Custom Plotting</h1>
<div class="col-lg-6">
<div class="panel panel-default">
<div class="panel-heading">
Location
</div>
<!-- /.panel-heading -->
<div class="panel-body">
{# {{"decoupled-map"|googlemap_html(location_vars['Latitude'], location_vars['Longitude']) }} #}
2017-10-20 14:34:02 +00:00
</div>
</div>
</div>
<br>
<div class="col-lg-6">
<div class="panel panel-default">
<div class="panel-heading">
Plot settings
</div>
<!-- /.panel-heading -->
<div class="panel-body">
<form action="/histogram.png" target="_blank">
Start time of the plot in UTCUnixSeconds (negative seconds will mean "seconds before last measurement"):<br>
2017-10-21 18:08:41 +00:00
<input type="text" name="start_time" value="-300"><br>
2017-10-20 14:34:02 +00:00
End time of the plot in UTCUnixSeconds(the plot will not extend further than the available data):<br>
<input type="text" name="end_time" value="9000000000"><br>
The bin size for the histogram in seconds (note that too many bins will slow down the histogram creation):<br>
2017-10-21 18:08:41 +00:00
<input type="text" name="bin_size_seconds" value="10"><br><br>
2017-10-20 14:34:02 +00:00
<input type="submit" value="Create plot">
</form>
</div>
</div>
</div>
{% endblock %}