Implement CSV download for all parameters
This commit is contained in:
1 parent
4016f3acfd
commit
d27247e265
4 files changed
+61
-2
No files matched your search
@@ -330,7 +330,10 @@ function flattenDevice(device) {
|
||||
|
||||
const attrs = {};
|
||||
if (tree["_value"] != null) {
|
||||
attrs["value"] = [tree["_value"], tree["_type"]];
|
||||
attrs["value"] = [
|
||||
tree["_value"] instanceof Date ? +tree["_value"] : tree["_value"],
|
||||
tree["_type"]
|
||||
];
|
||||
attrs["valueTimestamp"] = +(tree["_timestamp"] || childrenTimestamp);
|
||||
attrs["object"] = false;
|
||||
attrs["objectTimestamp"] = childrenTimestamp;
|
||||
|
||||
Reference in new issue
Block a user