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);
|
||||
|
||||
Reference in New Issue
Block a user