2026-04-24 FE Backup
This commit is contained in:
@@ -0,0 +1,843 @@
|
||||
{
|
||||
"custom": {
|
||||
"AlarmSeverity": {
|
||||
"prov": 3
|
||||
},
|
||||
"CRAH_tagPaths": [],
|
||||
"data": [
|
||||
"[Ignition_SATB1_IO1_default]ER1242/SATB1_P1_1_ER1242_CRAH_01",
|
||||
"[Ignition_SATB1_IO1_default]ER1242/SATB1_P1_1_ER1242_CRAH_02",
|
||||
"[Ignition_SATB1_IO1_default]ER1243/SATB1_P1_2_ER1243_CRAH_01",
|
||||
"[Ignition_SATB1_IO1_default]ER1243/SATB1_P1_2_ER1243_CRAH_02",
|
||||
"[Ignition_SATB1_IO1_default]ER1244/SATB1_P1_3_ER1244_CRAH_01",
|
||||
"[Ignition_SATB1_IO1_default]ER1244/SATB1_P1_3_ER1244_CRAH_02",
|
||||
"[Ignition_SATB1_IO1_default]ER1245/SATB1_P1_4_ER1245_CRAH_01",
|
||||
"[Ignition_SATB1_IO1_default]ER1245/SATB1_P1_4_ER1245_CRAH_02",
|
||||
"[Ignition_SATB1_IO1_default]ER1246/SATB1_P1_5_ER1246_CRAH_01",
|
||||
"[Ignition_SATB1_IO1_default]ER1246/SATB1_P1_5_ER1246_CRAH_02",
|
||||
"[Ignition_SATB1_IO2_default]ER1248/SATB1_P2_1_ER1248_CRAH_01",
|
||||
"[Ignition_SATB1_IO2_default]ER1248/SATB1_P2_1_ER1248_CRAH_02",
|
||||
"[Ignition_SATB1_IO2_default]ER1249/SATB1_P2_2_ER1249_CRAH_01",
|
||||
"[Ignition_SATB1_IO2_default]ER1249/SATB1_P2_2_ER1249_CRAH_02",
|
||||
"[Ignition_SATB1_IO2_default]ER1250/SATB1_P2_3_ER1250_CRAH_01",
|
||||
"[Ignition_SATB1_IO2_default]ER1250/SATB1_P2_3_ER1250_CRAH_02",
|
||||
"[Ignition_SATB1_IO2_default]ER1251/SATB1_P2_4_ER1251_CRAH_01",
|
||||
"[Ignition_SATB1_IO2_default]ER1251/SATB1_P2_4_ER1251_CRAH_02",
|
||||
"[Ignition_SATB1_IO2_default]ER1252/SATB1_P2_5_ER1252_CRAH_01",
|
||||
"[Ignition_SATB1_IO2_default]ER1252/SATB1_P2_5_ER1252_CRAH_02",
|
||||
"[Ignition_SATB1_IO3_default]ER1155/SATB1_P3_1_ER1155_CRAH_01",
|
||||
"[Ignition_SATB1_IO3_default]ER1155/SATB1_P3_1_ER1155_CRAH_02",
|
||||
"[Ignition_SATB1_IO3_default]ER1156/SATB1_P3_2_ER1156_CRAH_01",
|
||||
"[Ignition_SATB1_IO3_default]ER1156/SATB1_P3_2_ER1156_CRAH_02",
|
||||
"[Ignition_SATB1_IO3_default]ER1157/SATB1_P3_3_ER1157_CRAH_01",
|
||||
"[Ignition_SATB1_IO3_default]ER1157/SATB1_P3_3_ER1157_CRAH_02",
|
||||
"[Ignition_SATB1_IO3_default]ER1158/SATB1_P3_4_ER1158_CRAH_01",
|
||||
"[Ignition_SATB1_IO3_default]ER1158/SATB1_P3_4_ER1158_CRAH_02",
|
||||
"[Ignition_SATB1_IO3_default]ER1159/SATB1_P3_5_ER1159_CRAH_01",
|
||||
"[Ignition_SATB1_IO3_default]ER1159/SATB1_P3_5_ER1159_CRAH_02",
|
||||
"[Ignition_SATB1_IO4_default]ER1254/SATB1_P4_1_ER1254_CRAH_01",
|
||||
"[Ignition_SATB1_IO4_default]ER1254/SATB1_P4_1_ER1254_CRAH_02",
|
||||
"[Ignition_SATB1_IO4_default]ER1255/SATB1_P4_2_ER1255_CRAH_01",
|
||||
"[Ignition_SATB1_IO4_default]ER1255/SATB1_P4_2_ER1255_CRAH_02",
|
||||
"[Ignition_SATB1_IO4_default]ER1256/SATB1_P4_3_ER1256_CRAH_01",
|
||||
"[Ignition_SATB1_IO4_default]ER1256/SATB1_P4_3_ER1256_CRAH_02",
|
||||
"[Ignition_SATB1_IO4_default]ER1257/SATB1_P4_4_ER1257_CRAH_01",
|
||||
"[Ignition_SATB1_IO4_default]ER1257/SATB1_P4_4_ER1257_CRAH_02",
|
||||
"[Ignition_SATB1_IO4_default]ER1258/SATB1_P4_5_ER1258_CRAH_01",
|
||||
"[Ignition_SATB1_IO4_default]ER1258/SATB1_P4_5_ER1258_CRAH_02",
|
||||
"[Ignition_SATB1_IO5_default]ER1161/SATB1_P5_1_ER1161_CRAH_01",
|
||||
"[Ignition_SATB1_IO5_default]ER1161/SATB1_P5_1_ER1161_CRAH_02",
|
||||
"[Ignition_SATB1_IO5_default]ER1162/SATB1_P5_2_ER1162_CRAH_01",
|
||||
"[Ignition_SATB1_IO5_default]ER1162/SATB1_P5_2_ER1162_CRAH_02",
|
||||
"[Ignition_SATB1_IO5_default]ER1163/SATB1_P5_3_ER1163_CRAH_01",
|
||||
"[Ignition_SATB1_IO5_default]ER1163/SATB1_P5_3_ER1163_CRAH_02",
|
||||
"[Ignition_SATB1_IO5_default]ER1164/SATB1_P5_4_EL1164_CRAH_01",
|
||||
"[Ignition_SATB1_IO5_default]ER1164/SATB1_P5_4_EL1164_CRAH_02",
|
||||
"[Ignition_SATB1_IO5_default]ER1165/SATB1_P5_5_EL1165_CRAH_01",
|
||||
"[Ignition_SATB1_IO5_default]ER1165/SATB1_P5_5_EL1165_CRAH_02",
|
||||
"[Ignition_Common_IO_Gtwy]ER1151/SATB1_HS1_ER1151_CRAH_01",
|
||||
"[Ignition_Common_IO_Gtwy]ER1151/SATB1_HS1_ER1151_CRAH_02",
|
||||
"[Ignition_Common_IO_Gtwy]IDF1263/SATB1_IDF1263_CRAH_01",
|
||||
"[Ignition_Common_IO_Gtwy]IDF1263/SATB1_IDF1263_CRAH_02",
|
||||
"[Ignition_Common_IO_Gtwy]IDF1273/SATB1_IDF1273_CRAH_01",
|
||||
"[Ignition_Common_IO_Gtwy]IDF1273/SATB1_IDF1273_CRAH_02",
|
||||
"[Ignition_Common_IO_Gtwy]MPR1150/SATB1_M5_6_MPR1150_CRAH_01",
|
||||
"[Ignition_Common_IO_Gtwy]MPR1150/SATB1_M5_6_MPR1150_CRAH_02",
|
||||
"[Ignition_Common_IO_Gtwy]MPR1240/SATB1_M1_2_MPR1240_CRAH_01",
|
||||
"[Ignition_Common_IO_Gtwy]MPR1240/SATB1_M1_2_MPR1240_CRAH_02",
|
||||
"[Ignition_Common_IO_Gtwy]MPR1241/SATB1_M3_4_MPR1241_CRAH_01",
|
||||
"[Ignition_Common_IO_Gtwy]MPR1241/SATB1_M3_4_MPR1241_CRAH_02",
|
||||
"[Ignition_Common_IO_Gtwy]MPR1247/SATB1_M7_8_MPR1247_CRAH_01",
|
||||
"[Ignition_Common_IO_Gtwy]MPR1247/SATB1_M7_8_MPR1247_CRAH_02",
|
||||
"[Ignition_Common_IO_Gtwy]MR1253/SATB1_HS2_MR1253_CRAH_01",
|
||||
"[Ignition_Common_IO_Gtwy]MR1253/SATB1_HS2_MR1253_CRAH_02"
|
||||
],
|
||||
"key": "[Ignition_SATB1_IO1_default]ER1242/SATB1_P1_1_ER1242_CRAH_01",
|
||||
"key_1": null,
|
||||
"selectedRoom": "MPR1150",
|
||||
"tagPath": [
|
||||
"[Ignition_SATB1_IO1_default]",
|
||||
"[Ignition_SATB1_IO2_default]",
|
||||
"[Ignition_SATB1_IO3_default]",
|
||||
"[Ignition_SATB1_IO4_default]",
|
||||
"[Ignition_SATB1_IO5_default]",
|
||||
"[Ignition_Common_IO_Gtwy]"
|
||||
]
|
||||
},
|
||||
"params": {},
|
||||
"propConfig": {
|
||||
"custom.AlarmSeverity": {
|
||||
"binding": {
|
||||
"config": {
|
||||
"struct": {
|
||||
"paths": "{view.custom.data}",
|
||||
"time": "now(5000)"
|
||||
},
|
||||
"waitOnAll": true
|
||||
},
|
||||
"enabled": false,
|
||||
"transforms": [
|
||||
{
|
||||
"code": "\toutput \u003d []\n\ttags \u003d value[\u0027paths\u0027]\n\tfor tag in tags:\n\t\taggAlarmStatus \u003d system.tag.readBlocking([tag+\"/AlarmSummary/ActiveAlarms\"])[0].value\n\t\treturn aggAlarmStatus\n\t\tmaxState \u003d 0\n\t\tfor v in aggAlarmStatus:\n\t\t\tmaxState \u003d v if v \u003e maxState else maxState\n\t\toutput.append(maxState)\n\treturn output",
|
||||
"type": "script"
|
||||
}
|
||||
],
|
||||
"type": "expr-struct"
|
||||
},
|
||||
"persistent": true
|
||||
},
|
||||
"custom.CRAH_tagPaths": {
|
||||
"binding": {
|
||||
"config": {
|
||||
"struct": {
|
||||
"selected": "{view.custom.selectedRoom}"
|
||||
},
|
||||
"waitOnAll": true
|
||||
},
|
||||
"transforms": [
|
||||
{
|
||||
"code": "\tselected \u003d value[\"selected\"]\n\tproviders \u003d {\n\t\t\t\t\"MPR1240\":\"[Ignition_Common_IO_Gtwy]\",\n\t\t\t\t\"MPR1241\":\"[Ignition_Common_IO_Gtwy]\",\n\t\t\t\t\"MPR1247\":\"[Ignition_Common_IO_Gtwy]\",\n\t\t\t\t\"MPR1150\":\"[Ignition_Common_IO_Gtwy]\",\n\t\t\t\t\"ER1151\":\"[Ignition_Common_IO_Gtwy]\",\n\t\t\t\t\"MR1253\":\"[Ignition_Common_IO_Gtwy]\",\n\t\t\t\t\"IDF1263\":\"[Ignition_Common_IO_Gtwy]\",\n\t\t\t\t\"IDF1273\":\"[Ignition_Common_IO_Gtwy]\",\n\t\t\t\t\n\t\t\t\t\"ER1242\":\"[Ignition_SATB1_IO1_default]\",\n\t\t\t\t\"ER1243\":\"[Ignition_SATB1_IO1_default]\",\n\t\t\t\t\"ER1244\":\"[Ignition_SATB1_IO1_default]\",\n\t\t\t\t\"ER1245\":\"[Ignition_SATB1_IO1_default]\",\n\t\t\t\t\"ER1246\":\"[Ignition_SATB1_IO1_default]\",\n\t\t\t\t\n\t\t\t\t\"ER1248\":\"[Ignition_SATB1_IO2_default]\",\n\t\t\t\t\"ER1249\":\"[Ignition_SATB1_IO2_default]\",\n\t\t\t\t\"ER1250\":\"[Ignition_SATB1_IO2_default]\",\n\t\t\t\t\"ER1251\":\"[Ignition_SATB1_IO2_default]\",\n\t\t\t\t\"ER1252\":\"[Ignition_SATB1_IO2_default]\",\n\t\t\t\t\n\t\t\t\t\"ER1155\":\"[Ignition_SATB1_IO3_default]\",\n\t\t\t\t\"ER1156\":\"[Ignition_SATB1_IO3_default]\",\n\t\t\t\t\"ER1157\":\"[Ignition_SATB1_IO3_default]\",\n\t\t\t\t\"ER1158\":\"[Ignition_SATB1_IO3_default]\",\n\t\t\t\t\"ER1159\":\"[Ignition_SATB1_IO3_default]\",\n\t\t\t\t\n\t\t\t\t\"ER1254\":\"[Ignition_SATB1_IO4_default]\",\n\t\t\t\t\"ER1255\":\"[Ignition_SATB1_IO4_default]\",\n\t\t\t\t\"ER1256\":\"[Ignition_SATB1_IO4_default]\",\n\t\t\t\t\"ER1257\":\"[Ignition_SATB1_IO4_default]\",\n\t\t\t\t\"ER1258\":\"[Ignition_SATB1_IO4_default]\",\n\t\t\t\t\n\t\t\t\t\"ER1161\":\"[Ignition_SATB1_IO5_default]\",\n\t\t\t\t\"ER1162\":\"[Ignition_SATB1_IO5_default]\",\n\t\t\t\t\"ER1163\":\"[Ignition_SATB1_IO5_default]\",\n\t\t\t\t\"ER1164\":\"[Ignition_SATB1_IO5_default]\",\n\t\t\t\t\"ER1165\":\"[Ignition_SATB1_IO5_default]\",\n\t\t\t\t}\n\t\n\tpath \u003d providers[selected] + \u0027/\u0027 + selected\n\ttags \u003d system.tag.browse(path,{\"typeId\":\"Objects/Air/CRAH v2\", \"recursive\":True ,\"tagType\":\"UdtInstance\"})\n\toutput \u003d []\n\tfor item in tags:\n\t\toutput.append(item[\"fullPath\"])\n\treturn output",
|
||||
"type": "script"
|
||||
}
|
||||
],
|
||||
"type": "expr-struct"
|
||||
},
|
||||
"persistent": true
|
||||
},
|
||||
"custom.data": {
|
||||
"binding": {
|
||||
"config": {
|
||||
"path": "view.custom.time"
|
||||
},
|
||||
"enabled": false,
|
||||
"transforms": [
|
||||
{
|
||||
"code": "\toutput \u003d []\n\tdata \u003d self.custom.tagPath\n\tfor item in data:\n\t\ttags \u003d system.tag.browse(item,{\"typeId\":\"Objects/Air/CRAH\", \"recursive\":True ,\"tagType\":\"UdtInstance\"})\n\t\tfor item in tags:\n\t\t\tCRAH_tagPath \u003d str(item[\"fullPath\"])\n\t\t\toutput.append(CRAH_tagPath)\n\toutput.append(value)\n\treturn output",
|
||||
"type": "script"
|
||||
}
|
||||
],
|
||||
"type": "property"
|
||||
},
|
||||
"persistent": true
|
||||
},
|
||||
"custom.key": {
|
||||
"persistent": true
|
||||
},
|
||||
"custom.key_1": {
|
||||
"binding": {
|
||||
"config": {
|
||||
"path": "view.custom.key"
|
||||
},
|
||||
"transforms": [
|
||||
{
|
||||
"code": "\n\treturn alarm.summary.calcMaxPriority(value)",
|
||||
"type": "script"
|
||||
}
|
||||
],
|
||||
"type": "property"
|
||||
},
|
||||
"persistent": true
|
||||
},
|
||||
"custom.selectedRoom": {
|
||||
"persistent": true
|
||||
},
|
||||
"custom.tagPath": {
|
||||
"persistent": true
|
||||
}
|
||||
},
|
||||
"props": {
|
||||
"defaultSize": {
|
||||
"width": 1300
|
||||
}
|
||||
},
|
||||
"root": {
|
||||
"children": [
|
||||
{
|
||||
"children": [
|
||||
{
|
||||
"meta": {
|
||||
"name": "Label"
|
||||
},
|
||||
"propConfig": {
|
||||
"props.text": {
|
||||
"binding": {
|
||||
"config": {
|
||||
"path": "view.custom.CRAH_tagPaths[0]"
|
||||
},
|
||||
"enabled": false,
|
||||
"transforms": [
|
||||
{
|
||||
"code": "\timport re\n\ttag_path \u003d value\n\tpattern \u003d r\"]([^/]+)\" # Matches any characters between \u0027]\u0027 and \u0027/\u0027\n\tmatch \u003d re.search(pattern, tag_path)\n\tif match:\n\t\textracted_value \u003d match.group(1)\n\treturn extracted_value",
|
||||
"type": "script"
|
||||
}
|
||||
],
|
||||
"type": "property"
|
||||
}
|
||||
}
|
||||
},
|
||||
"props": {
|
||||
"style": {
|
||||
"backgroundColor": "var(--container)",
|
||||
"borderBottomLeftRadius": "var(--borderRadius)",
|
||||
"borderBottomRightRadius": "var(--borderRadius)",
|
||||
"borderTopLeftRadius": "var(--borderRadius)",
|
||||
"borderTopRightRadius": "var(--borderRadius)",
|
||||
"boxShadow": "var(--boxShadow2)",
|
||||
"overflow": "visible",
|
||||
"paddingBottom": 5,
|
||||
"paddingLeft": 15,
|
||||
"paddingRight": 15,
|
||||
"paddingTop": 5
|
||||
},
|
||||
"text": "ER1242"
|
||||
},
|
||||
"type": "ia.display.label"
|
||||
},
|
||||
{
|
||||
"meta": {
|
||||
"name": "FlexRepeater"
|
||||
},
|
||||
"propConfig": {
|
||||
"props.instances": {
|
||||
"binding": {
|
||||
"config": {
|
||||
"path": "view.custom.CRAH_tagPaths"
|
||||
},
|
||||
"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\": \"CRAH\",\n\t\t\t\t\t\t\"tagPath\": item})\n\treturn output",
|
||||
"type": "script"
|
||||
}
|
||||
],
|
||||
"type": "property"
|
||||
}
|
||||
}
|
||||
},
|
||||
"props": {
|
||||
"direction": "row-reverse",
|
||||
"instances": [
|
||||
{
|
||||
"embedded": false,
|
||||
"instancePosition": {},
|
||||
"instanceStyle": {
|
||||
"classes": ""
|
||||
},
|
||||
"objectName": "CRAH",
|
||||
"tagPath": "[Ignition_Common_IO_Gtwy]MPR1150/SATB1_M5_6_MPR1150_CRAH_01"
|
||||
},
|
||||
{
|
||||
"embedded": false,
|
||||
"instancePosition": {},
|
||||
"instanceStyle": {
|
||||
"classes": ""
|
||||
},
|
||||
"objectName": "CRAH",
|
||||
"tagPath": "[Ignition_Common_IO_Gtwy]MPR1150/SATB1_M5_6_MPR1150_CRAH_02"
|
||||
}
|
||||
],
|
||||
"path": "Library/Diagrams/HVAC/Dgrm_CRAH",
|
||||
"style": {
|
||||
"gap": 15,
|
||||
"overflow": "visible"
|
||||
}
|
||||
},
|
||||
"type": "ia.display.flex-repeater"
|
||||
}
|
||||
],
|
||||
"meta": {
|
||||
"name": "Diagrams"
|
||||
},
|
||||
"position": {
|
||||
"basis": "70%",
|
||||
"grow": 1
|
||||
},
|
||||
"props": {
|
||||
"alignContent": "center",
|
||||
"alignItems": "center",
|
||||
"direction": "column",
|
||||
"justify": "center",
|
||||
"style": {
|
||||
"backgroundColor": "var(--containerRoot)",
|
||||
"gap": 15,
|
||||
"overflow": "visible"
|
||||
}
|
||||
},
|
||||
"type": "ia.container.flex"
|
||||
},
|
||||
{
|
||||
"children": [
|
||||
{
|
||||
"meta": {
|
||||
"name": "Label"
|
||||
},
|
||||
"props": {
|
||||
"text": "Second Floor"
|
||||
},
|
||||
"type": "ia.display.label"
|
||||
},
|
||||
{
|
||||
"meta": {
|
||||
"name": "SecondFloor"
|
||||
},
|
||||
"position": {
|
||||
"basis": "20%",
|
||||
"grow": 1
|
||||
},
|
||||
"props": {
|
||||
"path": "Library/Widgets/Layouts/RTU_SecondFloor",
|
||||
"style": {
|
||||
"overflow": "visible"
|
||||
}
|
||||
},
|
||||
"type": "ia.display.view"
|
||||
},
|
||||
{
|
||||
"meta": {
|
||||
"name": "Label_0"
|
||||
},
|
||||
"props": {
|
||||
"text": "First Floor"
|
||||
},
|
||||
"type": "ia.display.label"
|
||||
},
|
||||
{
|
||||
"meta": {
|
||||
"name": "FirstFloor"
|
||||
},
|
||||
"position": {
|
||||
"basis": "20%",
|
||||
"grow": 1
|
||||
},
|
||||
"props": {
|
||||
"path": "Library/Widgets/Layouts/RTU_FirstFloor",
|
||||
"style": {
|
||||
"overflow": "visible"
|
||||
}
|
||||
},
|
||||
"type": "ia.display.view"
|
||||
},
|
||||
{
|
||||
"meta": {
|
||||
"name": "Label_1"
|
||||
},
|
||||
"props": {
|
||||
"text": "List of devices"
|
||||
},
|
||||
"type": "ia.display.label"
|
||||
},
|
||||
{
|
||||
"events": {
|
||||
"component": {
|
||||
"onRowClick": {
|
||||
"config": {
|
||||
"script": "\tpayload \u003d {\"Room\":self.props.selection.data[0].Room}\n\tmessageType \u003d \"roomUpdate\"\n\tsystem.perspective.sendMessage(messageType, payload)\n\tmessageType \u003d \"layout_01_Update\"\n\tsystem.perspective.sendMessage(messageType, payload)\n\tmessageType \u003d \"layout_02_Update\"\n\tsystem.perspective.sendMessage(messageType, payload)\n\t\n"
|
||||
},
|
||||
"scope": "G",
|
||||
"type": "script"
|
||||
}
|
||||
}
|
||||
},
|
||||
"meta": {
|
||||
"name": "Table"
|
||||
},
|
||||
"position": {
|
||||
"basis": "65%"
|
||||
},
|
||||
"propConfig": {
|
||||
"custom.selectedPaths": {
|
||||
"binding": {
|
||||
"config": {
|
||||
"struct": {
|
||||
"key": "{view.custom.loading}",
|
||||
"selectedRow": "{this.props.selection.selectedRow}"
|
||||
},
|
||||
"waitOnAll": true
|
||||
},
|
||||
"transforms": [
|
||||
{
|
||||
"code": "\tselected \u003d value[\"selectedRow\"]\n\tif selected is None:\n\t\tselected \u003d 0\n\ttagPath \u003d self.props.data[selected].tagPath\n\ttagPath \u003d tagPath.split(\"/\")\n\ttags \u003d system.tag.browse(tagPath[0],{\"typeId\":\"Objects/Air/CRAH\", \"recursive\":True ,\"tagType\":\"UdtInstance\"})\n\treturn tags",
|
||||
"type": "script"
|
||||
}
|
||||
],
|
||||
"type": "expr-struct"
|
||||
}
|
||||
},
|
||||
"props.data": {
|
||||
"binding": {
|
||||
"config": {
|
||||
"struct": {
|
||||
"data": "{view.custom.data}",
|
||||
"time": "now(5000)"
|
||||
},
|
||||
"waitOnAll": true
|
||||
},
|
||||
"transforms": [
|
||||
{
|
||||
"code": "\toutput \u003d []\n\tfor item in value[\u0027data\u0027]:\n\t\ttry:\n\t\t\tAlmS \u003d alarm.summary.calcMaxPriority(item)\n\t\texcept:\n\t\t\tAlmS \u003d -1\n\t\tif(AlmS \u003d\u003d 1):\n\t\t\tAlarmSeverity \u003d \"Controller\"\n\t\telif(AlmS \u003d\u003d 2):\n\t\t\tAlarmSeverity \u003d \"Info\"\n\t\telif(AlmS \u003d\u003d 3):\n\t\t\tAlarmSeverity \u003d \"Warning\"\n\t\telif(AlmS \u003d\u003d 4):\n\t\t\tAlarmSeverity \u003d \"Critical\"\n\t\telse:\n\t\t\tAlarmSeverity \u003d \" \"\n\t\t\n\t\tRAT \u003d system.tag.readBlocking(item + \"/Return Air Temperature\")[0].value\n\t\t#SAT \u003d system.tag.readBlocking(item + \"/Supply Air Temperature\")[0].value\n\t\t#Name \u003d system.tag.readBlocking(item + \"/Meta/EqName\")[0].value\n\t\t#Room \u003d system.tag.readBlocking(item + \"/Meta/Room\")[0].value\n\t\tRoom \u003d item.split(\u0027/\u0027)[0].split(\u0027]\u0027)[1]\n\t\tName \u003d item.rsplit(\u0027_\u0027,2)\n\t\ttagPath \u003d item\n\t\toutput.append({ \"RAT\": RAT,\n\t\t\t\t\t\t#\"SAT\": SAT,\n\t\t\t\t\t\t\"Room\": Room,\n\t\t\t\t\t\t\"Name\": Name[1] + Name[2],\n\t\t\t\t\t\t\"AlarmSeverity\": AlarmSeverity,\n\t\t\t\t\t\t\"tagPath\": tagPath})\n\treturn output",
|
||||
"type": "script"
|
||||
}
|
||||
],
|
||||
"type": "expr-struct"
|
||||
}
|
||||
}
|
||||
},
|
||||
"props": {
|
||||
"columns": [
|
||||
{
|
||||
"align": "center",
|
||||
"boolean": "checkbox",
|
||||
"dateFormat": "MM/DD/YYYY",
|
||||
"editable": false,
|
||||
"field": "Name",
|
||||
"filter": {
|
||||
"boolean": {
|
||||
"condition": ""
|
||||
},
|
||||
"date": {
|
||||
"condition": "",
|
||||
"value": ""
|
||||
},
|
||||
"enabled": false,
|
||||
"number": {
|
||||
"condition": "",
|
||||
"value": ""
|
||||
},
|
||||
"string": {
|
||||
"condition": "",
|
||||
"value": ""
|
||||
},
|
||||
"visible": "on-hover"
|
||||
},
|
||||
"footer": {
|
||||
"align": "center",
|
||||
"justify": "left",
|
||||
"style": {
|
||||
"classes": ""
|
||||
},
|
||||
"title": ""
|
||||
},
|
||||
"header": {
|
||||
"align": "center",
|
||||
"justify": "left",
|
||||
"style": {
|
||||
"classes": ""
|
||||
},
|
||||
"title": ""
|
||||
},
|
||||
"justify": "auto",
|
||||
"nullFormat": {
|
||||
"includeNullStrings": false,
|
||||
"nullFormatValue": "",
|
||||
"strict": false
|
||||
},
|
||||
"number": "value",
|
||||
"numberFormat": "0,0.##",
|
||||
"progressBar": {
|
||||
"bar": {
|
||||
"color": "",
|
||||
"style": {
|
||||
"classes": ""
|
||||
}
|
||||
},
|
||||
"max": 100,
|
||||
"min": 0,
|
||||
"track": {
|
||||
"color": "",
|
||||
"style": {
|
||||
"classes": ""
|
||||
}
|
||||
},
|
||||
"value": {
|
||||
"enabled": true,
|
||||
"format": "0,0.##",
|
||||
"justify": "center",
|
||||
"style": {
|
||||
"classes": ""
|
||||
}
|
||||
}
|
||||
},
|
||||
"render": "auto",
|
||||
"resizable": true,
|
||||
"sort": "none",
|
||||
"sortable": true,
|
||||
"strictWidth": false,
|
||||
"style": {
|
||||
"classes": ""
|
||||
},
|
||||
"toggleSwitch": {
|
||||
"color": {
|
||||
"selected": "",
|
||||
"unselected": ""
|
||||
}
|
||||
},
|
||||
"viewParams": {},
|
||||
"viewPath": "",
|
||||
"visible": true,
|
||||
"width": ""
|
||||
},
|
||||
{
|
||||
"align": "center",
|
||||
"boolean": "checkbox",
|
||||
"dateFormat": "MM/DD/YYYY",
|
||||
"editable": false,
|
||||
"field": "Room",
|
||||
"filter": {
|
||||
"boolean": {
|
||||
"condition": ""
|
||||
},
|
||||
"date": {
|
||||
"condition": "",
|
||||
"value": ""
|
||||
},
|
||||
"enabled": false,
|
||||
"number": {
|
||||
"condition": "",
|
||||
"value": ""
|
||||
},
|
||||
"string": {
|
||||
"condition": "",
|
||||
"value": ""
|
||||
},
|
||||
"visible": "on-hover"
|
||||
},
|
||||
"footer": {
|
||||
"align": "center",
|
||||
"justify": "left",
|
||||
"style": {
|
||||
"classes": ""
|
||||
},
|
||||
"title": ""
|
||||
},
|
||||
"header": {
|
||||
"align": "center",
|
||||
"justify": "left",
|
||||
"style": {
|
||||
"classes": ""
|
||||
},
|
||||
"title": ""
|
||||
},
|
||||
"justify": "auto",
|
||||
"nullFormat": {
|
||||
"includeNullStrings": false,
|
||||
"nullFormatValue": "",
|
||||
"strict": false
|
||||
},
|
||||
"number": "value",
|
||||
"numberFormat": "0,0.##",
|
||||
"progressBar": {
|
||||
"bar": {
|
||||
"color": "",
|
||||
"style": {
|
||||
"classes": ""
|
||||
}
|
||||
},
|
||||
"max": 100,
|
||||
"min": 0,
|
||||
"track": {
|
||||
"color": "",
|
||||
"style": {
|
||||
"classes": ""
|
||||
}
|
||||
},
|
||||
"value": {
|
||||
"enabled": true,
|
||||
"format": "0,0.##",
|
||||
"justify": "center",
|
||||
"style": {
|
||||
"classes": ""
|
||||
}
|
||||
}
|
||||
},
|
||||
"render": "auto",
|
||||
"resizable": true,
|
||||
"sort": "none",
|
||||
"sortable": true,
|
||||
"strictWidth": false,
|
||||
"style": {
|
||||
"classes": ""
|
||||
},
|
||||
"toggleSwitch": {
|
||||
"color": {
|
||||
"selected": "",
|
||||
"unselected": ""
|
||||
}
|
||||
},
|
||||
"viewParams": {},
|
||||
"viewPath": "",
|
||||
"visible": true,
|
||||
"width": ""
|
||||
},
|
||||
{
|
||||
"align": "center",
|
||||
"boolean": "checkbox",
|
||||
"dateFormat": "MM/DD/YYYY",
|
||||
"editable": false,
|
||||
"field": "RAT",
|
||||
"filter": {
|
||||
"boolean": {
|
||||
"condition": ""
|
||||
},
|
||||
"date": {
|
||||
"condition": "",
|
||||
"value": ""
|
||||
},
|
||||
"enabled": false,
|
||||
"number": {
|
||||
"condition": "",
|
||||
"value": ""
|
||||
},
|
||||
"string": {
|
||||
"condition": "",
|
||||
"value": ""
|
||||
},
|
||||
"visible": "on-hover"
|
||||
},
|
||||
"footer": {
|
||||
"align": "center",
|
||||
"justify": "left",
|
||||
"style": {
|
||||
"classes": ""
|
||||
},
|
||||
"title": ""
|
||||
},
|
||||
"header": {
|
||||
"align": "center",
|
||||
"justify": "left",
|
||||
"style": {
|
||||
"classes": ""
|
||||
},
|
||||
"title": "Return Air Temp"
|
||||
},
|
||||
"justify": "auto",
|
||||
"nullFormat": {
|
||||
"includeNullStrings": false,
|
||||
"nullFormatValue": "",
|
||||
"strict": false
|
||||
},
|
||||
"number": "value",
|
||||
"numberFormat": "0,0.##",
|
||||
"progressBar": {
|
||||
"bar": {
|
||||
"color": "",
|
||||
"style": {
|
||||
"classes": ""
|
||||
}
|
||||
},
|
||||
"max": 100,
|
||||
"min": 0,
|
||||
"track": {
|
||||
"color": "",
|
||||
"style": {
|
||||
"classes": ""
|
||||
}
|
||||
},
|
||||
"value": {
|
||||
"enabled": true,
|
||||
"format": "0,0.##",
|
||||
"justify": "center",
|
||||
"style": {
|
||||
"classes": ""
|
||||
}
|
||||
}
|
||||
},
|
||||
"render": "auto",
|
||||
"resizable": false,
|
||||
"sort": "none",
|
||||
"sortable": true,
|
||||
"strictWidth": false,
|
||||
"style": {
|
||||
"classes": ""
|
||||
},
|
||||
"toggleSwitch": {
|
||||
"color": {
|
||||
"selected": "",
|
||||
"unselected": ""
|
||||
}
|
||||
},
|
||||
"viewParams": {},
|
||||
"viewPath": "",
|
||||
"visible": true,
|
||||
"width": ""
|
||||
},
|
||||
{
|
||||
"align": "center",
|
||||
"boolean": "checkbox",
|
||||
"dateFormat": "MM/DD/YYYY",
|
||||
"editable": false,
|
||||
"field": "AlarmSeverity",
|
||||
"filter": {
|
||||
"boolean": {
|
||||
"condition": ""
|
||||
},
|
||||
"date": {
|
||||
"condition": "",
|
||||
"value": ""
|
||||
},
|
||||
"enabled": false,
|
||||
"number": {
|
||||
"condition": "",
|
||||
"value": ""
|
||||
},
|
||||
"string": {
|
||||
"condition": "",
|
||||
"value": ""
|
||||
},
|
||||
"visible": "on-hover"
|
||||
},
|
||||
"footer": {
|
||||
"align": "center",
|
||||
"justify": "left",
|
||||
"style": {
|
||||
"classes": ""
|
||||
},
|
||||
"title": ""
|
||||
},
|
||||
"header": {
|
||||
"align": "center",
|
||||
"justify": "left",
|
||||
"style": {
|
||||
"classes": ""
|
||||
},
|
||||
"title": "Alarm Severity"
|
||||
},
|
||||
"justify": "auto",
|
||||
"nullFormat": {
|
||||
"includeNullStrings": false,
|
||||
"nullFormatValue": "",
|
||||
"strict": false
|
||||
},
|
||||
"number": "value",
|
||||
"numberFormat": "0,0.##",
|
||||
"progressBar": {
|
||||
"bar": {
|
||||
"color": "",
|
||||
"style": {
|
||||
"classes": ""
|
||||
}
|
||||
},
|
||||
"max": 100,
|
||||
"min": 0,
|
||||
"track": {
|
||||
"color": "",
|
||||
"style": {
|
||||
"classes": ""
|
||||
}
|
||||
},
|
||||
"value": {
|
||||
"enabled": true,
|
||||
"format": "0,0.##",
|
||||
"justify": "center",
|
||||
"style": {
|
||||
"classes": ""
|
||||
}
|
||||
}
|
||||
},
|
||||
"render": "auto",
|
||||
"resizable": true,
|
||||
"sort": "none",
|
||||
"sortable": true,
|
||||
"strictWidth": false,
|
||||
"style": {
|
||||
"classes": ""
|
||||
},
|
||||
"toggleSwitch": {
|
||||
"color": {
|
||||
"selected": "",
|
||||
"unselected": ""
|
||||
}
|
||||
},
|
||||
"viewParams": {},
|
||||
"viewPath": "",
|
||||
"visible": true,
|
||||
"width": ""
|
||||
}
|
||||
],
|
||||
"filter": {
|
||||
"enabled": true
|
||||
},
|
||||
"pager": {
|
||||
"activeOption": 14,
|
||||
"options": [
|
||||
5,
|
||||
10,
|
||||
14,
|
||||
50,
|
||||
100
|
||||
]
|
||||
}
|
||||
},
|
||||
"type": "ia.display.table"
|
||||
}
|
||||
],
|
||||
"meta": {
|
||||
"name": "Location"
|
||||
},
|
||||
"position": {
|
||||
"basis": "450px",
|
||||
"grow": 1
|
||||
},
|
||||
"props": {
|
||||
"direction": "column",
|
||||
"justify": "space-around",
|
||||
"style": {
|
||||
"backgroundColor": "var(--container)",
|
||||
"borderBottomLeftRadius": "var(--borderRadius)",
|
||||
"borderBottomRightRadius": "var(--borderRadius)",
|
||||
"borderTopLeftRadius": "var(--borderRadius)",
|
||||
"borderTopRightRadius": "var(--borderRadius)",
|
||||
"boxShadow": "var(--boxShadow2)",
|
||||
"overflow": "visible",
|
||||
"padding": 10
|
||||
}
|
||||
},
|
||||
"type": "ia.container.flex"
|
||||
}
|
||||
],
|
||||
"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.selectedRoom \u003d payload[\"Room\"]",
|
||||
"sessionScope": false,
|
||||
"viewScope": false
|
||||
}
|
||||
]
|
||||
},
|
||||
"type": "ia.container.flex"
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user