Implementation of level and color data types
This commit is contained in:
parent
a89b418350
commit
234125bc35
30 changed files with 664 additions and 113 deletions
|
|
@ -41,11 +41,11 @@
|
|||
var table = document.getElementById('sensor-device-table');
|
||||
|
||||
for (const row of table.rows) {
|
||||
var dataItem = data.find(item => item.id == row.dataset.deviceId);
|
||||
var deviceData = data.find(item => item.id == row.dataset.deviceId);
|
||||
|
||||
if (dataItem) {
|
||||
row.cells[2].innerHTML = dataItem.data?.valueStr;
|
||||
row.cells[3].innerHTML = dataItem.data?.timestamp;
|
||||
if (deviceData) {
|
||||
row.cells[2].innerHTML = deviceData.data?.valueStr;
|
||||
row.cells[3].innerHTML = deviceData.data?.timestamp;
|
||||
|
||||
$(row.cells[3]).relTimestamp();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue