added operating status to device details

This commit is contained in:
Aaska Black Wolf
2026-05-31 14:52:38 +02:00
parent 46b65be406
commit 3589a74e5c
3 changed files with 37 additions and 5 deletions
+5 -3
View File
@@ -221,14 +221,16 @@ function showDeviceData() {
let latestPowerData = document.createElement('table')
//solar panel data
latestPowerData.innerHTML += '<tr><td></td><td></td><td class="right">' +
latestPowerData.innerHTML += '<tr><td class="right">' +
i18n[lang]['datafield_CS'] + ':</td><td>' + ( (latestDataSet['CS']) ? i18n[lang]['operatingStatus_' + latestDataSet['CS']] : '---') +
'</td><td class="right">' +
i18n[lang]['datafield_VPV'] + ':</td><td>' + ( (latestDataSet['VPV']) ? parseInt(latestDataSet['VPV']) / 1000 : '---' ) + 'V' +
'</td><td class="right">' +
'</td><td class="right">' +
i18n[lang]['datafield_PPV'] + ':</td><td>' + ( (latestDataSet['PPV']) ? latestDataSet['PPV'] : '---' ) + 'W' +
'</td></tr>'
//battery / channel 1 data
latestPowerData.innerHTML += '<tr><td class="right">' +
latestPowerData.innerHTML += '<tr><td class="right">' +
i18n[lang]['datafield_I'] + ':</td><td>' + ( (latestDataSet['I']) ? parseInt(latestDataSet['I']) / 1000 : '---' ) + 'A' +
'</td><td class="right">' +
i18n[lang]['datafield_V'] + ':</td><td>' + ( (latestDataSet['V']) ? parseInt(latestDataSet['V']) / 1000 : '---' ) + 'V' +