Fixed ENV status light
This commit is contained in:
parent
efc56aae40
commit
287a28d065
@ -221,7 +221,7 @@
|
|||||||
});
|
});
|
||||||
|
|
||||||
run('status').then(status => {
|
run('status').then(status => {
|
||||||
statusEnv.forEach(se => se.style.background = status['bme'] === 'ok' ? 'green' : 'red');
|
statusEnv.forEach(se => se.style.background = status['bme280'] === 'ok' ? 'green' : 'red');
|
||||||
statusBat.forEach(sb => sb.style.background = status['bms'] === 'ok' ? 'green' : 'red');
|
statusBat.forEach(sb => sb.style.background = status['bms'] === 'ok' ? 'green' : 'red');
|
||||||
});
|
});
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user