Merge pull request 'MTN6-218' (#108) from JR_Button into main
Reviewed-on: #108
This commit is contained in:
commit
57c4651ef7
@ -4,14 +4,15 @@
|
|||||||
"covert_mode": true,
|
"covert_mode": true,
|
||||||
"disconnected": false,
|
"disconnected": false,
|
||||||
"display_icon": true,
|
"display_icon": true,
|
||||||
"error": true,
|
"error": false,
|
||||||
"isMatch": 0,
|
"isMatch": 0,
|
||||||
"plc": "value",
|
"plc": "value",
|
||||||
"priority": 4,
|
"priority": 0,
|
||||||
"priority_string": "High",
|
"priority_string": "No active alarms",
|
||||||
"searchId": "PLC01",
|
"searchId": "PLC01",
|
||||||
"state": 1,
|
"state": 5,
|
||||||
"visible_status": true
|
"status": 3,
|
||||||
|
"visible_status": false
|
||||||
},
|
},
|
||||||
"params": {
|
"params": {
|
||||||
"forceFaultStatus": null,
|
"forceFaultStatus": null,
|
||||||
@ -142,7 +143,7 @@
|
|||||||
"custom.priority_string": {
|
"custom.priority_string": {
|
||||||
"binding": {
|
"binding": {
|
||||||
"config": {
|
"config": {
|
||||||
"expression": "case({view.custom.state},\r\n1, \"High\",\r\n5, \"No active alarms\",\r\n\"Unknown\")"
|
"expression": "case({view.custom.state},\r\n4, \"Diagnostic\",\r\n5, \"No active alarms\",\r\n\"Unknown\")"
|
||||||
},
|
},
|
||||||
"type": "expr"
|
"type": "expr"
|
||||||
},
|
},
|
||||||
@ -178,8 +179,8 @@
|
|||||||
"inputType": "scalar",
|
"inputType": "scalar",
|
||||||
"mappings": [
|
"mappings": [
|
||||||
{
|
{
|
||||||
"input": 4,
|
"input": 1,
|
||||||
"output": 1
|
"output": 4
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"input": 0,
|
"input": 0,
|
||||||
@ -194,6 +195,27 @@
|
|||||||
},
|
},
|
||||||
"persistent": true
|
"persistent": true
|
||||||
},
|
},
|
||||||
|
"custom.status": {
|
||||||
|
"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},{view.params.forceFaultStatus},0)",
|
||||||
|
"type": "expression"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"type": "tag"
|
||||||
|
},
|
||||||
|
"persistent": true
|
||||||
|
},
|
||||||
"custom.visible_status": {
|
"custom.visible_status": {
|
||||||
"binding": {
|
"binding": {
|
||||||
"config": {
|
"config": {
|
||||||
@ -246,7 +268,7 @@
|
|||||||
"props.elements[1].fill.paint": {
|
"props.elements[1].fill.paint": {
|
||||||
"binding": {
|
"binding": {
|
||||||
"config": {
|
"config": {
|
||||||
"path": "view.custom.state"
|
"path": "view.custom.status"
|
||||||
},
|
},
|
||||||
"transforms": [
|
"transforms": [
|
||||||
{
|
{
|
||||||
@ -254,12 +276,20 @@
|
|||||||
"inputType": "scalar",
|
"inputType": "scalar",
|
||||||
"mappings": [
|
"mappings": [
|
||||||
{
|
{
|
||||||
"input": 5,
|
"input": 0,
|
||||||
"output": "#D5D5D5"
|
"output": "#D5D5D5"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"input": 1,
|
"input": 1,
|
||||||
"output": "#FFFFFF"
|
"output": "#FFFFFF"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"input": 2,
|
||||||
|
"output": "#47FF47"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"input": 3,
|
||||||
|
"output": "#FFFF47"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"outputType": "color",
|
"outputType": "color",
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user