File tree Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -48,6 +48,16 @@ function formatData(data) {
48
48
var aprsflag = false ;
49
49
dataTempEntry . callsign = { } ;
50
50
maximumAltitude = 0 ;
51
+
52
+ // Temporary fix to block bad data from DG4NOB_WSPR_GW
53
+ // This needs to be removed ASAP.
54
+ // Basically this gateway was uploading fields like lat, lon, alt, everything really
55
+ // as strings instead of numbers. Not sure how that got through sondehub, but it did
56
+ // and caused a lot of the stuff below to break because strings dont have toPrecision
57
+ if ( data [ key ] [ i ] . software_name == 'DG4NOB_WSPR_GW' ) {
58
+ continue ;
59
+ }
60
+
51
61
if ( vehicles . hasOwnProperty ( data [ key ] [ i ] . payload_callsign ) ) {
52
62
maximumAltitude = vehicles [ data [ key ] [ i ] . payload_callsign ] . max_alt ;
53
63
if ( data [ key ] [ i ] . datetime == vehicles [ data [ key ] [ i ] . payload_callsign ] . curr_position . gps_time ) {
You can’t perform that action at this time.
0 commit comments