Skip to content

Commit 55bde31

Browse files
tweaks to telemetry formatting
1 parent bed9820 commit 55bde31

File tree

1 file changed

+12
-9
lines changed

1 file changed

+12
-9
lines changed

js/tracker.js

Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -441,20 +441,23 @@ function habitat_data(jsondata) {
441441
}
442442

443443
var suffixes = {
444-
"battery": "V",
444+
"battery": " V",
445+
"solar_panel": " V",
445446
"temperature": "°C",
447+
"temperature_internal": "°C",
446448
"temperature_external": "°C",
447449
"temperature_radio": "°C",
448-
"pressure": "Pa",
449-
"voltage_solar_1": "V",
450-
"voltage_solar_2": "V",
450+
"pressure": " Pa",
451+
"voltage_solar_1": " V",
452+
"voltage_solar_2": " V",
451453
"battery_percent": "%",
452-
"uplink_rssi": "dBm",
453-
"rssi_last_message": "dBm",
454-
"rssi_floor": "dBm",
454+
"uplink_rssi": " dBm",
455+
"rssi_last_message": " dBm",
456+
"rssi_floor": " dBm",
457+
"bearing": "°",
455458
"iss_azimuth": "°",
456459
"iss_elevation": "°",
457-
"light_intensity": "lx",
460+
"light_intensity": " lx",
458461
"spam": ""
459462
}
460463

@@ -488,7 +491,7 @@ function habitat_data(jsondata) {
488491
name = guess_name(k);
489492

490493
if (suffixes[k] !== undefined)
491-
suffix = " " + suffixes[k];
494+
suffix = suffixes[k];
492495

493496
output += "<dt>" + v + suffix + "</dt><dd>" + name + "</dd>";
494497
}

0 commit comments

Comments
 (0)