mirror of
https://github.com/ConnectedHumber/Air-Quality-Web
synced 2024-11-22 06:23:01 +00:00
Display device sensor information in the device info tab
This commit is contained in:
parent
3e90c7cf8d
commit
10086bdb09
1 changed files with 8 additions and 0 deletions
|
@ -134,6 +134,14 @@ class LayerDeviceMarkers extends Emitter {
|
||||||
case "location":
|
case "location":
|
||||||
value = `(${value[0]}, ${value[1]})`;
|
value = `(${value[0]}, ${value[1]})`;
|
||||||
break;
|
break;
|
||||||
|
case "sensors":
|
||||||
|
value = CreateElement("table",
|
||||||
|
...value.map((sensor) => CreateElement("tr",
|
||||||
|
CreateElement("td", sensor.type),
|
||||||
|
CreateElement("td", sensor.description)
|
||||||
|
))
|
||||||
|
);
|
||||||
|
break;
|
||||||
default: value = value.toString(); break;
|
default: value = value.toString(); break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue