Skip to content

Commit 516acaf

Browse files
darksidelemmrossengeorgiev
authored andcommitted
Add 1 hour filter for TTN receivers.
1 parent c0344b0 commit 516acaf

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
@@ -2714,6 +2714,12 @@ function updateReceivers(r) {
27142714

27152715
if(lat < -90 || lat > 90 || lon < -180 || lon > 180) continue;
27162716

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

27192725
if(r_index == -1) {

0 commit comments

Comments
 (0)