aprs_tool/templates/index.html

60 lines
1.6 KiB
HTML
Raw Normal View History

2023-06-24 11:17:53 -05:00
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>{{station_call}} Status</title>
<style>
table, th, td {
border: 1px solid black;
}
</style>
</head>
<body>
2023-07-09 11:22:23 -05:00
<h1>{{station_call}} Status</h1>
2023-06-24 11:20:58 -05:00
{{station_lat}}, {{station_lon}}
2023-06-24 11:17:53 -05:00
2023-07-09 11:22:23 -05:00
<h2> Recent RF Packets </h2>
2023-06-24 11:17:53 -05:00
<table>
<tr>
<th> from </th>
<th> object_name </th>
2023-06-24 18:44:18 -05:00
<th> raw </th>
2023-06-24 11:17:53 -05:00
<th> created (utc) </th>
<th> more </th>
</tr>
2023-06-24 19:06:37 -05:00
{% for i in frames %}
2023-06-24 11:17:53 -05:00
<tr>
<td> <a href="https://digi.w1cdn.net/aprs_api/packets?from={{ i['from'] }}">{{ i['from'] }}</a> </td>
<td> {{ i['object_name'] }} </td>
2023-06-24 18:44:18 -05:00
<td> {{ i['raw'] }} </td>
2023-06-24 11:17:53 -05:00
<td> {{ i['created'] }} </td>
2023-06-27 21:43:14 -05:00
<td> <a href="https://digi.w1cdn.net/aprs_api/packets?id={{ i['id'] }}">query</a>,
<a href="https://aprs.fi/#!mt=roadmap&z=12&call=a%2F{{ i['from'] }}">aprs.fi</a></td>
2023-06-24 11:17:53 -05:00
</tr>
{% endfor %}
</table>
2023-06-24 11:20:58 -05:00
<h2> Recent Stations </h2>
2023-06-24 19:06:37 -05:00
<table>
<tr>
<th> from </th>
<th> last heard (utc) </th>
<th> count </th>
2023-06-27 21:43:14 -05:00
<th> more </th>
2023-06-24 19:06:37 -05:00
</tr>
{% for i in stations %}
<tr>
<td> <a href="https://digi.w1cdn.net/aprs_api/packets?from={{ i['from'] }}">{{ i['from'] }}</a> </td>
2023-07-09 11:22:23 -05:00
<td> {{ i['last_heard_unix'] }} </td>
<td> {{ i['count']}} </td>
2023-06-27 21:43:14 -05:00
<td> <a href="https://aprs.fi/#!mt=roadmap&z=12&call=a%2F{{ i['from'] }}">aprs.fi</a></td>
2023-06-24 19:06:37 -05:00
</tr>
{% endfor %}
</table>
2023-06-24 11:20:58 -05:00
<h2> Help </h2>
This is a work in progress. See <a href="https://amiok.net/gitea/W1CDN/aprs_tool">https://amiok.net/gitea/W1CDN/aprs_tool</a> for usage.
2023-06-24 11:17:53 -05:00
</body>
</html>