From 5e03d48ced86ddae7e73e767e95537fdc67ae259 Mon Sep 17 00:00:00 2001 From: Salijoghli <107577102+Salijoghli@users.noreply.github.com> Date: Tue, 10 Jun 2025 12:33:06 +0400 Subject: [PATCH 1/4] fixed filtering in the history --- .../views/Alarm-Views/RealTime/view.json | 96 ++++++++++++------- .../named-query/GetAlarms/resource.json | 33 +++++++ .../messaging/message_handler/code.py | 10 +- 3 files changed, 97 insertions(+), 42 deletions(-) create mode 100644 SCADA_PERSPECTIVE_PARENT_PROJECT/ignition/named-query/GetAlarms/resource.json diff --git a/SCADA_PERSPECTIVE_PARENT_PROJECT/com.inductiveautomation.perspective/views/Alarm-Views/RealTime/view.json b/SCADA_PERSPECTIVE_PARENT_PROJECT/com.inductiveautomation.perspective/views/Alarm-Views/RealTime/view.json index 5fcb913..6e8c93a 100644 --- a/SCADA_PERSPECTIVE_PARENT_PROJECT/com.inductiveautomation.perspective/views/Alarm-Views/RealTime/view.json +++ b/SCADA_PERSPECTIVE_PARENT_PROJECT/com.inductiveautomation.perspective/views/Alarm-Views/RealTime/view.json @@ -1823,17 +1823,17 @@ "$": [ "ts", 192, - 1749540890888 + 1749543336268 ], - "$ts": 1749540890888 + "$ts": 1749543336268 }, "startDate": { "$": [ "ts", 192, - 1749540890888 + 1749543336268 ], - "$ts": 1749499200000 + "$ts": 1749541536268 } }, "meta": { @@ -2006,7 +2006,7 @@ } }, "props": { - "formattedValue": "Jun 4, 2025 12:00 AM", + "formattedValue": "Jun 10, 2025 11:45 AM", "style": { "margin": 15 } @@ -2064,6 +2064,7 @@ "config": { "expression": "now()" }, + "enabled": false, "type": "expr" } }, @@ -2090,7 +2091,15 @@ } }, "props": { - "formattedValue": "Jun 5, 2025 11:34 AM", + "formattedValue": "Jun 11, 2025 12:15 PM", + "maxDate": { + "$": [ + "ts", + 192, + 1749542669794 + ], + "$ts": 1749715452000 + }, "style": { "margin": 15 }, @@ -2098,9 +2107,9 @@ "$": [ "ts", 0, - 1749541102438 + 1749543373731 ], - "$ts": 1749108890000 + "$ts": 1749629736000 } }, "scripts": { @@ -2286,8 +2295,22 @@ "$ts": 1747562336635 }, "priority_filters": "", - "time_from_filter": 1748980800000, - "time_to_filter": 1749108890000 + "time_from_filter": { + "$": [ + "ts", + 192, + 1749543368762 + ], + "$ts": 1749541536000 + }, + "time_to_filter": { + "$": [ + "ts", + 192, + 1749543373742 + ], + "$ts": 1749629736000 + } }, "meta": { "name": "Table" @@ -2302,17 +2325,6 @@ "config": { "path": "this.custom.time_from_filter" }, - "enabled": false, - "transforms": [ - { - "formatType": "datetime", - "formatValue": { - "date": "medium", - "time": "medium" - }, - "type": "format" - } - ], "type": "property" } }, @@ -2321,12 +2333,15 @@ "config": { "path": "this.custom.time_to_filter" }, - "transforms": [ - { - "code": "\tfrom java.util import Date\n\tfrom java.text import SimpleDateFormat\n\n\tif value is not None:\n\t formatter \u003d SimpleDateFormat(\"yyyy-M-d H:mm:ss\")\n\t return formatter.format(Date(value))\n\telse:\n\t return \"\"\n", - "type": "script" - } - ], + "type": "property" + } + }, + "props.columns[2].filter.number.value": { + "binding": { + "config": { + "path": "this.custom.time_to_filter" + }, + "enabled": false, "type": "property" } }, @@ -2458,8 +2473,7 @@ "condition": "" }, "date": { - "condition": "", - "value": "" + "condition": "later than date time" }, "enabled": true, "number": { @@ -3103,11 +3117,11 @@ { "Description": "alm:papapapa - papapapa", "Duration": "00:02:02", - "EndTimestamp": 1749541007000, - "ID": 86, + "EndTimestamp": 1749543629000, + "ID": 155, "MCM": "System", "Priority": "Low", - "StartTimestamp": 1749540885000, + "StartTimestamp": 1749543507000, "Tag": "alm:papapapa" } ], @@ -3233,8 +3247,22 @@ "download_in_progress": true, "enable_timeout": false, "priority_filters": "", - "time_from_filter": 1748980800000, - "time_to_filter": 1749108890000, + "time_from_filter": { + "$": [ + "ts", + 192, + 1749543368762 + ], + "$ts": 1749541536000 + }, + "time_to_filter": { + "$": [ + "ts", + 192, + 1749543373742 + ], + "$ts": 1749629736000 + }, "type_filters": null }, "events": { diff --git a/SCADA_PERSPECTIVE_PARENT_PROJECT/ignition/named-query/GetAlarms/resource.json b/SCADA_PERSPECTIVE_PARENT_PROJECT/ignition/named-query/GetAlarms/resource.json new file mode 100644 index 0000000..af7a650 --- /dev/null +++ b/SCADA_PERSPECTIVE_PARENT_PROJECT/ignition/named-query/GetAlarms/resource.json @@ -0,0 +1,33 @@ +{ + "scope": "DG", + "version": 2, + "restricted": false, + "overridable": true, + "files": [ + "query.sql" + ], + "attributes": { + "useMaxReturnSize": false, + "autoBatchEnabled": false, + "fallbackValue": "", + "maxReturnSize": 100, + "cacheUnit": "SEC", + "type": "Query", + "enabled": true, + "cacheAmount": 1, + "cacheEnabled": false, + "database": "MariaDB", + "fallbackEnabled": false, + "lastModificationSignature": "6748eaa152183180c6431e52bd5d1c58f2e9026fefc3fe2663abf90dc4b6a2c7", + "permissions": [ + { + "zone": "default", + "role": "" + } + ], + "lastModification": { + "actor": "ilia-gu-autstand", + "timestamp": "2025-06-09T10:14:52Z" + } + } +} \ No newline at end of file diff --git a/SCADA_PERSPECTIVE_PARENT_PROJECT/ignition/script-python/messaging/message_handler/code.py b/SCADA_PERSPECTIVE_PARENT_PROJECT/ignition/script-python/messaging/message_handler/code.py index b0112aa..6427538 100644 --- a/SCADA_PERSPECTIVE_PARENT_PROJECT/ignition/script-python/messaging/message_handler/code.py +++ b/SCADA_PERSPECTIVE_PARENT_PROJECT/ignition/script-python/messaging/message_handler/code.py @@ -101,22 +101,16 @@ def set_message_filters(self): def set_time_from_filters(self): "This filter sets the time from for history" time = self.props.value - utc_offset = -self.session.props.device.timezone.utcOffset - #time = system.date.addHours(time, utc_offset) - epoch = system.date.toMillis(time) payload = {} - payload["data"] = epoch + payload["data"] = time system.perspective.sendMessage("set-from-filters", payload = payload, scope = "page") def set_time_to_filters(self): "This filter sets the time to for history" time = self.props.value - utc_offset = -self.session.props.device.timezone.utcOffset - #time = system.date.addHours(time, utc_offset) - epoch = system.date.toMillis(time) payload = {} - payload["data"] = epoch + payload["data"] = time system.perspective.sendMessage("set-to-filters", payload = payload, scope = "page") From b256a52671dabd10ca26b29184648567fefac0e1 Mon Sep 17 00:00:00 2001 From: Salijoghli <107577102+Salijoghli@users.noreply.github.com> Date: Tue, 10 Jun 2025 13:37:28 +0400 Subject: [PATCH 2/4] Export button on the alarm history. exports whats seen --- .../views/Alarm-Views/RealTime/view.json | 353 +++++++++++++++--- 1 file changed, 301 insertions(+), 52 deletions(-) diff --git a/SCADA_PERSPECTIVE_PARENT_PROJECT/com.inductiveautomation.perspective/views/Alarm-Views/RealTime/view.json b/SCADA_PERSPECTIVE_PARENT_PROJECT/com.inductiveautomation.perspective/views/Alarm-Views/RealTime/view.json index 6e8c93a..ecfb97c 100644 --- a/SCADA_PERSPECTIVE_PARENT_PROJECT/com.inductiveautomation.perspective/views/Alarm-Views/RealTime/view.json +++ b/SCADA_PERSPECTIVE_PARENT_PROJECT/com.inductiveautomation.perspective/views/Alarm-Views/RealTime/view.json @@ -923,13 +923,13 @@ "ackTime": "", "ackUser": "", "activePipeline": "", - "activeTime": "2025-06-10 10:46:16.547+0400", + "activeTime": "2025-06-10 12:58:47.992+0400", "clearPipeline": "", - "clearTime": "2025-06-10 10:48:20.462+0400", + "clearTime": "2025-06-10 13:00:50.125+0400", "deadband": "0.0", "displayPath": "System/close_socket/papapapa", - "eventId": "bb8d48cb-a61e-4e31-a44f-340466686cc7", - "eventTime": "2025-06-10 10:48:20.462+0400", + "eventId": "197a7d64-b63d-4838-a150-80e0b3824885", + "eventTime": "2025-06-10 13:00:50.125+0400", "eventValue": "false", "isAcked": "false", "isActive": "false", @@ -947,13 +947,13 @@ "ackTime": "", "ackUser": "", "activePipeline": "", - "activeTime": "2025-06-10 10:48:22.466+0400", + "activeTime": "2025-06-10 13:00:52.126+0400", "clearPipeline": "", - "clearTime": "2025-06-10 10:50:24.652+0400", + "clearTime": "2025-06-10 13:01:27.419+0400", "deadband": "0.0", "displayPath": "System/close_socket/papapapa", - "eventId": "479900cc-da53-43f8-8fcc-2f2278b01ccd", - "eventTime": "2025-06-10 10:50:24.652+0400", + "eventId": "e22bd576-fdb7-4356-a5df-a0342db88964", + "eventTime": "2025-06-10 13:01:27.419+0400", "eventValue": "false", "isAcked": "false", "isActive": "false", @@ -971,13 +971,13 @@ "ackTime": "", "ackUser": "", "activePipeline": "", - "activeTime": "2025-06-10 10:44:18.146+0400", + "activeTime": "2025-06-10 12:56:43.860+0400", "clearPipeline": "", - "clearTime": "2025-06-10 10:44:24.496+0400", + "clearTime": "2025-06-10 12:58:45.991+0400", "deadband": "0.0", "displayPath": "System/close_socket/papapapa", - "eventId": "4ff749a9-0a6b-4818-95e0-96ceb3c7d50a", - "eventTime": "2025-06-10 10:44:24.496+0400", + "eventId": "e3e8a7e9-95bd-4bae-9fae-4a69037dcea6", + "eventTime": "2025-06-10 12:58:45.991+0400", "eventValue": "false", "isAcked": "false", "isActive": "false", @@ -995,13 +995,13 @@ "ackTime": "", "ackUser": "", "activePipeline": "", - "activeTime": "2025-06-10 10:42:13.975+0400", + "activeTime": "2025-06-10 12:54:39.698+0400", "clearPipeline": "", - "clearTime": "2025-06-10 10:44:16.145+0400", + "clearTime": "2025-06-10 12:56:41.858+0400", "deadband": "0.0", "displayPath": "System/close_socket/papapapa", - "eventId": "2f522dec-f2fc-4c05-8acf-a3208aa048c9", - "eventTime": "2025-06-10 10:44:16.145+0400", + "eventId": "8c549637-729f-474d-a22b-3512062cd788", + "eventTime": "2025-06-10 12:56:41.858+0400", "eventValue": "false", "isAcked": "false", "isActive": "false", @@ -1019,13 +1019,109 @@ "ackTime": "", "ackUser": "", "activePipeline": "", - "activeTime": "2025-06-10 10:50:26.655+0400", + "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": "", + "clearTime": "", + "deadband": "0.0", + "displayPath": "System/DBConnected/NEEEWWWW", + "eventId": "d57907a7-3668-42f9-b25f-b39198437c68", + "eventTime": "2025-06-10 11:03:10.611+0400", + "eventValue": "true", + "isAcked": "false", + "isActive": "true", + "isClear": "false", + "label": "NEEEWWWW", + "name": "NEEEWWWW", + "notes": "", + "priority": "Low", + "source": "prov:MTN6_SCADA_TAG_PROVIDER:/tag:System/DBConnected:/alm:NEEEWWWW", + "state": "Active, Unacknowledged" + }, + { + "ackNotes": "", + "ackPipeline": "", + "ackTime": "", + "ackUser": "", + "activePipeline": "", + "activeTime": "2025-06-10 13:01:29.420+0400", "clearPipeline": "", "clearTime": "", "deadband": "0.0", "displayPath": "System/close_socket/papapapa", - "eventId": "887b4132-0bfd-4902-9db3-a10b581ca073", - "eventTime": "2025-06-10 10:50:26.655+0400", + "eventId": "1d6747ce-fdef-496e-b21c-a017aac2c589", + "eventTime": "2025-06-10 13:01:29.420+0400", "eventValue": "true", "isAcked": "false", "isActive": "true", @@ -1818,22 +1914,22 @@ }, { "custom": { - "customTime": true, + "customTime": false, "endDate": { "$": [ "ts", 192, - 1749543336268 + 1749545137258 ], - "$ts": 1749543336268 + "$ts": 1749545137258 }, "startDate": { "$": [ "ts", 192, - 1749543336268 + 1749545137258 ], - "$ts": 1749541536268 + "$ts": 1749543337258 } }, "meta": { @@ -2006,7 +2102,7 @@ } }, "props": { - "formattedValue": "Jun 10, 2025 11:45 AM", + "formattedValue": "Jun 10, 2025 12:15 PM", "style": { "margin": 15 } @@ -2091,7 +2187,7 @@ } }, "props": { - "formattedValue": "Jun 11, 2025 12:15 PM", + "formattedValue": "Jun 10, 2025 12:45 PM", "maxDate": { "$": [ "ts", @@ -2106,10 +2202,10 @@ "value": { "$": [ "ts", - 0, - 1749543373731 + 192, + 1749545137258 ], - "$ts": 1749629736000 + "$ts": 1749545137258 } }, "scripts": { @@ -2299,17 +2395,17 @@ "$": [ "ts", 192, - 1749543368762 + 1749545137263 ], - "$ts": 1749541536000 + "$ts": 1749543337258 }, "time_to_filter": { "$": [ "ts", 192, - 1749543373742 + 1749545137263 ], - "$ts": 1749629736000 + "$ts": 1749545137258 } }, "meta": { @@ -3107,9 +3203,165 @@ ], "enabled": true, "filter": { - "enabled": true + "enabled": true, + "results": { + "data": [ + { + "Description": "alm:papapapa - papapapa", + "Duration": "00:00:40", + "EndTimestamp": 1749545054000, + "ID": 194, + "MCM": "System", + "Priority": "Low", + "StartTimestamp": 1749545014000, + "Tag": "alm:papapapa" + }, + { + "Description": "alm:papapapa - papapapa", + "Duration": "00:02:02", + "EndTimestamp": 1749545012000, + "ID": 191, + "MCM": "System", + "Priority": "Low", + "StartTimestamp": 1749544890000, + "Tag": "alm:papapapa" + }, + { + "Description": "alm:papapapa - papapapa", + "Duration": "00:02:02", + "EndTimestamp": 1749544888000, + "ID": 188, + "MCM": "System", + "Priority": "Low", + "StartTimestamp": 1749544766000, + "Tag": "alm:papapapa" + }, + { + "Description": "alm:papapapa - papapapa", + "Duration": "00:02:02", + "EndTimestamp": 1749544764000, + "ID": 185, + "MCM": "System", + "Priority": "Low", + "StartTimestamp": 1749544642000, + "Tag": "alm:papapapa" + }, + { + "Description": "alm:papapapa - papapapa", + "Duration": "00:02:02", + "EndTimestamp": 1749544640000, + "ID": 182, + "MCM": "System", + "Priority": "Low", + "StartTimestamp": 1749544518000, + "Tag": "alm:papapapa" + }, + { + "Description": "alm:papapapa - papapapa", + "Duration": "00:02:02", + "EndTimestamp": 1749544516000, + "ID": 179, + "MCM": "System", + "Priority": "Low", + "StartTimestamp": 1749544394000, + "Tag": "alm:papapapa" + }, + { + "Description": "alm:papapapa - papapapa", + "Duration": "00:02:02", + "EndTimestamp": 1749544392000, + "ID": 176, + "MCM": "System", + "Priority": "Low", + "StartTimestamp": 1749544270000, + "Tag": "alm:papapapa" + }, + { + "Description": "alm:papapapa - papapapa", + "Duration": "00:02:03", + "EndTimestamp": 1749544268000, + "ID": 173, + "MCM": "System", + "Priority": "Low", + "StartTimestamp": 1749544145000, + "Tag": "alm:papapapa" + }, + { + "Description": "alm:papapapa - papapapa", + "Duration": "00:02:02", + "EndTimestamp": 1749544143000, + "ID": 170, + "MCM": "System", + "Priority": "Low", + "StartTimestamp": 1749544021000, + "Tag": "alm:papapapa" + }, + { + "Description": "alm:papapapa - papapapa", + "Duration": "00:02:02", + "EndTimestamp": 1749544019000, + "ID": 167, + "MCM": "System", + "Priority": "Low", + "StartTimestamp": 1749543897000, + "Tag": "alm:papapapa" + }, + { + "Description": "alm:papapapa - papapapa", + "Duration": "00:02:02", + "EndTimestamp": 1749543895000, + "ID": 164, + "MCM": "System", + "Priority": "Low", + "StartTimestamp": 1749543773000, + "Tag": "alm:papapapa" + }, + { + "Description": "alm:papapapa - papapapa", + "Duration": "00:02:03", + "EndTimestamp": 1749543771000, + "ID": 161, + "MCM": "System", + "Priority": "Low", + "StartTimestamp": 1749543648000, + "Tag": "alm:papapapa" + }, + { + "Description": "alm:papapapa - papapapa", + "Duration": "00:00:15", + "EndTimestamp": 1749543646000, + "ID": 158, + "MCM": "System", + "Priority": "Low", + "StartTimestamp": 1749543631000, + "Tag": "alm:papapapa" + }, + { + "Description": "alm:papapapa - papapapa", + "Duration": "00:02:02", + "EndTimestamp": 1749543629000, + "ID": 155, + "MCM": "System", + "Priority": "Low", + "StartTimestamp": 1749543507000, + "Tag": "alm:papapapa" + }, + { + "Description": "alm:papapapa - papapapa", + "Duration": "00:02:04", + "EndTimestamp": 1749543505000, + "ID": 152, + "MCM": "System", + "Priority": "Low", + "StartTimestamp": 1749543381000, + "Tag": "alm:papapapa" + } + ], + "enabled": true + } }, "pager": { + "activePage": 2, "bottom": false }, "selection": { @@ -3117,16 +3369,16 @@ { "Description": "alm:papapapa - papapapa", "Duration": "00:02:02", - "EndTimestamp": 1749543629000, - "ID": 155, + "EndTimestamp": 1749545801000, + "ID": 212, "MCM": "System", "Priority": "Low", - "StartTimestamp": 1749543507000, + "StartTimestamp": 1749545679000, "Tag": "alm:papapapa" } ], - "selectedColumn": "EndTimestamp", - "selectedRow": 1 + "selectedColumn": "Duration", + "selectedRow": 29 }, "style": { "margin": 20 @@ -3251,17 +3503,17 @@ "$": [ "ts", 192, - 1749543368762 + 1749545137263 ], - "$ts": 1749541536000 + "$ts": 1749543337258 }, "time_to_filter": { "$": [ "ts", 192, - 1749543373742 + 1749545137263 ], - "$ts": 1749629736000 + "$ts": 1749545137258 }, "type_filters": null }, @@ -3269,7 +3521,7 @@ "component": { "onActionPerformed": { "config": { - "script": "\twhid \u003d self.session.custom.fc\n\tsession_id \u003d self.session.props.id\n\t\n\tfilters \u003d AWS.build_url_http.get_filters_2(sources \u003d self.custom.source_id_filters, \n\t\t\t\t\t\t\t\t\t\t\t\tdevices \u003d self.custom.device_filters,\n\t\t\t\t\t\t\t\t\t\t\t\tpriorities \u003d self.custom.priority_filters, \n\t\t\t\t\t\t\t\t\t\t\t\ttypes \u003d self.custom.type_filters,\n\t\t\t\t\t\t\t\t\t\t\t\tstart \u003d self.custom.time_from_filter,\n\t\t\t\t\t\t\t\t\t\t\t\tend \u003d self.custom.time_to_filter, \n\t\t\t\t\t\t\t\t\t\t\t\tduration \u003d self.custom.duration_filter)\n\t\n\tCommands.button_commands.send_download_request(whid, filters, session_id)\n\tself.custom.enable_timeout \u003d True\n\tself.custom.download_in_progress \u003d True" + "script": " try:\n # Get filtered data from table (array of dicts)\n filtered_results \u003d self.parent.parent.getChild(\"Table\").getChild(\"Table\").props.filter.results\n filtered_data \u003d filtered_results.data\n \n # Ensure data is valid\n if not filtered_data:\n return\n \n # Get columns from first record\n columns \u003d filtered_data[0].keys()\n \n # Create a list of rows\n rows \u003d []\n for i in range(len(filtered_data)):\n row_dict \u003d filtered_data[i]\n row \u003d [row_dict.get(col) for col in columns]\n rows.append(row)\n \n # Convert to dataset and export\n dataset \u003d system.dataset.toDataSet(columns, rows)\n html_data \u003d system.dataset.dataSetToHTML(1, dataset, \"Filtered Results\")\n system.perspective.download(\"filtered_alarms_history.html\", html_data)\n \n print \"Export completed successfully! Exported\", len(rows), \"records.\"\n \n except Exception as e:\n print \"Export failed:\", str(e)\n\n\t" }, "scope": "G", "type": "script" @@ -3277,7 +3529,11 @@ } }, "meta": { - "name": "Export" + "name": "Export", + "tooltip": { + "enabled": true, + "text": "Exports the data displayed in the table." + } }, "position": { "basis": "120px", @@ -3494,13 +3750,6 @@ ], "custom": { "shelvedAlarms": [ - { - "activeTime": "2025-06-10 11:03:10", - "expirationTime": "Tue Jun 24 10:46:41 GET 2025", - "name": "NEEEWWWW", - "path": "prov:MTN6_SCADA_TAG_PROVIDER:/tag:System/DBConnected:/alm:NEEEWWWW", - "priority": "Low" - }, { "activeTime": "2025-06-10 11:03:16", "expirationTime": "Tue Jun 24 10:46:41 GET 2025", From b0b2751ad7590083afff3e5366b87e01242b1829 Mon Sep 17 00:00:00 2001 From: Salijoghli <107577102+Salijoghli@users.noreply.github.com> Date: Tue, 10 Jun 2025 14:26:25 +0400 Subject: [PATCH 3/4] modified refresh rate, changed colors of the alarms and fixed diagnostic alarms not dispalying bug --- .../views/Alarm-Views/RealTime/view.json | 303 ++++++------------ 1 file changed, 105 insertions(+), 198 deletions(-) diff --git a/SCADA_PERSPECTIVE_PARENT_PROJECT/com.inductiveautomation.perspective/views/Alarm-Views/RealTime/view.json b/SCADA_PERSPECTIVE_PARENT_PROJECT/com.inductiveautomation.perspective/views/Alarm-Views/RealTime/view.json index ecfb97c..4b77c85 100644 --- a/SCADA_PERSPECTIVE_PARENT_PROJECT/com.inductiveautomation.perspective/views/Alarm-Views/RealTime/view.json +++ b/SCADA_PERSPECTIVE_PARENT_PROJECT/com.inductiveautomation.perspective/views/Alarm-Views/RealTime/view.json @@ -412,14 +412,13 @@ }, { "custom": { - "Severity": "Diagnostic", "background_on": "false" }, "events": { "component": { "onActionPerformed": { "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", "type": "script" @@ -492,6 +491,26 @@ "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": { "name": "FlexContainer" }, @@ -499,17 +518,6 @@ "basis": "700px", "shrink": 0 }, - "propConfig": { - "custom.priorities": { - "binding": { - "config": { - "bidirectional": true, - "path": ".../FlexContainer_0/AlarmStatusTable.props.filters.active.priorities" - }, - "type": "property" - } - } - }, "props": { "style": { "padding": 0 @@ -537,7 +545,7 @@ "component": { "onActionPerformed": { "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", "type": "script" @@ -879,6 +887,16 @@ "position": { "basis": "973px" }, + "propConfig": { + "props.filters.active.priorities": { + "binding": { + "config": { + "path": ".../FlexContainer/FlexContainer.custom.priorities" + }, + "type": "property" + } + } + }, "props": { "columns": { "active": { @@ -909,12 +927,6 @@ "enableUnshelve": false, "filters": { "active": { - "priorities": { - "critical": false, - "high": false, - "low": false, - "medium": false - }, "results": { "data": [ { @@ -923,23 +935,23 @@ "ackTime": "", "ackUser": "", "activePipeline": "", - "activeTime": "2025-06-10 12:58:47.992+0400", + "activeTime": "2025-06-10 14:02:45.721+0400", "clearPipeline": "", - "clearTime": "2025-06-10 13:00:50.125+0400", + "clearTime": "", "deadband": "0.0", - "displayPath": "System/close_socket/papapapa", - "eventId": "197a7d64-b63d-4838-a150-80e0b3824885", - "eventTime": "2025-06-10 13:00:50.125+0400", - "eventValue": "false", + "displayPath": "System/wbsckt_logging/Alarm", + "eventId": "8ef553ea-ce84-47ca-9a64-66227511f6dd", + "eventTime": "2025-06-10 14:02:45.721+0400", + "eventValue": "true", "isAcked": "false", - "isActive": "false", - "isClear": "true", - "label": "papapapa", - "name": "papapapa", + "isActive": "true", + "isClear": "false", + "label": "Alarm", + "name": "Alarm", "notes": "", - "priority": "Low", - "source": "prov:MTN6_SCADA_TAG_PROVIDER:/tag:System/close_socket:/alm:papapapa", - "state": "Cleared, Unacknowledged" + "priority": "Critical", + "source": "prov:MTN6_SCADA_TAG_PROVIDER:/tag:System/wbsckt_logging:/alm:Alarm", + "state": "Active, Unacknowledged" }, { "ackNotes": "", @@ -947,157 +959,13 @@ "ackTime": "", "ackUser": "", "activePipeline": "", - "activeTime": "2025-06-10 13:00:52.126+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", + "activeTime": "2025-06-10 14:11:27.172+0400", "clearPipeline": "", "clearTime": "", "deadband": "0.0", "displayPath": "System/DBConnected/NEEEWWWW", - "eventId": "d57907a7-3668-42f9-b25f-b39198437c68", - "eventTime": "2025-06-10 11:03:10.611+0400", + "eventId": "91a21a7a-8eae-4985-ab42-7285e5205427", + "eventTime": "2025-06-10 14:11:27.172+0400", "eventValue": "true", "isAcked": "false", "isActive": "true", @@ -1105,7 +973,7 @@ "label": "NEEEWWWW", "name": "NEEEWWWW", "notes": "", - "priority": "Low", + "priority": "High", "source": "prov:MTN6_SCADA_TAG_PROVIDER:/tag:System/DBConnected:/alm:NEEEWWWW", "state": "Active, Unacknowledged" }, @@ -1115,13 +983,13 @@ "ackTime": "", "ackUser": "", "activePipeline": "", - "activeTime": "2025-06-10 13:01:29.420+0400", + "activeTime": "2025-06-10 14:23:42.047+0400", "clearPipeline": "", "clearTime": "", "deadband": "0.0", "displayPath": "System/close_socket/papapapa", - "eventId": "1d6747ce-fdef-496e-b21c-a017aac2c589", - "eventTime": "2025-06-10 13:01:29.420+0400", + "eventId": "c51c44cb-2f8e-4cfd-ba0f-c2b862a1744d", + "eventTime": "2025-06-10 14:23:42.047+0400", "eventValue": "true", "isAcked": "false", "isActive": "true", @@ -1129,7 +997,7 @@ "label": "papapapa", "name": "papapapa", "notes": "", - "priority": "Low", + "priority": "Diagnostic", "source": "prov:MTN6_SCADA_TAG_PROVIDER:/tag:System/close_socket:/alm:papapapa", "state": "Active, Unacknowledged" } @@ -1137,7 +1005,7 @@ "enabled": true }, "states": { - "clearAcked": true + "clearUnacked": false } }, "shelved": { @@ -1146,26 +1014,45 @@ } } }, + "refreshRate": 1000, "responsive": { "enabled": true }, "rowStyles": { + "activeUnacked": { + "priorities": { + "critical": { + "backgroundColor": "#c86462" + }, + "diagnostic": { + "backgroundColor": "#5da0f9" + }, + "high": { + "backgroundColor": "#fd6059" + }, + "low": { + "backgroundColor": "#fafa6c", + "color": "black" + }, + "medium": { + "backgroundColor": "#fca25f" + } + } + }, "clearAcked": { "base": { - "display": "none" + "display": "block" } }, "clearUnacked": { "base": { - "display": "none" + "display": "block", + "fontWeight": "normal" } } }, "toolbar": { "enableActiveTab": false, - "enableConfiguration": false, - "enableFilter": false, - "enablePreFilters": false, "enableShelvedTab": false, "enabled": false } @@ -3368,12 +3255,12 @@ "data": [ { "Description": "alm:papapapa - papapapa", - "Duration": "00:02:02", - "EndTimestamp": 1749545801000, - "ID": 212, + "Duration": "00:01:45", + "EndTimestamp": 1749547975000, + "ID": 293, "MCM": "System", "Priority": "Low", - "StartTimestamp": 1749545679000, + "StartTimestamp": 1749547870000, "Tag": "alm:papapapa" } ], @@ -3751,8 +3638,29 @@ "custom": { "shelvedAlarms": [ { - "activeTime": "2025-06-10 11:03:16", - "expirationTime": "Tue Jun 24 10:46:41 GET 2025", + "activeTime": "2025-06-10 13:46:26", + "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", "path": "prov:MTN6_SCADA_TAG_PROVIDER:/tag:System/wbsckt_logging:/alm:Alarm", "priority": "Critical" @@ -3778,7 +3686,6 @@ "contentStyle": { "classes": "Background-Styles/Grey-Background" }, - "currentTabIndex": 2, "menuType": "modern", "style": { "classes": "Background-Styles/Grey-Background" From ef264bbed4ccc79db36f676ad050dfeab4b56c37 Mon Sep 17 00:00:00 2001 From: Salijoghli <107577102+Salijoghli@users.noreply.github.com> Date: Wed, 11 Jun 2025 14:32:11 +0400 Subject: [PATCH 4/4] Giving same priority colors in the shelved table and fixed unshelving UI bug --- .../views/Alarm-Views/RealTime/view.json | 333 +++--------------- 1 file changed, 41 insertions(+), 292 deletions(-) diff --git a/SCADA_PERSPECTIVE_PARENT_PROJECT/com.inductiveautomation.perspective/views/Alarm-Views/RealTime/view.json b/SCADA_PERSPECTIVE_PARENT_PROJECT/com.inductiveautomation.perspective/views/Alarm-Views/RealTime/view.json index 4b77c85..871a42f 100644 --- a/SCADA_PERSPECTIVE_PARENT_PROJECT/com.inductiveautomation.perspective/views/Alarm-Views/RealTime/view.json +++ b/SCADA_PERSPECTIVE_PARENT_PROJECT/com.inductiveautomation.perspective/views/Alarm-Views/RealTime/view.json @@ -493,11 +493,10 @@ ], "custom": { "priorities": { - "critical": false, - "diagnostic": false, - "high": false, - "low": false, - "medium": false + "diagnostic": true, + "high": true, + "low": true, + "medium": true } }, "events": { @@ -928,80 +927,6 @@ "filters": { "active": { "results": { - "data": [ - { - "ackNotes": "", - "ackPipeline": "", - "ackTime": "", - "ackUser": "", - "activePipeline": "", - "activeTime": "2025-06-10 14:02:45.721+0400", - "clearPipeline": "", - "clearTime": "", - "deadband": "0.0", - "displayPath": "System/wbsckt_logging/Alarm", - "eventId": "8ef553ea-ce84-47ca-9a64-66227511f6dd", - "eventTime": "2025-06-10 14:02:45.721+0400", - "eventValue": "true", - "isAcked": "false", - "isActive": "true", - "isClear": "false", - "label": "Alarm", - "name": "Alarm", - "notes": "", - "priority": "Critical", - "source": "prov:MTN6_SCADA_TAG_PROVIDER:/tag:System/wbsckt_logging:/alm:Alarm", - "state": "Active, Unacknowledged" - }, - { - "ackNotes": "", - "ackPipeline": "", - "ackTime": "", - "ackUser": "", - "activePipeline": "", - "activeTime": "2025-06-10 14:11:27.172+0400", - "clearPipeline": "", - "clearTime": "", - "deadband": "0.0", - "displayPath": "System/DBConnected/NEEEWWWW", - "eventId": "91a21a7a-8eae-4985-ab42-7285e5205427", - "eventTime": "2025-06-10 14:11:27.172+0400", - "eventValue": "true", - "isAcked": "false", - "isActive": "true", - "isClear": "false", - "label": "NEEEWWWW", - "name": "NEEEWWWW", - "notes": "", - "priority": "High", - "source": "prov:MTN6_SCADA_TAG_PROVIDER:/tag:System/DBConnected:/alm:NEEEWWWW", - "state": "Active, Unacknowledged" - }, - { - "ackNotes": "", - "ackPipeline": "", - "ackTime": "", - "ackUser": "", - "activePipeline": "", - "activeTime": "2025-06-10 14:23:42.047+0400", - "clearPipeline": "", - "clearTime": "", - "deadband": "0.0", - "displayPath": "System/close_socket/papapapa", - "eventId": "c51c44cb-2f8e-4cfd-ba0f-c2b862a1744d", - "eventTime": "2025-06-10 14:23:42.047+0400", - "eventValue": "true", - "isAcked": "false", - "isActive": "true", - "isClear": "false", - "label": "papapapa", - "name": "papapapa", - "notes": "", - "priority": "Diagnostic", - "source": "prov:MTN6_SCADA_TAG_PROVIDER:/tag:System/close_socket:/alm:papapapa", - "state": "Active, Unacknowledged" - } - ], "enabled": true }, "states": { @@ -1093,7 +1018,7 @@ "component": { "onActionPerformed": { "config": { - "script": "\tshelved_alarm_table \u003d self.parent.parent.parent.getChild(\"FlexContainer_0\").getChild(\"AlarmsTable\")\n\t\n\tselected_alarms \u003d shelved_alarm_table.props.selection.data\n\tif(len(selected_alarms)\u003d\u003d0):\n\t\treturn\n\t\n\tfor alarm in selected_alarms:\n\t\tsystem.alarm.unshelve(alarm.path)\n\t\t\n\tshelved_alarm_table.props.data \u003d []" + "script": "\n\tselected_alarms \u003d self.parent.parent.parent.getChild(\"FlexContainer_0\").getChild(\"AlarmsTable\").props.selection.data\n\tif len(selected_alarms) \u003d\u003d 0:\n\t\treturn\n\t\n\t# Unshelve selected alarms\n\tfor alarm in selected_alarms:\n\t\tsystem.alarm.unshelve(alarm[\u0027path\u0027])\n\t\t\n\tpaths_to_remove \u003d {alarm[\u0027path\u0027] for alarm in selected_alarms}\n\t\n\tshelved_alarms \u003d self.parent.parent.parent.parent.parent.getChild(\"TabContainer\").custom.shelvedAlarms\n\t\t\n\tif shelved_alarms is not None:\n\t\tremaining_data \u003d [a for a in shelved_alarms if a[\u0027path\u0027] not in paths_to_remove]\n\t\t\n\tself.parent.parent.parent.parent.parent.getChild(\"TabContainer\").custom.shelvedAlarms \u003d remaining_data" }, "scope": "G", "type": "script" @@ -1168,9 +1093,6 @@ { "children": [ { - "custom": { - "shelvedAlarmsData": null - }, "meta": { "name": "AlarmsTable" }, @@ -1184,6 +1106,12 @@ "config": { "path": "...../TabContainer.custom.shelvedAlarms" }, + "transforms": [ + { + "code": " data \u003d []\n for row in value: \n keys \u003d row.keys() \n if row[\"priority\"] \u003d\u003d \"High\": \n style \u003d {\"backgroundColor\": \"#fd6059\"} \n elif row[\"priority\"] \u003d\u003d \"Low\": \n style \u003d {\"backgroundColor\": \"#fafa6c\"} \n elif row[\"priority\"] \u003d\u003d \"Diagnostic\": \n style \u003d {\"backgroundColor\": \"#5da0f9\"} \n elif row[\"priority\"] \u003d\u003d \"Medium\": \n style \u003d {\"backgroundColor\": \"#fca25f\"} \n elif row[\"priority\"] \u003d\u003d \"Critical\": \n style \u003d {\"backgroundColor\": \"#c86462\"} \n else:\n style \u003d {\"backgroundColor\": \"\"}\n \n formatted_rows \u003d [{\"value\": v, \"style\": style} for v in row.values()]\n \n row_dict \u003d dict(zip(keys, formatted_rows))\n data.append(row_dict)\n return data ", + "type": "script" + } + ], "type": "property" } }, @@ -1236,6 +1164,7 @@ "align": "center", "justify": "left", "style": { + "backgroundColor": "#FFFEFE", "classes": "" }, "title": "" @@ -1665,7 +1594,6 @@ "text": "No Shelved Alarms" } }, - "enableFooter": true, "selection": { "mode": "multiple interval" } @@ -1703,7 +1631,7 @@ "children": [ { "custom": { - "SetFilter": true + "SetFilter": false }, "events": { "component": { @@ -1806,17 +1734,17 @@ "$": [ "ts", 192, - 1749545137258 + 1749561376741 ], - "$ts": 1749545137258 + "$ts": 1749561376741 }, "startDate": { "$": [ "ts", 192, - 1749545137258 + 1749561376741 ], - "$ts": 1749543337258 + "$ts": 1749559576741 } }, "meta": { @@ -1989,7 +1917,7 @@ } }, "props": { - "formattedValue": "Jun 10, 2025 12:15 PM", + "formattedValue": "Jun 10, 2025 4:46 PM", "style": { "margin": 15 } @@ -2074,7 +2002,7 @@ } }, "props": { - "formattedValue": "Jun 10, 2025 12:45 PM", + "formattedValue": "Jun 10, 2025 5:16 PM", "maxDate": { "$": [ "ts", @@ -2089,10 +2017,10 @@ "value": { "$": [ "ts", - 192, - 1749545137258 + 201, + 1749561376741 ], - "$ts": 1749545137258 + "$ts": 1749561376741 } }, "scripts": { @@ -2216,13 +2144,14 @@ } ], "custom": { - "ShowFilters": true + "ShowFilters": false }, "meta": { "name": "Filters" }, "position": { "basis": "180px", + "display": false, "grow": 1, "shrink": 0 }, @@ -2277,22 +2206,22 @@ ], "$ts": 1747562336635 }, - "priority_filters": "", + "priority_filters": "low", "time_from_filter": { "$": [ "ts", 192, - 1749545137263 + 1749634338103 ], - "$ts": 1749543337258 + "$ts": 1749559576741 }, "time_to_filter": { "$": [ "ts", 192, - 1749545137263 + 1749634338103 ], - "$ts": 1749545137258 + "$ts": 1749561376741 } }, "meta": { @@ -3092,158 +3021,6 @@ "filter": { "enabled": true, "results": { - "data": [ - { - "Description": "alm:papapapa - papapapa", - "Duration": "00:00:40", - "EndTimestamp": 1749545054000, - "ID": 194, - "MCM": "System", - "Priority": "Low", - "StartTimestamp": 1749545014000, - "Tag": "alm:papapapa" - }, - { - "Description": "alm:papapapa - papapapa", - "Duration": "00:02:02", - "EndTimestamp": 1749545012000, - "ID": 191, - "MCM": "System", - "Priority": "Low", - "StartTimestamp": 1749544890000, - "Tag": "alm:papapapa" - }, - { - "Description": "alm:papapapa - papapapa", - "Duration": "00:02:02", - "EndTimestamp": 1749544888000, - "ID": 188, - "MCM": "System", - "Priority": "Low", - "StartTimestamp": 1749544766000, - "Tag": "alm:papapapa" - }, - { - "Description": "alm:papapapa - papapapa", - "Duration": "00:02:02", - "EndTimestamp": 1749544764000, - "ID": 185, - "MCM": "System", - "Priority": "Low", - "StartTimestamp": 1749544642000, - "Tag": "alm:papapapa" - }, - { - "Description": "alm:papapapa - papapapa", - "Duration": "00:02:02", - "EndTimestamp": 1749544640000, - "ID": 182, - "MCM": "System", - "Priority": "Low", - "StartTimestamp": 1749544518000, - "Tag": "alm:papapapa" - }, - { - "Description": "alm:papapapa - papapapa", - "Duration": "00:02:02", - "EndTimestamp": 1749544516000, - "ID": 179, - "MCM": "System", - "Priority": "Low", - "StartTimestamp": 1749544394000, - "Tag": "alm:papapapa" - }, - { - "Description": "alm:papapapa - papapapa", - "Duration": "00:02:02", - "EndTimestamp": 1749544392000, - "ID": 176, - "MCM": "System", - "Priority": "Low", - "StartTimestamp": 1749544270000, - "Tag": "alm:papapapa" - }, - { - "Description": "alm:papapapa - papapapa", - "Duration": "00:02:03", - "EndTimestamp": 1749544268000, - "ID": 173, - "MCM": "System", - "Priority": "Low", - "StartTimestamp": 1749544145000, - "Tag": "alm:papapapa" - }, - { - "Description": "alm:papapapa - papapapa", - "Duration": "00:02:02", - "EndTimestamp": 1749544143000, - "ID": 170, - "MCM": "System", - "Priority": "Low", - "StartTimestamp": 1749544021000, - "Tag": "alm:papapapa" - }, - { - "Description": "alm:papapapa - papapapa", - "Duration": "00:02:02", - "EndTimestamp": 1749544019000, - "ID": 167, - "MCM": "System", - "Priority": "Low", - "StartTimestamp": 1749543897000, - "Tag": "alm:papapapa" - }, - { - "Description": "alm:papapapa - papapapa", - "Duration": "00:02:02", - "EndTimestamp": 1749543895000, - "ID": 164, - "MCM": "System", - "Priority": "Low", - "StartTimestamp": 1749543773000, - "Tag": "alm:papapapa" - }, - { - "Description": "alm:papapapa - papapapa", - "Duration": "00:02:03", - "EndTimestamp": 1749543771000, - "ID": 161, - "MCM": "System", - "Priority": "Low", - "StartTimestamp": 1749543648000, - "Tag": "alm:papapapa" - }, - { - "Description": "alm:papapapa - papapapa", - "Duration": "00:00:15", - "EndTimestamp": 1749543646000, - "ID": 158, - "MCM": "System", - "Priority": "Low", - "StartTimestamp": 1749543631000, - "Tag": "alm:papapapa" - }, - { - "Description": "alm:papapapa - papapapa", - "Duration": "00:02:02", - "EndTimestamp": 1749543629000, - "ID": 155, - "MCM": "System", - "Priority": "Low", - "StartTimestamp": 1749543507000, - "Tag": "alm:papapapa" - }, - { - "Description": "alm:papapapa - papapapa", - "Duration": "00:02:04", - "EndTimestamp": 1749543505000, - "ID": 152, - "MCM": "System", - "Priority": "Low", - "StartTimestamp": 1749543381000, - "Tag": "alm:papapapa" - } - ], "enabled": true } }, @@ -3255,12 +3032,12 @@ "data": [ { "Description": "alm:papapapa - papapapa", - "Duration": "00:01:45", - "EndTimestamp": 1749547975000, - "ID": 293, + "Duration": "00:00:09", + "EndTimestamp": 1749565341000, + "ID": 668, "MCM": "System", - "Priority": "Low", - "StartTimestamp": 1749547870000, + "Priority": "Diagnostic", + "StartTimestamp": 1749565332000, "Tag": "alm:papapapa" } ], @@ -3385,22 +3162,22 @@ "custom": { "download_in_progress": true, "enable_timeout": false, - "priority_filters": "", + "priority_filters": "low", "time_from_filter": { "$": [ "ts", 192, - 1749545137263 + 1749634338103 ], - "$ts": 1749543337258 + "$ts": 1749559576741 }, "time_to_filter": { "$": [ "ts", 192, - 1749545137263 + 1749634338103 ], - "$ts": 1749545137258 + "$ts": 1749561376741 }, "type_filters": null }, @@ -3636,36 +3413,7 @@ } ], "custom": { - "shelvedAlarms": [ - { - "activeTime": "2025-06-10 13:46:26", - "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", - "path": "prov:MTN6_SCADA_TAG_PROVIDER:/tag:System/wbsckt_logging:/alm:Alarm", - "priority": "Critical" - } - ] + "shelvedAlarms": [] }, "meta": { "name": "TabContainer" @@ -3686,6 +3434,7 @@ "contentStyle": { "classes": "Background-Styles/Grey-Background" }, + "currentTabIndex": 1, "menuType": "modern", "style": { "classes": "Background-Styles/Grey-Background"