From 74501823cc07b37120a4313f7e34f7e59515b133 Mon Sep 17 00:00:00 2001 From: Mark Jessop Date: Sun, 8 Dec 2019 12:04:51 +1030 Subject: [PATCH 1/9] Add 1 hour filter for TTN receivers. --- js/tracker.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/js/tracker.js b/js/tracker.js index 55ed19b..c655488 100644 --- a/js/tracker.js +++ b/js/tracker.js @@ -2714,6 +2714,12 @@ function updateReceivers(r) { if(lat < -90 || lat > 90 || lon < -180 || lon > 180) continue; + // Filter out any receivers that are from the TTN Bridge code, and that are older than 1 hour. + // This helps de-clutter the map during launches utilising TTN, and that result in *many* new + // receivers showing up on the map. + var age = parseFloat(r[i].tdiff_hours); // Grab age of the receiver. + if(r[i].description.includes('TTN_LORAWAN_GW') && age > 1.0) continue; + var r_index = $.inArray(r[i].name, receiver_names); if(r_index == -1) { From f24664ee7406b782c53fdb484dd9bb21029f8c57 Mon Sep 17 00:00:00 2001 From: Mark Jessop Date: Sun, 8 Dec 2019 16:58:37 +1030 Subject: [PATCH 2/9] Initial test of show/hide horizon rings. --- index.html | 19 +++++++++++++------ js/app.js | 10 ++++++++++ js/tracker.js | 40 ++++++++++++++++++++++++++++++++++++---- 3 files changed, 59 insertions(+), 10 deletions(-) diff --git a/index.html b/index.html index ef149c0..a99b367 100644 --- a/index.html +++ b/index.html @@ -16,14 +16,14 @@ - - + + @@ -154,6 +154,13 @@

Settings

+
+ Hide Horizon Rings +
+ + +
+

Overlays


@@ -303,8 +310,8 @@

Chase car mode

- - + @@ -312,7 +319,7 @@

Chase car mode

---> + - - + + + +