{ "custom": { "cameraName": "value", "color": "#C2C2C2", "priority": "No Active Alarms", "state": "Offline" }, "params": { "ipaddress": "192.168.25.24", "tagProps": [ "value", "value", "value", "value", "value", "value", "value", "value", "value", "value" ] }, "propConfig": { "custom.cameraName": { "binding": { "config": { "expression": "{view.params.tagProps[0]}" }, "transforms": [ { "code": "\treturn value.split(\"/\")[-1]", "type": "script" } ], "type": "expr" }, "persistent": true }, "custom.color": { "binding": { "config": { "fallbackDelay": 2.5, "mode": "indirect", "references": { "0": "{view.params.tagProps[0]}", "fc": "{session.custom.fc}" }, "tagPath": "[{fc}_SCADA_TAG_PROVIDER]{0}/Color" }, "transforms": [ { "expression": "coalesce({value},0)", "type": "expression" }, { "fallback": "#000000", "inputType": "scalar", "mappings": [ { "input": 0, "output": "#C2C2C2" }, { "input": 1, "output": "#FF0000" }, { "input": 2, "output": "#FFA500" }, { "input": 3, "output": "#0008FF" }, { "input": 4, "output": "#00FF00" }, { "input": 5, "output": "#FFF700" }, { "input": 6, "output": "#87CEEB" }, { "input": 7, "output": "#90EE90" }, { "input": 8, "output": "#964B00" }, { "input": 9, "output": "#FFFFFF" }, { "input": 10, "output": "#000000" }, { "input": 11, "output": "#8B0000" }, { "input": 12, "output": "#808080" }, { "input": 13, "output": "#8B8000" }, { "input": 14, "output": "#006400" }, { "input": 15, "output": "#FFFFC5" }, { "input": 16, "output": "#00008B" }, { "input": 17, "output": "#FF7276" }, { "input": 18, "output": "#556B2F" }, { "input": 19, "output": "#B43434" }, { "input": 20, "output": "#4682B4" }, { "input": 21, "output": "#FFD700" } ], "outputType": "color", "type": "map" } ], "type": "tag" }, "persistent": true }, "custom.priority": { "binding": { "config": { "fallbackDelay": 2.5, "mode": "indirect", "references": { "0": "{view.params.tagProps[0]}", "fc": "{session.custom.fc}" }, "tagPath": "[{fc}_SCADA_TAG_PROVIDER]{0}/Priority" }, "transforms": [ { "expression": "coalesce({value},0)", "type": "expression" }, { "fallback": null, "inputType": "scalar", "mappings": [ { "input": 0, "output": "No Active Alarms" }, { "input": 1, "output": "High" }, { "input": 2, "output": "Medium" }, { "input": 3, "output": "Low" }, { "input": 4, "output": "Diagnostic" } ], "outputType": "scalar", "type": "map" } ], "type": "tag" }, "persistent": true }, "custom.state": { "binding": { "config": { "fallbackDelay": 2.5, "mode": "indirect", "references": { "0": "{view.params.tagProps[0]}", "fc": "{session.custom.fc}" }, "tagPath": "[{fc}_SCADA_TAG_PROVIDER]{0}/State" }, "transforms": [ { "expression": "coalesce({value},-1)", "type": "expression" }, { "fallback": "Offline", "inputType": "scalar", "mappings": [ { "input": 0, "output": "Closed" }, { "input": 1, "output": "Actuated" }, { "input": 2, "output": "Communication Faulted" }, { "input": 3, "output": "Conveyor Running In Maintenance Mode" }, { "input": 4, "output": "Disabled" }, { "input": 5, "output": "Disconnected" }, { "input": 6, "output": "Stopped" }, { "input": 7, "output": "Enabled Not Running" }, { "input": 8, "output": "Encoder Fault" }, { "input": 9, "output": "Energy Management" }, { "input": 10, "output": "ESTOP Was Actuated" }, { "input": 11, "output": "EStopped" }, { "input": 12, "output": "EStopped Locally" }, { "input": 13, "output": "Extended Faulted" }, { "input": 14, "output": "Full" }, { "input": 15, "output": "Gaylord Start Pressed" }, { "input": 16, "output": "Jam Fault" }, { "input": 17, "output": "Jammed" }, { "input": 18, "output": "Loading Allowed" }, { "input": 19, "output": "Loading Not Allowed" }, { "input": 20, "output": "Low Air Pressure Fault Was Present" }, { "input": 21, "output": "Maintenance Mode" }, { "input": 22, "output": "Conveyor Stopped In Maintenance Mode" }, { "input": 23, "output": "Motor Faulted" }, { "input": 24, "output": "Motor Was Faulted" }, { "input": 25, "output": "Normal" }, { "input": 26, "output": "Off Inactive" }, { "input": 27, "output": "Open" }, { "input": 28, "output": "PLC Ready To Run" }, { "input": 29, "output": "Package Release Pressed" }, { "input": 30, "output": "Power Branch Was Faulted" }, { "input": 31, "output": "Pressed" }, { "input": 32, "output": "Ready To Receive" }, { "input": 33, "output": "Running" }, { "input": 34, "output": "Started" }, { "input": 35, "output": "Stopped" }, { "input": 36, "output": "System Started" }, { "input": 37, "output": "Unknown" }, { "input": 38, "output": "VFD Fault" }, { "input": 39, "output": "Conveyor Running In Power Saving Mode" }, { "input": 40, "output": "Conveyor Jogging In Maintenance Mode" }, { "input": 41, "output": "VFD Reset Required" }, { "input": 42, "output": "Jam Reset Push Button Pressed" }, { "input": 43, "output": "Start Push Button Pressed" }, { "input": 44, "output": "Stop Push Button Pressed" }, { "input": 45, "output": "No Container" }, { "input": 46, "output": "Ready To Be Enabled" }, { "input": 47, "output": "Half Full" }, { "input": 48, "output": "Enabled" }, { "input": 49, "output": "Tipper Faulted" } ], "outputType": "scalar", "type": "map" } ], "type": "tag" }, "persistent": true }, "params.ipaddress": { "paramDirection": "input", "persistent": true }, "params.tagProps": { "paramDirection": "inout", "persistent": true } }, "props": { "defaultSize": { "height": 100, "width": 100 } }, "root": { "children": [ { "meta": { "name": "Camera" }, "position": { "height": 1, "width": 1 }, "props": { "elements": [ { "id": "defs963", "name": "defs963", "type": "defs" }, { "d": "M 108.69378,77.205299 A 30.372795,30.372799 0 0 1 78.350262,107.57808 30.372795,30.372799 0 0 1 47.948245,77.263855 30.372795,30.372799 0 0 1 78.23315,46.832627 a 30.372795,30.372799 0 0 1 30.4604,30.255561", "fill": { "paint": "#00FF11" }, "id": "path2823", "name": "path2823", "stroke": { "dasharray": "none", "paint": "#000000", "width": "2.30899" }, "transform": "matrix(0.45169465,0,0,0.44391375,-20.878644,-19.304276)", "type": "path" }, { "d": "m 17.282436,15.91156 c 0,1.491965 -1.078486,2.699746 -2.410733,2.699746 -1.332247,0 -2.410732,-1.207781 -2.410732,-2.699746 0,-1.491966 1.078485,-2.699747 2.410732,-2.699747 1.332247,0 2.410733,1.207781 2.410733,2.699747 z m 4.933418,-6.7660845 c 0.9628,0 1.742743,0.8734485 1.742743,1.9516745 v 5.115311 4.337982 c 0,1.149274 -0.832188,2.081229 -1.858428,2.081229 H 7.270059 c -1.0262406,0 -1.8584284,-0.931955 -1.8584284,-2.081229 v -4.342161 -5.111132 0 c 0,-1.078226 0.7799429,-1.9516745 1.7427431,-1.9516745 H 10.63986 L 10.804058,8.3681487 C 11.054088,7.1645466 12.013156,6.311995 13.117765,6.311995 h 2.765252 c 1.104608,0 2.063676,0.8525516 2.313706,2.0561537 l 0.160466,0.7773268 z M 9.4195666,11.962239 c 0,-0.539113 -0.3918373,-0.977926 -0.8732374,-0.977926 -0.485132,0 -0.8769693,0.438813 -0.8769693,0.977926 0,0.539114 0.3918373,0.977927 0.8732375,0.977927 0.4851319,0.0042 0.8769692,-0.434634 0.8769692,-0.977927 z m 9.7511514,3.949321 c 0,-2.657956 -1.9256,-4.81441 -4.299015,-4.81441 -2.373415,0 -4.299015,2.156454 -4.299015,4.81441 0,2.657955 1.9256,4.814409 4.299015,4.814409 2.373415,0 4.299015,-2.156454 4.299015,-4.814409 z", "id": "path954", "name": "path954", "stroke": { "width": "0.0394916" }, "type": "path" } ], "viewBox": "0 0 29.22 29.22" }, "type": "ia.shapes.svg" } ], "events": { "dom": { "onClick": { "config": { "draggable": true, "id": "kxYYzZ2O{view.params.ipaddress}", "modal": false, "overlayDismiss": false, "resizable": true, "showCloseIcon": true, "title": "{view.custom.cameraName}", "type": "open", "viewParams": { "ipaddress": "{view.params.ipaddress}" }, "viewPath": "autStand/PopUp-Views/Camera", "viewportBound": false }, "scope": "C", "type": "popup" } } }, "meta": { "name": "root", "tooltip": { "enabled": true, "location": "top-left" } }, "propConfig": { "meta.tooltip.text": { "binding": { "config": { "expression": "if(\n {view.custom.state} !\u003d \"Closed\",\n \"Source Id: \" + {view.params.tagProps[0]} + \", Priority: \" + {view.custom.priority} + \", State: \" + {view.custom.state},\n \"Device Disconnected\"\n)\n" }, "type": "expr" } }, "meta.visible": { "binding": { "config": { "path": "session.custom.alarm_filter.show_camera_jams" }, "type": "property" } } }, "props": { "aspectRatio": "1:1", "mode": "percent", "style": { "cursor": "pointer", "userSelect": "none" } }, "type": "ia.container.coord" } }