From fb446f9138b979d7d990b3712f19216dd312eb57 Mon Sep 17 00:00:00 2001 From: Matthias Wirth Date: Thu, 19 Jun 2025 08:24:19 +0000 Subject: [PATCH] add option to relabel data input into readsb jaero port --- html/config.js | 1 + html/defaults.js | 5 +++-- html/formatter.js | 2 +- html/script.js | 8 +++----- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/html/config.js b/html/config.js index a71ad23..aa0a905 100644 --- a/html/config.js +++ b/html/config.js @@ -366,6 +366,7 @@ HideCols = [ // // //jaeroTimeout = 35 * 60; // in seconds +//jaeroLabel = "ADS-C"; // relabel the ADS-C data if used for other purposes (i.e. HFDL / acars2pos) //seenTimeout = 58; // in seconds //seenTimeoutMlat = 58; // in seconds diff --git a/html/defaults.js b/html/defaults.js index 545fbb1..d1f1945 100644 --- a/html/defaults.js +++ b/html/defaults.js @@ -372,6 +372,7 @@ let askLocation = false; // requires https for geolocation let filterMaxRange = 1e8; // 100 000 km should include all planes on earth ;) let jaeroTimeout = 35 * 60; // in seconds +let jaeroLabel = "ADS-C"; // relabel the ADS-C data if used for other purposes (i.e. HFDL / acars2pos) let seenTimeout = 58; // in seconds let seenTimeoutMlat = 58; // in seconds @@ -405,7 +406,7 @@ let tableColors = { mlat: "#FDF7DD", uat: "#C4FFDC", adsr: "#C4FFDC", - adsc: "#C4FFDC", + adsc: "#9efa9e", modeS: "#d8d8ff", tisb: "#ffd8e6", unknown: "#dcdcdc", @@ -417,7 +418,7 @@ let tableColors = { mlat: "#F1DD83", uat: "#66FFA6", adsr: "#66FFA6", - adsc: "#66FFA6", + adsc: "#75f075", modeS: "#BEBEFF", tisb: "#FFC1D8", unknown: "#bcbcbc", diff --git a/html/formatter.js b/html/formatter.js index 3059103..39e2a62 100644 --- a/html/formatter.js +++ b/html/formatter.js @@ -324,7 +324,7 @@ function format_data_source(source) { case 'mode_ac': return "Mode A/C"; case 'adsc': - return "Sat. ADS-C"; + return jaeroLabel; case 'other': return "Other"; } diff --git a/html/script.js b/html/script.js index 3a2b784..35f2019 100644 --- a/html/script.js +++ b/html/script.js @@ -1758,10 +1758,7 @@ jQuery('#selected_altitude_geom1') function initLegend(colors) { let html = ''; html += '
ADS-B
'; - if (!globeIndex) - html += '
UAT / ADS-R
'; - if (globeIndex) - html += '
ADS-C/R / UAT
'; + html += '
UAT / ADS-R
'; html += '
MLAT
'; html += '
'; html += '
TIS-B
'; @@ -1771,6 +1768,7 @@ function initLegend(colors) { html += '
Other
'; if (aiscatcher_server) html += '
AIS
'; + html += '
${jaeroLabel}
`; document.getElementById('legend').innerHTML = html; } @@ -1788,7 +1786,7 @@ function initSourceFilter(colors) { html += createFilter(colors['tisb'], 'TIS-B', sources[3]); html += createFilter(colors['modeS'], 'Mode-S', sources[4]); html += createFilter(colors['other'], 'Other', sources[5]); - html += createFilter(colors['uat'], 'ADS-C', sources[6]); + html += createFilter(colors['adsc'], jaeroLabel, sources[6]); if (aiscatcher_server) { html += createFilter(colors['ais'], 'AIS', sources[7]);