77 lines
2.3 KiB
HTML
77 lines
2.3 KiB
HTML
<!doctype html>
|
|
<html lang="de">
|
|
<head>
|
|
<meta charset="utf-8">
|
|
<title>RTK Rover DB</title>
|
|
<style>
|
|
body { font-family: sans-serif; margin: 2rem; background: #f6f6f6; }
|
|
h1 { margin-top: 0; }
|
|
.card { background: white; padding: 1rem; border-radius: 10px; margin-bottom: 1rem; box-shadow: 0 1px 5px #ccc; }
|
|
table { width: 100%; border-collapse: collapse; background: white; }
|
|
th, td { padding: .45rem; border-bottom: 1px solid #ddd; font-size: .9rem; }
|
|
th { text-align: left; background: #eee; }
|
|
.fix { color: green; font-weight: bold; }
|
|
.float { color: orange; font-weight: bold; }
|
|
select, button, input { padding: .4rem; }
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<h1>RTK Rover Datenbank</h1>
|
|
|
|
<div class="card">
|
|
<form method="get">
|
|
<label>Session:</label>
|
|
<select name="session_id">
|
|
{% for s in sessions %}
|
|
<option value="{{s.session_id}}" {% if s.session_id == session_id %}selected{% endif %}>
|
|
{{s.start_time}} | {{s.note}} | {{s.session_id[:8]}}
|
|
</option>
|
|
{% endfor %}
|
|
</select>
|
|
|
|
<label>
|
|
<input type="checkbox" name="only_fix" value="1" {% if only_fix %}checked{% endif %}>
|
|
nur RTK FIX
|
|
</label>
|
|
|
|
<button type="submit">Anzeigen</button>
|
|
<a href="/export.csv?session_id={{session_id}}{% if only_fix %}&only_fix=1{% endif %}">CSV exportieren</a>
|
|
</form>
|
|
</div>
|
|
|
|
<div class="card">
|
|
<b>Punkte:</b> {{count}} |
|
|
<b>Anzeige:</b> letzte {{points|length}}
|
|
</div>
|
|
|
|
<table>
|
|
<tr>
|
|
<th>Zeit</th>
|
|
<th>Lat</th>
|
|
<th>Lon</th>
|
|
<th>hMSL corr</th>
|
|
<th>hAcc</th>
|
|
<th>vAcc</th>
|
|
<th>RTK</th>
|
|
<th>Sats</th>
|
|
<th>Quelle</th>
|
|
</tr>
|
|
{% for p in points %}
|
|
<tr>
|
|
<td>{{p.t}}</td>
|
|
<td>{{"%.8f"|format(p.lat)}}</td>
|
|
<td>{{"%.8f"|format(p.lon)}}</td>
|
|
<td>{{"%.3f"|format(p.hmsl_corr_m)}}</td>
|
|
<td>{{"%.3f"|format(p.hacc_m)}}</td>
|
|
<td>{{"%.3f"|format(p.vacc_m)}}</td>
|
|
<td class="{% if p.carr_soln == 2 %}fix{% elif p.carr_soln == 1 %}float{% endif %}">
|
|
{% if p.carr_soln == 2 %}FIX{% elif p.carr_soln == 1 %}FLOAT{% else %}—{% endif %}
|
|
</td>
|
|
<td>{{p.num_sats}}</td>
|
|
<td>{{p.source}}</td>
|
|
</tr>
|
|
{% endfor %}
|
|
</table>
|
|
</body>
|
|
</html>
|