mirror of
https://github.com/stagehacks/Cue-View.git
synced 2026-08-14 02:03:39 +00:00
96 lines
2.3 KiB
Plaintext
96 lines
2.3 KiB
Plaintext
<header>
|
|
<h1><%= listName%></h1>
|
|
</header>
|
|
|
|
<div>
|
|
<% Object.keys(data).forEach((address) => {
|
|
const instanceData = data[address]
|
|
%>
|
|
<h2>Server: <%= instanceData.info.system_name ? instanceData.info.system_name : ''%> (<%= address %>)</h2>
|
|
<h3>Tracker Count: <%= Object.keys(instanceData.data.trackers).length %></h3>
|
|
|
|
<table>
|
|
<tr>
|
|
<th></th>
|
|
<th></th>
|
|
<th colspan="3">POS</th>
|
|
<th colspan="3">SPEED</th>
|
|
<th colspan="3">ORI</th>
|
|
<th></th>
|
|
<th colspan="3">ACCEL</th>
|
|
<th colspan="3">TRGTPOS</th>
|
|
</tr>
|
|
<tr>
|
|
<th>ID</th>
|
|
<th>Name</th>
|
|
<th>x</th>
|
|
<th>y</th>
|
|
<th>z</th>
|
|
|
|
<th>x</th>
|
|
<th>y</th>
|
|
<th>z</th>
|
|
|
|
<th>x</th>
|
|
<th>y</th>
|
|
<th>z</th>
|
|
|
|
<th>validity</th>
|
|
|
|
<th>x</th>
|
|
<th>y</th>
|
|
<th>z</th>
|
|
|
|
<th>x</th>
|
|
<th>y</th>
|
|
<th>z</th>
|
|
|
|
<th>tracker_timestamp</th>
|
|
</tr>
|
|
|
|
<% Object.entries(instanceData.info.trackers).forEach(([trackerId,trackerInfo]) => {
|
|
const trackerData = instanceData.data.trackers[trackerId]
|
|
%>
|
|
|
|
<tr>
|
|
<td><%= trackerId %></td>
|
|
<td><%= trackerInfo.name %></td>
|
|
|
|
<!-- pos -->
|
|
<td><%= trackerData.pos?.x?.toFixed(2) %></td>
|
|
<td><%= trackerData.pos?.y?.toFixed(2) %></td>
|
|
<td><%= trackerData.pos?.z?.toFixed(2) %></td>
|
|
|
|
<!-- speed -->
|
|
<td><%= trackerData.speed?.x?.toFixed(2) %></td>
|
|
<td><%= trackerData.speed?.y?.toFixed(2) %></td>
|
|
<td><%= trackerData.speed?.z?.toFixed(2) %></td>
|
|
|
|
<!-- ori -->
|
|
<td><%= trackerData.ori?.x?.toFixed(2) %></td>
|
|
<td><%= trackerData.ori?.y?.toFixed(2) %></td>
|
|
<td><%= trackerData.ori?.z?.toFixed(2) %></td>
|
|
|
|
<td><%= trackerData.status?.validity?.toFixed(2) %></td>
|
|
|
|
<!-- accel -->
|
|
<td><%= trackerData.accel?.x?.toFixed(2) %></td>
|
|
<td><%= trackerData.accel?.y?.toFixed(2) %></td>
|
|
<td><%= trackerData.accel?.z?.toFixed(2) %></td>
|
|
|
|
<!-- trgtpos -->
|
|
<td><%= trackerData.trgtpos?.x?.toFixed(2) %></td>
|
|
<td><%= trackerData.trgtpos?.y?.toFixed(2) %></td>
|
|
<td><%= trackerData.trgtpos?.z?.toFixed(2) %></td>
|
|
|
|
<!-- pos -->
|
|
<td><%= trackerData.timestamp?.tracker_timestamp %></td>
|
|
</tr>
|
|
|
|
<% }); %>
|
|
</table>
|
|
<%
|
|
});
|
|
%>
|
|
|
|
</div> |