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

45 lines
2.3 KiB
HTML
Raw Normal View History

{% extends "cosmic_base.html" %}
{% block title %}Custom Plotting{% endblock %}
{% block head_additions %}
{% endblock %}
{% block content %}
2017-12-20 00:58:24 +00:00
<h1>Custom functionality</h1>
<div class="col-lg-6">
<div class="panel panel-default">
<div class="panel-heading">
Location
</div>
<!-- /.panel-heading -->
<div class="panel-body">
2018-02-02 10:19:54 +00:00
{# TODO: Switch from google maps to openstreet map #}
<iframe width="100%" height="450" frameborder="0" style="border:0" src="https://www.google.com/maps/embed/v1/place?q={{ location_vars['Latitude'] }},{{ location_vars['Longitude'] }}&amp;key=AIzaSyBjX-IrwBEp7lncv8Q-OXsY549c5zNh_kY"></iframe>
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">
2017-12-20 00:58:24 +00:00
Custom plotting
2017-10-20 14:34:02 +00:00
</div>
<!-- /.panel-heading -->
<div class="panel-body">
<form action="/histogram.png" target="_blank">
2017-11-12 16:28:33 +00:00
The application uses Unix timestamps to save the time of events. Thus for creating a custom plot the application will want to know the start and end time of the plot as Unix timestamps.<br>
To convert UTC time to a useful Unix timestamp, we recommend <a href="https://www.unixtimestamp.com/">this</a> website.
<br><br>
<b>Start time</b> of the plot in UTC UnixSeconds (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-11-12 16:28:33 +00:00
<b>End time</b> of the plot in UTC UnixSeconds(the plot will not extend further than the available data):<br>
2017-10-20 14:34:02 +00:00
<input type="text" name="end_time" value="9000000000"><br>
2017-11-12 16:28:33 +00:00
<b>Bin size</b> 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 %}