Skip to content

Commit 1758886

Browse files
committed
Merge branch 'ttn_filter' into hide_horizon
2 parents 41dc13a + 7450182 commit 1758886

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

js/tracker.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2723,6 +2723,12 @@ function updateReceivers(r) {
27232723

27242724
if(lat < -90 || lat > 90 || lon < -180 || lon > 180) continue;
27252725

2726+
// Filter out any receivers that are from the TTN Bridge code, and that are older than 1 hour.
2727+
// This helps de-clutter the map during launches utilising TTN, and that result in *many* new
2728+
// receivers showing up on the map.
2729+
var age = parseFloat(r[i].tdiff_hours); // Grab age of the receiver.
2730+
if(r[i].description.includes('TTN_LORAWAN_GW') && age > 1.0) continue;
2731+
27262732
var r_index = $.inArray(r[i].name, receiver_names);
27272733

27282734
if(r_index == -1) {

0 commit comments

Comments
 (0)