feat(ui): add NextPM firmware version button on sensors page
Add a "Firmware Version" button next to "Get Data" in the NextPM card that calls firmware_version.py and displays the result as a badge. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -375,6 +375,14 @@
|
||||
</div>
|
||||
|
||||
<div class="list-group" id="selftest_results">
|
||||
<!-- Dynamic sensor test entries will be added here -->
|
||||
<div id="sensor_tests_container"></div>
|
||||
|
||||
<!-- Separator for communication tests -->
|
||||
<div id="comm_tests_separator" class="list-group-item bg-light text-center py-1" style="display:none;">
|
||||
<small class="text-muted fw-bold">COMMUNICATION</small>
|
||||
</div>
|
||||
|
||||
<!-- Info: WiFi Status -->
|
||||
<div class="list-group-item d-flex justify-content-between align-items-center" id="test_wifi">
|
||||
<div>
|
||||
@@ -384,7 +392,7 @@
|
||||
<span id="test_wifi_status" class="badge bg-secondary">Pending</span>
|
||||
</div>
|
||||
|
||||
<!-- Test 1: Modem Connection -->
|
||||
<!-- Test: Modem Connection -->
|
||||
<div class="list-group-item d-flex justify-content-between align-items-center" id="test_modem">
|
||||
<div>
|
||||
<strong>Modem Connection</strong>
|
||||
@@ -393,7 +401,7 @@
|
||||
<span id="test_modem_status" class="badge bg-secondary">Pending</span>
|
||||
</div>
|
||||
|
||||
<!-- Test 2: SIM Card -->
|
||||
<!-- Test: SIM Card -->
|
||||
<div class="list-group-item d-flex justify-content-between align-items-center" id="test_sim">
|
||||
<div>
|
||||
<strong>SIM Card</strong>
|
||||
@@ -402,7 +410,7 @@
|
||||
<span id="test_sim_status" class="badge bg-secondary">Pending</span>
|
||||
</div>
|
||||
|
||||
<!-- Test 3: Signal Strength -->
|
||||
<!-- Test: Signal Strength -->
|
||||
<div class="list-group-item d-flex justify-content-between align-items-center" id="test_signal">
|
||||
<div>
|
||||
<strong>Signal Strength</strong>
|
||||
@@ -411,7 +419,7 @@
|
||||
<span id="test_signal_status" class="badge bg-secondary">Pending</span>
|
||||
</div>
|
||||
|
||||
<!-- Test 4: Network Connection -->
|
||||
<!-- Test: Network Connection -->
|
||||
<div class="list-group-item d-flex justify-content-between align-items-center" id="test_network">
|
||||
<div>
|
||||
<strong>Network Connection</strong>
|
||||
@@ -419,14 +427,6 @@
|
||||
</div>
|
||||
<span id="test_network_status" class="badge bg-secondary">Pending</span>
|
||||
</div>
|
||||
|
||||
<!-- Separator for sensor tests -->
|
||||
<div id="sensor_tests_separator" class="list-group-item bg-light text-center py-1" style="display:none;">
|
||||
<small class="text-muted fw-bold">SENSOR TESTS</small>
|
||||
</div>
|
||||
|
||||
<!-- Dynamic sensor test entries will be added here -->
|
||||
<div id="sensor_tests_container"></div>
|
||||
</div>
|
||||
|
||||
<!-- Logs section -->
|
||||
@@ -1612,8 +1612,8 @@ function resetSelfTestUI() {
|
||||
document.getElementById('test_network_detail').textContent = 'Waiting...';
|
||||
|
||||
// Reset sensor tests
|
||||
document.getElementById('sensor_tests_separator').style.display = 'none';
|
||||
document.getElementById('sensor_tests_container').innerHTML = '';
|
||||
document.getElementById('comm_tests_separator').style.display = 'none';
|
||||
|
||||
// Reset logs
|
||||
document.getElementById('selftest_logs').innerHTML = '';
|
||||
|
||||
Reference in New Issue
Block a user