added operating status to device details
This commit is contained in:
+5
-3
@@ -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' +
|
||||
|
||||
Reference in New Issue
Block a user