Added printout of shunt voltage
All checks were successful
Test compiling project / test (push) Successful in 2m27s
All checks were successful
Test compiling project / test (push) Successful in 2m27s
This commit is contained in:
@@ -10,6 +10,7 @@ function fetchElectricData() {
|
|||||||
.then(data => {
|
.then(data => {
|
||||||
document.getElementById('voltage').textContent = data.bus_voltage ? (roundToTwo(data.bus_voltage) + ' V') : 'XXX';
|
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('current').textContent = data.current ? (roundToTwo(data.current) + ' mA') : 'XXX';
|
||||||
|
document.getElementById('shunt_voltage').textContent = data.current ? (roundToTwo(data.shunt_voltage) + ' mV') : 'XXX';
|
||||||
})
|
})
|
||||||
.catch(error => {
|
.catch(error => {
|
||||||
console.error("There was an error fetching data from the API", error);
|
console.error("There was an error fetching data from the API", error);
|
||||||
|
|||||||
@@ -42,6 +42,10 @@
|
|||||||
<td>Current: </td>
|
<td>Current: </td>
|
||||||
<td id="current">WAITING</td>
|
<td id="current">WAITING</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td>Shunt Voltage: </td>
|
||||||
|
<td id="shunt_voltage">WAITING</td>
|
||||||
|
</tr>
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -1 +1 @@
|
|||||||
4
|
5
|
||||||
@@ -7,7 +7,7 @@
|
|||||||
#define water_level_min_key "water_level_min"
|
#define water_level_min_key "water_level_min"
|
||||||
#define water_level_max_key "water_level_max"
|
#define water_level_max_key "water_level_max"
|
||||||
#define water_volume_key "water_volume"
|
#define water_volume_key "water_volume"
|
||||||
#define current_software_version Version{0, 0, 16}
|
#define current_software_version Version{0, 0, 17}
|
||||||
#define REQUIRED_SPIFFS_VERSION Version{4, 0, 0}
|
#define REQUIRED_SPIFFS_VERSION Version{5, 0, 0}
|
||||||
|
|
||||||
#define RESISTOR_VALUE 4
|
#define RESISTOR_VALUE 4
|
||||||
Reference in New Issue
Block a user