Skip to content

Commit efecac9

Browse files
authored
Merge pull request projecthorus#33 from darksidelemm/main
Temporary fix for issue with gateway uploding lat lon alt as strings
2 parents b7de1b9 + cd01c81 commit efecac9

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

js/format.js

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff 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) {

0 commit comments

Comments
 (0)