Added printout of shunt voltage
All checks were successful
Test compiling project / test (push) Successful in 2m27s

This commit is contained in:
2025-02-22 22:59:08 +01:00
parent 6e171fbde7
commit 2c4344e40d
4 changed files with 8 additions and 3 deletions

View File

@@ -10,6 +10,7 @@ function fetchElectricData() {
.then(data => {
document.getElementById('voltage').textContent = data.bus_voltage ? (roundToTwo(data.bus_voltage) + ' V') : 'XXX';
document.getElementById('current').textContent = data.current ? (roundToTwo(data.current) + ' mA') : 'XXX';
document.getElementById('shunt_voltage').textContent = data.current ? (roundToTwo(data.shunt_voltage) + ' mV') : 'XXX';
})
.catch(error => {
console.error("There was an error fetching data from the API", error);

View File

@@ -42,6 +42,10 @@
<td>Current: </td>
<td id="current">WAITING</td>
</tr>
<tr>
<td>Shunt Voltage: </td>
<td id="shunt_voltage">WAITING</td>
</tr>
</tbody>
</table>
</div>

View File

@@ -1 +1 @@
4
5

View File

@@ -7,7 +7,7 @@
#define water_level_min_key "water_level_min"
#define water_level_max_key "water_level_max"
#define water_volume_key "water_volume"
#define current_software_version Version{0, 0, 16}
#define REQUIRED_SPIFFS_VERSION Version{4, 0, 0}
#define current_software_version Version{0, 0, 17}
#define REQUIRED_SPIFFS_VERSION Version{5, 0, 0}
#define RESISTOR_VALUE 4