Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Round frequency data to 1 kHz on display
  • Loading branch information
Mark Jessop authored and Mark Jessop committed Dec 29, 2024
commit a167ff274dedfc082408196323a3bc8dd2c2f10a
7 changes: 6 additions & 1 deletion js/sondehub.js
Original file line number Diff line number Diff line change
Expand Up @@ -1369,6 +1369,11 @@ function habitat_data(jsondata, data_ages, current_timestamp, alternative) {
}
}

// Round frequency data
if(k === "frequency"){
v = v.toFixed(3);
}

// Check if data is considered to be 'old'
// Need to think about how to style old data.
// Maybe make the text grey?
Expand Down Expand Up @@ -2865,7 +2870,7 @@ function mapInfoBox_handle_path_new(data, vehicle, date) {
if (data.hasOwnProperty("tx_frequency")) {
html += "<div><b>TX Frequency:&nbsp;</b>" + data.tx_frequency + " MHz</div>";
} else if (data.hasOwnProperty("frequency")) {
html += "<div><b>Frequency:&nbsp;</b>" + data.frequency + " MHz</div>";
html += "<div><b>Frequency:&nbsp;</b>" + data.frequency.toFixed(3) + " MHz</div>";
};
if (data.hasOwnProperty("humidity")) {
html += "<div><b>Relative Humidity:&nbsp;</b>" + data.humidity + " %</div>";
Expand Down