diff --git a/plugins/posistagenet/icon.afphoto b/plugins/posistagenet/icon.afphoto new file mode 100644 index 0000000..402dff6 Binary files /dev/null and b/plugins/posistagenet/icon.afphoto differ diff --git a/plugins/posistagenet/icon.png b/plugins/posistagenet/icon.png index 6b45f09..21e3411 100644 Binary files a/plugins/posistagenet/icon.png and b/plugins/posistagenet/icon.png differ diff --git a/plugins/posistagenet/styles.css b/plugins/posistagenet/styles.css index 7d0c370..4df893f 100644 --- a/plugins/posistagenet/styles.css +++ b/plugins/posistagenet/styles.css @@ -1,11 +1,46 @@ +section { + background-color: #2d2d2d; + border: gray 1px solid; + padding: 10px; + padding-top: 0px; + border-radius: 10px; + overflow: hidden; +} +table { + border: #414142 1px solid; + background-color: #272727; +} table, th, td { - border: 1px solid darkgray; border-collapse: collapse; - color: gainsboro; -} + color: #ccc; + font-size: 13px; +} +th { + padding: 2px 10px; +} td { text-align: center; + padding: 2px 7px; + font-family: 'Courier New', Courier, monospace; +} +.bg-pos { + background-color: #443727; +} +.bg-speed { + background-color: #32422e; +} +.bg-ori { + background-color: #2e4242; +} +.bg-accel { + background-color: #392b3f; +} +.bg-trgtpos { + background-color: #3a2732; +} +.border-right { + border-right: 1px solid #272727; } diff --git a/plugins/posistagenet/template.ejs b/plugins/posistagenet/template.ejs index a372298..a3ae454 100644 --- a/plugins/posistagenet/template.ejs +++ b/plugins/posistagenet/template.ejs @@ -7,6 +7,7 @@ <% Object.keys(data).forEach((address) => { const instanceData = data[address] %> +

Server: <%= instanceData.system_name %> (<%= address %>)

Tracker Count: <%= Object.keys(instanceData.trackers).length %>

@@ -18,27 +19,27 @@ <% } %> <% if(instanceData.fields.has('pos')) { %> - POS + POS <% } %> <% if(instanceData.fields.has('speed')) { %> - SPEED + SPEED <% } %> <% if(instanceData.fields.has('ori')) { %> - ORI + ORI <% } %> <% if(instanceData.fields.has('status')) { %> - + <% } %> <% if(instanceData.fields.has('accel')) { %> - ACCEL + ACCEL <% } %> <% if(instanceData.fields.has('trgtpos')) { %> - TRGTPOS + TRGTPOS <% } %> <% if(instanceData.fields.has('timestamp')) { %> @@ -52,37 +53,37 @@ <% } %> <% if(instanceData.fields.has('pos')) { %> - x - y - z + x + y + z <% } %> <% if(instanceData.fields.has('speed')) { %> - x - y - z + x + y + z <% } %> <% if(instanceData.fields.has('ori')) { %> - x - y - z + x + y + z <% } %> <% if(instanceData.fields.has('status')) { %> - validity + validity <% } %> <% if(instanceData.fields.has('accel')) { %> - x - y - z + x + y + z <% } %> <% if(instanceData.fields.has('trgtpos')) { %> - x - y - z + x + y + z <% } %> <% if(instanceData.fields.has('timestamp')) { %> @@ -101,41 +102,41 @@ <% if(instanceData.fields.has('pos')) { %> - <%= trackerData.pos?.pos_x?.toFixed(2) %> - <%= trackerData.pos?.pos_y?.toFixed(2) %> - <%= trackerData.pos?.pos_z?.toFixed(2) %> + <%= trackerData.pos?.pos_x?.toFixed(2) %> + <%= trackerData.pos?.pos_y?.toFixed(2) %> + <%= trackerData.pos?.pos_z?.toFixed(2) %> <% } %> <% if(instanceData.fields.has('speed')) { %> - <%= trackerData.speed?.speed_x?.toFixed(2) %> - <%= trackerData.speed?.speed_y?.toFixed(2) %> - <%= trackerData.speed?.speed_z?.toFixed(2) %> + <%= trackerData.speed?.speed_x?.toFixed(2) %> + <%= trackerData.speed?.speed_y?.toFixed(2) %> + <%= trackerData.speed?.speed_z?.toFixed(2) %> <% } %> <% if(instanceData.fields.has('ori')) { %> - <%= trackerData.ori?.ori_x?.toFixed(2) %> - <%= trackerData.ori?.ori_y?.toFixed(2) %> - <%= trackerData.ori?.ori_z?.toFixed(2) %> + <%= trackerData.ori?.ori_x?.toFixed(2) %> + <%= trackerData.ori?.ori_y?.toFixed(2) %> + <%= trackerData.ori?.ori_z?.toFixed(2) %> <% } %> <% if(instanceData.fields.has('status')) { %> - <%= trackerData.status?.validity?.toFixed(2) %> + <%= trackerData.status?.validity?.toFixed(2) %> <% } %> <% if(instanceData.fields.has('accel')) { %> - <%= trackerData.accel?.accel_x?.toFixed(2) %> - <%= trackerData.accel?.accel_y?.toFixed(2) %> - <%= trackerData.accel?.accel_z?.toFixed(2) %> + <%= trackerData.accel?.accel_x?.toFixed(2) %> + <%= trackerData.accel?.accel_y?.toFixed(2) %> + <%= trackerData.accel?.accel_z?.toFixed(2) %> <% } %> <% if(instanceData.fields.has('trgtpos')) { %> - <%= trackerData.trgtpos?.trgtpos_x?.toFixed(2) %> - <%= trackerData.trgtpos?.trgtpos_y?.toFixed(2) %> - <%= trackerData.trgtpos?.trgtpos_z?.toFixed(2) %> + <%= trackerData.trgtpos?.trgtpos_x?.toFixed(2) %> + <%= trackerData.trgtpos?.trgtpos_y?.toFixed(2) %> + <%= trackerData.trgtpos?.trgtpos_z?.toFixed(2) %> <% } %> <% if(instanceData.fields.has('timestamp')) { %> @@ -146,6 +147,7 @@ <% }); %> +
<% }); %>