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) {
4848 var aprsflag = false ;
4949 dataTempEntry . callsign = { } ;
5050 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+
5161 if ( vehicles . hasOwnProperty ( data [ key ] [ i ] . payload_callsign ) ) {
5262 maximumAltitude = vehicles [ data [ key ] [ i ] . payload_callsign ] . max_alt ;
5363 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