Compare commits

..

No commits in common. "57c4651ef7b1022e5f8bff5e31ddfd8c245b0c30" and "cd7cc1bb7a4cbffe30f74c12a77a4b51899caaa2" have entirely different histories.

View File

@ -4,15 +4,14 @@
"covert_mode": true, "covert_mode": true,
"disconnected": false, "disconnected": false,
"display_icon": true, "display_icon": true,
"error": false, "error": true,
"isMatch": 0, "isMatch": 0,
"plc": "value", "plc": "value",
"priority": 0, "priority": 4,
"priority_string": "No active alarms", "priority_string": "High",
"searchId": "PLC01", "searchId": "PLC01",
"state": 5, "state": 1,
"status": 3, "visible_status": true
"visible_status": false
}, },
"params": { "params": {
"forceFaultStatus": null, "forceFaultStatus": null,
@ -143,7 +142,7 @@
"custom.priority_string": { "custom.priority_string": {
"binding": { "binding": {
"config": { "config": {
"expression": "case({view.custom.state},\r\n4, \"Diagnostic\",\r\n5, \"No active alarms\",\r\n\"Unknown\")" "expression": "case({view.custom.state},\r\n1, \"High\",\r\n5, \"No active alarms\",\r\n\"Unknown\")"
}, },
"type": "expr" "type": "expr"
}, },
@ -179,8 +178,8 @@
"inputType": "scalar", "inputType": "scalar",
"mappings": [ "mappings": [
{ {
"input": 1, "input": 4,
"output": 4 "output": 1
}, },
{ {
"input": 0, "input": 0,
@ -195,27 +194,6 @@
}, },
"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": {
@ -268,7 +246,7 @@
"props.elements[1].fill.paint": { "props.elements[1].fill.paint": {
"binding": { "binding": {
"config": { "config": {
"path": "view.custom.status" "path": "view.custom.state"
}, },
"transforms": [ "transforms": [
{ {
@ -276,20 +254,12 @@
"inputType": "scalar", "inputType": "scalar",
"mappings": [ "mappings": [
{ {
"input": 0, "input": 5,
"output": "#D5D5D5" "output": "#D5D5D5"
}, },
{ {
"input": 1, "input": 1,
"output": "#FFFFFF" "output": "#FFFFFF"
},
{
"input": 2,
"output": "#47FF47"
},
{
"input": 3,
"output": "#FFFF47"
} }
], ],
"outputType": "color", "outputType": "color",