modified refresh rate, changed colors of the alarms and fixed diagnostic alarms not dispalying bug

This commit is contained in:
Salijoghli 2025-06-10 14:26:25 +04:00
parent b256a52671
commit b0b2751ad7

View File

@ -412,14 +412,13 @@
}, },
{ {
"custom": { "custom": {
"Severity": "Diagnostic",
"background_on": "false" "background_on": "false"
}, },
"events": { "events": {
"component": { "component": {
"onActionPerformed": { "onActionPerformed": {
"config": { "config": {
"script": "\tpriority \u003d \u0027diagnostic\u0027\n\t# Copy and toggle the filter\n\tpriorities \u003d dict(self.parent.custom.priorities)\n\tpriorities[priority] \u003d not priorities.get(priority, False)\n\tself.parent.custom.priorities \u003d priorities\n\t\n\tself.custom.background_on \u003d \"true\" if priorities[priority] else \"false\"" "script": "\tpriority \u003d \u0027diagnostic\u0027\n\n\tpriorities \u003d dict(self.parent.custom.priorities)\n\tpriorities[priority] \u003d not priorities.get(priority, False)\n\tself.parent.custom.priorities \u003d priorities\n\t\n\tself.custom.background_on \u003d \"true\" if priorities[priority] else \"false\""
}, },
"scope": "G", "scope": "G",
"type": "script" "type": "script"
@ -492,6 +491,26 @@
"type": "ia.input.button" "type": "ia.input.button"
} }
], ],
"custom": {
"priorities": {
"critical": false,
"diagnostic": false,
"high": false,
"low": false,
"medium": false
}
},
"events": {
"system": {
"onStartup": {
"config": {
"script": "\tself.custom.priorities \u003d {\n\t \"diagnostic\": True,\n\t \"low\": True,\n\t \"medium\": True,\n\t \"high\": True,\n\t}"
},
"scope": "G",
"type": "script"
}
}
},
"meta": { "meta": {
"name": "FlexContainer" "name": "FlexContainer"
}, },
@ -499,17 +518,6 @@
"basis": "700px", "basis": "700px",
"shrink": 0 "shrink": 0
}, },
"propConfig": {
"custom.priorities": {
"binding": {
"config": {
"bidirectional": true,
"path": ".../FlexContainer_0/AlarmStatusTable.props.filters.active.priorities"
},
"type": "property"
}
}
},
"props": { "props": {
"style": { "style": {
"padding": 0 "padding": 0
@ -537,7 +545,7 @@
"component": { "component": {
"onActionPerformed": { "onActionPerformed": {
"config": { "config": {
"script": "\tpayload \u003d {}\n\tfilter_on \u003d \"false\"\n\tpayload[\"reset\"] \u003d filter_on\n\tsystem.perspective.sendMessage(\"reset-filters\", payload \u003dpayload, scope \u003d \"page\")\n\tdefault_priorities \u003d {\n\t \"critical\": False,\n\t \"high\": False,\n\t \"medium\": False,\n\t \"low\": False,\n\t \"diagnostic\": False\n\t}\n\tself.parent.parent.getChild(\"FlexContainer\").custom.priorities \u003d default_priorities" "script": "\tpayload \u003d {}\n\tfilter_on \u003d \"false\"\n\tpayload[\"reset\"] \u003d filter_on\n\tsystem.perspective.sendMessage(\"reset-filters\", payload \u003dpayload, scope \u003d \"page\")\n\tdefault_priorities \u003d {\n\t \"diagnostic\": False,\n\t \"low\": False,\n\t \"medium\": False,\n\t \"high\": False,\n\t \"critical\": False\n\t}\n\tself.parent.parent.getChild(\"FlexContainer\").custom.priorities \u003d default_priorities"
}, },
"scope": "G", "scope": "G",
"type": "script" "type": "script"
@ -879,6 +887,16 @@
"position": { "position": {
"basis": "973px" "basis": "973px"
}, },
"propConfig": {
"props.filters.active.priorities": {
"binding": {
"config": {
"path": ".../FlexContainer/FlexContainer.custom.priorities"
},
"type": "property"
}
}
},
"props": { "props": {
"columns": { "columns": {
"active": { "active": {
@ -909,12 +927,6 @@
"enableUnshelve": false, "enableUnshelve": false,
"filters": { "filters": {
"active": { "active": {
"priorities": {
"critical": false,
"high": false,
"low": false,
"medium": false
},
"results": { "results": {
"data": [ "data": [
{ {
@ -923,23 +935,23 @@
"ackTime": "", "ackTime": "",
"ackUser": "", "ackUser": "",
"activePipeline": "", "activePipeline": "",
"activeTime": "2025-06-10 12:58:47.992+0400", "activeTime": "2025-06-10 14:02:45.721+0400",
"clearPipeline": "", "clearPipeline": "",
"clearTime": "2025-06-10 13:00:50.125+0400", "clearTime": "",
"deadband": "0.0", "deadband": "0.0",
"displayPath": "System/close_socket/papapapa", "displayPath": "System/wbsckt_logging/Alarm",
"eventId": "197a7d64-b63d-4838-a150-80e0b3824885", "eventId": "8ef553ea-ce84-47ca-9a64-66227511f6dd",
"eventTime": "2025-06-10 13:00:50.125+0400", "eventTime": "2025-06-10 14:02:45.721+0400",
"eventValue": "false", "eventValue": "true",
"isAcked": "false", "isAcked": "false",
"isActive": "false", "isActive": "true",
"isClear": "true", "isClear": "false",
"label": "papapapa", "label": "Alarm",
"name": "papapapa", "name": "Alarm",
"notes": "", "notes": "",
"priority": "Low", "priority": "Critical",
"source": "prov:MTN6_SCADA_TAG_PROVIDER:/tag:System/close_socket:/alm:papapapa", "source": "prov:MTN6_SCADA_TAG_PROVIDER:/tag:System/wbsckt_logging:/alm:Alarm",
"state": "Cleared, Unacknowledged" "state": "Active, Unacknowledged"
}, },
{ {
"ackNotes": "", "ackNotes": "",
@ -947,157 +959,13 @@
"ackTime": "", "ackTime": "",
"ackUser": "", "ackUser": "",
"activePipeline": "", "activePipeline": "",
"activeTime": "2025-06-10 13:00:52.126+0400", "activeTime": "2025-06-10 14:11:27.172+0400",
"clearPipeline": "",
"clearTime": "2025-06-10 13:01:27.419+0400",
"deadband": "0.0",
"displayPath": "System/close_socket/papapapa",
"eventId": "e22bd576-fdb7-4356-a5df-a0342db88964",
"eventTime": "2025-06-10 13:01:27.419+0400",
"eventValue": "false",
"isAcked": "false",
"isActive": "false",
"isClear": "true",
"label": "papapapa",
"name": "papapapa",
"notes": "",
"priority": "Low",
"source": "prov:MTN6_SCADA_TAG_PROVIDER:/tag:System/close_socket:/alm:papapapa",
"state": "Cleared, Unacknowledged"
},
{
"ackNotes": "",
"ackPipeline": "",
"ackTime": "",
"ackUser": "",
"activePipeline": "",
"activeTime": "2025-06-10 12:56:43.860+0400",
"clearPipeline": "",
"clearTime": "2025-06-10 12:58:45.991+0400",
"deadband": "0.0",
"displayPath": "System/close_socket/papapapa",
"eventId": "e3e8a7e9-95bd-4bae-9fae-4a69037dcea6",
"eventTime": "2025-06-10 12:58:45.991+0400",
"eventValue": "false",
"isAcked": "false",
"isActive": "false",
"isClear": "true",
"label": "papapapa",
"name": "papapapa",
"notes": "",
"priority": "Low",
"source": "prov:MTN6_SCADA_TAG_PROVIDER:/tag:System/close_socket:/alm:papapapa",
"state": "Cleared, Unacknowledged"
},
{
"ackNotes": "",
"ackPipeline": "",
"ackTime": "",
"ackUser": "",
"activePipeline": "",
"activeTime": "2025-06-10 12:54:39.698+0400",
"clearPipeline": "",
"clearTime": "2025-06-10 12:56:41.858+0400",
"deadband": "0.0",
"displayPath": "System/close_socket/papapapa",
"eventId": "8c549637-729f-474d-a22b-3512062cd788",
"eventTime": "2025-06-10 12:56:41.858+0400",
"eventValue": "false",
"isAcked": "false",
"isActive": "false",
"isClear": "true",
"label": "papapapa",
"name": "papapapa",
"notes": "",
"priority": "Low",
"source": "prov:MTN6_SCADA_TAG_PROVIDER:/tag:System/close_socket:/alm:papapapa",
"state": "Cleared, Unacknowledged"
},
{
"ackNotes": "",
"ackPipeline": "",
"ackTime": "",
"ackUser": "",
"activePipeline": "",
"activeTime": "2025-06-06 19:30:36.306+0400",
"clearPipeline": "",
"clearTime": "2025-06-09 20:00:36.561+0400",
"deadband": "0.0",
"displayPath": "System/DBConnected/NEEEWWWW",
"eventId": "af042d77-3d54-4a8b-8d69-5f468ab449f4",
"eventTime": "2025-06-09 20:00:36.561+0400",
"eventValue": "false",
"isAcked": "false",
"isActive": "false",
"isClear": "true",
"label": "NEEEWWWW",
"name": "NEEEWWWW",
"notes": "",
"priority": "Low",
"source": "prov:MTN6_SCADA_TAG_PROVIDER:/tag:System/DBConnected:/alm:NEEEWWWW",
"state": "Cleared, Unacknowledged"
},
{
"ackNotes": "",
"ackPipeline": "",
"ackTime": "",
"ackUser": "",
"activePipeline": "",
"activeTime": "2025-06-06 16:14:39.264+0400",
"clearPipeline": "",
"clearTime": "2025-06-06 19:06:54.360+0400",
"deadband": "0.0",
"displayPath": "System/DBConnected/NEEEWWWW",
"eventId": "620fd8a1-61ba-44ec-8573-8b861b18d740",
"eventTime": "2025-06-06 19:06:54.360+0400",
"eventValue": "false",
"isAcked": "false",
"isActive": "false",
"isClear": "true",
"label": "NEEEWWWW",
"name": "NEEEWWWW",
"notes": "",
"priority": "Low",
"source": "prov:MTN6_SCADA_TAG_PROVIDER:/tag:System/DBConnected:/alm:NEEEWWWW",
"state": "Cleared, Unacknowledged"
},
{
"ackNotes": "",
"ackPipeline": "",
"ackTime": "",
"ackUser": "",
"activePipeline": "",
"activeTime": "2025-06-06 19:13:21.819+0400",
"clearPipeline": "",
"clearTime": "2025-06-06 19:17:31.568+0400",
"deadband": "0.0",
"displayPath": "System/DBConnected/NEEEWWWW",
"eventId": "a8ff0e60-af10-4437-b54a-c735e3d862e0",
"eventTime": "2025-06-06 19:17:31.568+0400",
"eventValue": "false",
"isAcked": "false",
"isActive": "false",
"isClear": "true",
"label": "NEEEWWWW",
"name": "NEEEWWWW",
"notes": "",
"priority": "Low",
"source": "prov:MTN6_SCADA_TAG_PROVIDER:/tag:System/DBConnected:/alm:NEEEWWWW",
"state": "Cleared, Unacknowledged"
},
{
"ackNotes": "",
"ackPipeline": "",
"ackTime": "",
"ackUser": "",
"activePipeline": "",
"activeTime": "2025-06-10 11:03:10.611+0400",
"clearPipeline": "", "clearPipeline": "",
"clearTime": "", "clearTime": "",
"deadband": "0.0", "deadband": "0.0",
"displayPath": "System/DBConnected/NEEEWWWW", "displayPath": "System/DBConnected/NEEEWWWW",
"eventId": "d57907a7-3668-42f9-b25f-b39198437c68", "eventId": "91a21a7a-8eae-4985-ab42-7285e5205427",
"eventTime": "2025-06-10 11:03:10.611+0400", "eventTime": "2025-06-10 14:11:27.172+0400",
"eventValue": "true", "eventValue": "true",
"isAcked": "false", "isAcked": "false",
"isActive": "true", "isActive": "true",
@ -1105,7 +973,7 @@
"label": "NEEEWWWW", "label": "NEEEWWWW",
"name": "NEEEWWWW", "name": "NEEEWWWW",
"notes": "", "notes": "",
"priority": "Low", "priority": "High",
"source": "prov:MTN6_SCADA_TAG_PROVIDER:/tag:System/DBConnected:/alm:NEEEWWWW", "source": "prov:MTN6_SCADA_TAG_PROVIDER:/tag:System/DBConnected:/alm:NEEEWWWW",
"state": "Active, Unacknowledged" "state": "Active, Unacknowledged"
}, },
@ -1115,13 +983,13 @@
"ackTime": "", "ackTime": "",
"ackUser": "", "ackUser": "",
"activePipeline": "", "activePipeline": "",
"activeTime": "2025-06-10 13:01:29.420+0400", "activeTime": "2025-06-10 14:23:42.047+0400",
"clearPipeline": "", "clearPipeline": "",
"clearTime": "", "clearTime": "",
"deadband": "0.0", "deadband": "0.0",
"displayPath": "System/close_socket/papapapa", "displayPath": "System/close_socket/papapapa",
"eventId": "1d6747ce-fdef-496e-b21c-a017aac2c589", "eventId": "c51c44cb-2f8e-4cfd-ba0f-c2b862a1744d",
"eventTime": "2025-06-10 13:01:29.420+0400", "eventTime": "2025-06-10 14:23:42.047+0400",
"eventValue": "true", "eventValue": "true",
"isAcked": "false", "isAcked": "false",
"isActive": "true", "isActive": "true",
@ -1129,7 +997,7 @@
"label": "papapapa", "label": "papapapa",
"name": "papapapa", "name": "papapapa",
"notes": "", "notes": "",
"priority": "Low", "priority": "Diagnostic",
"source": "prov:MTN6_SCADA_TAG_PROVIDER:/tag:System/close_socket:/alm:papapapa", "source": "prov:MTN6_SCADA_TAG_PROVIDER:/tag:System/close_socket:/alm:papapapa",
"state": "Active, Unacknowledged" "state": "Active, Unacknowledged"
} }
@ -1137,7 +1005,7 @@
"enabled": true "enabled": true
}, },
"states": { "states": {
"clearAcked": true "clearUnacked": false
} }
}, },
"shelved": { "shelved": {
@ -1146,26 +1014,45 @@
} }
} }
}, },
"refreshRate": 1000,
"responsive": { "responsive": {
"enabled": true "enabled": true
}, },
"rowStyles": { "rowStyles": {
"activeUnacked": {
"priorities": {
"critical": {
"backgroundColor": "#c86462"
},
"diagnostic": {
"backgroundColor": "#5da0f9"
},
"high": {
"backgroundColor": "#fd6059"
},
"low": {
"backgroundColor": "#fafa6c",
"color": "black"
},
"medium": {
"backgroundColor": "#fca25f"
}
}
},
"clearAcked": { "clearAcked": {
"base": { "base": {
"display": "none" "display": "block"
} }
}, },
"clearUnacked": { "clearUnacked": {
"base": { "base": {
"display": "none" "display": "block",
"fontWeight": "normal"
} }
} }
}, },
"toolbar": { "toolbar": {
"enableActiveTab": false, "enableActiveTab": false,
"enableConfiguration": false,
"enableFilter": false,
"enablePreFilters": false,
"enableShelvedTab": false, "enableShelvedTab": false,
"enabled": false "enabled": false
} }
@ -3368,12 +3255,12 @@
"data": [ "data": [
{ {
"Description": "alm:papapapa - papapapa", "Description": "alm:papapapa - papapapa",
"Duration": "00:02:02", "Duration": "00:01:45",
"EndTimestamp": 1749545801000, "EndTimestamp": 1749547975000,
"ID": 212, "ID": 293,
"MCM": "System", "MCM": "System",
"Priority": "Low", "Priority": "Low",
"StartTimestamp": 1749545679000, "StartTimestamp": 1749547870000,
"Tag": "alm:papapapa" "Tag": "alm:papapapa"
} }
], ],
@ -3751,8 +3638,29 @@
"custom": { "custom": {
"shelvedAlarms": [ "shelvedAlarms": [
{ {
"activeTime": "2025-06-10 11:03:16", "activeTime": "2025-06-10 13:46:26",
"expirationTime": "Tue Jun 24 10:46:41 GET 2025", "expirationTime": "Tue Jun 10 14:55:04 GET 2025",
"name": "Alarm",
"path": "prov:MTN6_SCADA_TAG_PROVIDER:/tag:MCM01/hello world:/alm:Alarm",
"priority": "Diagnostic"
},
{
"activeTime": "2025-06-10 14:23:42",
"expirationTime": "Tue Jun 10 14:55:04 GET 2025",
"name": "papapapa",
"path": "prov:MTN6_SCADA_TAG_PROVIDER:/tag:System/close_socket:/alm:papapapa",
"priority": "Diagnostic"
},
{
"activeTime": "2025-06-10 14:11:27",
"expirationTime": "Tue Jun 10 14:55:04 GET 2025",
"name": "NEEEWWWW",
"path": "prov:MTN6_SCADA_TAG_PROVIDER:/tag:System/DBConnected:/alm:NEEEWWWW",
"priority": "High"
},
{
"activeTime": "2025-06-10 14:02:45",
"expirationTime": "Tue Jun 10 14:55:04 GET 2025",
"name": "Alarm", "name": "Alarm",
"path": "prov:MTN6_SCADA_TAG_PROVIDER:/tag:System/wbsckt_logging:/alm:Alarm", "path": "prov:MTN6_SCADA_TAG_PROVIDER:/tag:System/wbsckt_logging:/alm:Alarm",
"priority": "Critical" "priority": "Critical"
@ -3778,7 +3686,6 @@
"contentStyle": { "contentStyle": {
"classes": "Background-Styles/Grey-Background" "classes": "Background-Styles/Grey-Background"
}, },
"currentTabIndex": 2,
"menuType": "modern", "menuType": "modern",
"style": { "style": {
"classes": "Background-Styles/Grey-Background" "classes": "Background-Styles/Grey-Background"