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);