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 => {
|
||||
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);
|
||||
|
||||
@@ -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>
|
||||
|
||||
@@ -1 +1 @@
|
||||
4
|
||||
5
|
||||
Reference in New Issue
Block a user