153 lines
4.7 KiB
Plaintext
153 lines
4.7 KiB
Plaintext
{
|
|
"custom": {
|
|
"HUM_tagPath": [],
|
|
"data": [
|
|
"[Ignition_Common_IO_Gtwy]GAL1171/SATB1_GAL1171_HUM_03",
|
|
"[Ignition_Common_IO_Gtwy]GAL1172/SATB1_GAL1172_HUM_01",
|
|
"[Ignition_Common_IO_Gtwy]GAL1172/SATB1_GAL1172_HUM_02",
|
|
"[Ignition_Common_IO_Gtwy]GAL1261/SATB1_GAL1261_HUM_03",
|
|
"[Ignition_Common_IO_Gtwy]GAL1262/SATB1_GAL1262_HUM_01",
|
|
"[Ignition_Common_IO_Gtwy]GAL1262/SATB1_GAL1262_HUM_02",
|
|
"[Ignition_Common_IO_Gtwy]GAL1271/SATB1_GAL1271_HUM_03",
|
|
"[Ignition_Common_IO_Gtwy]GAL1272/SATB1_GAL1272_HUM_01",
|
|
"[Ignition_Common_IO_Gtwy]GAL1272/SATB1_GAL1272_HUM_02",
|
|
"[Ignition_Common_IO_Gtwy]GAL1281/SATB1_GAL1281_HUM_03",
|
|
"[Ignition_Common_IO_Gtwy]GAL1282/SATB1_GAL1282_HUM_01",
|
|
"[Ignition_Common_IO_Gtwy]GAL1282/SATB1_GAL1282_HUM_02"
|
|
],
|
|
"room": "GAL1262",
|
|
"tagPath": "[Ignition_Common_IO_Gtwy]"
|
|
},
|
|
"params": {},
|
|
"propConfig": {
|
|
"custom.HUM_tagPath": {
|
|
"binding": {
|
|
"config": {
|
|
"path": "view.custom.room"
|
|
},
|
|
"transforms": [
|
|
{
|
|
"code": "\tpath \u003d str(self.view.custom.tagPath) + value +\"/\"\n\ttags \u003d system.tag.browse(path,{\"typeId\":\"Objects/Air/HUM\", \"recursive\":True ,\"tagType\":\"UdtInstance\"})\n\toutput \u003d []\n\tfor item in tags:\n\t\toutput.append(item[\"fullPath\"])\n\treturn output\n\t",
|
|
"type": "script"
|
|
}
|
|
],
|
|
"type": "property"
|
|
},
|
|
"persistent": true
|
|
},
|
|
"custom.data": {
|
|
"binding": {
|
|
"config": {
|
|
"struct": {
|
|
"tagPath": "{view.custom.tagPath}",
|
|
"time": "now(3000)"
|
|
},
|
|
"waitOnAll": true
|
|
},
|
|
"enabled": false,
|
|
"transforms": [
|
|
{
|
|
"code": "\toutput \u003d []\n\ttags \u003d system.tag.browse(value[\"tagPath\"],{\"typeId\":\"Objects/Air/HUM\", \"recursive\":True ,\"tagType\":\"UdtInstance\"})\n\tfor item in tags:\n\t\ttagPath \u003d str(item[\"fullPath\"])\n\t\toutput.append(tagPath)\n\treturn output",
|
|
"type": "script"
|
|
}
|
|
],
|
|
"type": "expr-struct"
|
|
},
|
|
"persistent": true
|
|
},
|
|
"custom.room": {
|
|
"persistent": true
|
|
},
|
|
"custom.tagPath": {
|
|
"persistent": true
|
|
}
|
|
},
|
|
"props": {
|
|
"defaultSize": {
|
|
"height": 1000,
|
|
"width": 1276
|
|
}
|
|
},
|
|
"root": {
|
|
"children": [
|
|
{
|
|
"meta": {
|
|
"name": "FlexRepeater"
|
|
},
|
|
"propConfig": {
|
|
"props.instances": {
|
|
"binding": {
|
|
"config": {
|
|
"path": "view.custom.HUM_tagPath"
|
|
},
|
|
"enabled": false,
|
|
"transforms": [
|
|
{
|
|
"code": "\toutput \u003d []\n\tfor item in value:\n\t\toutput.append({\"instanceStyle\":{\"classes\": \"\"},\n\t\t\t\t\t\t\"instancePosition\":{},\n\t\t\t\t\t\t\"embedded\": False,\n\t\t\t\t\t\t\"objectName\": \"HUM\",\n\t\t\t\t\t\t\"tagPath\": item})\n\treturn output",
|
|
"type": "script"
|
|
}
|
|
],
|
|
"type": "property"
|
|
}
|
|
}
|
|
},
|
|
"props": {
|
|
"direction": "column",
|
|
"instances": [
|
|
{
|
|
"embedded": false,
|
|
"instancePosition": {},
|
|
"instanceStyle": {
|
|
"classes": ""
|
|
},
|
|
"objectName": "HUM",
|
|
"tagPath": "[Ignition_Common_IO_Gtwy]GAL1262/SATB1_GAL1262_HUM_01"
|
|
},
|
|
{
|
|
"embedded": false,
|
|
"instancePosition": {},
|
|
"instanceStyle": {
|
|
"classes": ""
|
|
},
|
|
"objectName": "HUM",
|
|
"tagPath": "[Ignition_Common_IO_Gtwy]GAL1262/SATB1_GAL1262_HUM_02"
|
|
}
|
|
],
|
|
"path": "Library/Diagrams/HVAC/Dgrm_HUM",
|
|
"style": {
|
|
"gap": 100,
|
|
"overflow": "visible"
|
|
},
|
|
"useDefaultViewHeight": false,
|
|
"useDefaultViewWidth": false
|
|
},
|
|
"type": "ia.display.flex-repeater"
|
|
}
|
|
],
|
|
"meta": {
|
|
"name": "root"
|
|
},
|
|
"props": {
|
|
"justify": "space-evenly",
|
|
"style": {
|
|
"backgroundColor": "var(--containerRoot)",
|
|
"overflow": "visible",
|
|
"padding": 15
|
|
}
|
|
},
|
|
"scripts": {
|
|
"customMethods": [],
|
|
"extensionFunctions": null,
|
|
"messageHandlers": [
|
|
{
|
|
"messageType": "roomUpdate",
|
|
"pageScope": true,
|
|
"script": "\t# implement your handler here\n\tself.view.custom.room \u003d payload[\"Room\"]",
|
|
"sessionScope": false,
|
|
"viewScope": false
|
|
}
|
|
]
|
|
},
|
|
"type": "ia.container.flex"
|
|
}
|
|
} |