Compare commits
No commits in common. "28f62b23a853c8797bfe0d9c897c0c3bde0a4754" and "ce35a825031c4e3314bfabd6100244c4743bbd3f" have entirely different histories.
28f62b23a8
...
ce35a82503
@ -6,9 +6,9 @@
|
|||||||
"$": [
|
"$": [
|
||||||
"ts",
|
"ts",
|
||||||
192,
|
192,
|
||||||
1750766217642
|
1747730947188
|
||||||
],
|
],
|
||||||
"$ts": 1750766217641
|
"$ts": 1747730947187
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@ -512,7 +512,7 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"props": {
|
"props": {
|
||||||
"color": "#47FF47",
|
"color": "#FF0000",
|
||||||
"path": "material/table_chart"
|
"path": "material/table_chart"
|
||||||
},
|
},
|
||||||
"type": "ia.display.icon"
|
"type": "ia.display.icon"
|
||||||
@ -780,23 +780,8 @@
|
|||||||
"position": {
|
"position": {
|
||||||
"basis": "30px"
|
"basis": "30px"
|
||||||
},
|
},
|
||||||
"propConfig": {
|
|
||||||
"props.color": {
|
|
||||||
"binding": {
|
|
||||||
"config": {
|
|
||||||
"path": "../Label.props.text"
|
|
||||||
},
|
|
||||||
"transforms": [
|
|
||||||
{
|
|
||||||
"code": "\t\n\treturn \"red\" if value \u003e 0 else \"#fff\"",
|
|
||||||
"type": "script"
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"type": "property"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"props": {
|
"props": {
|
||||||
|
"color": "#FFFFFF",
|
||||||
"path": "material/notifications_active",
|
"path": "material/notifications_active",
|
||||||
"style": {
|
"style": {
|
||||||
"classes": ""
|
"classes": ""
|
||||||
@ -815,19 +800,17 @@
|
|||||||
"props.text": {
|
"props.text": {
|
||||||
"binding": {
|
"binding": {
|
||||||
"config": {
|
"config": {
|
||||||
"polling": {
|
"fallbackDelay": 2.5,
|
||||||
"enabled": true,
|
"mode": "direct",
|
||||||
"rate": "3"
|
"tagPath": "System/aws_data"
|
||||||
},
|
|
||||||
"queryPath": "GetActiveAlarmsByLocationAndPriority"
|
|
||||||
},
|
},
|
||||||
"transforms": [
|
"transforms": [
|
||||||
{
|
{
|
||||||
"code": "\tdata \u003d value\n\trows \u003d system.dataset.toPyDataSet(data)\n\t\n\ttotal \u003d sum(row[\"Count\"] for row in rows)\n\t\n\treturn total",
|
"code": "\tjson_decode \u003d system.util.jsonDecode(value)\n\treturn len(json_decode)",
|
||||||
"type": "script"
|
"type": "script"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"type": "query"
|
"type": "tag"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@ -841,24 +824,11 @@
|
|||||||
}
|
}
|
||||||
],
|
],
|
||||||
"meta": {
|
"meta": {
|
||||||
"name": "FlexContainer",
|
"name": "FlexContainer"
|
||||||
"tooltip": {
|
|
||||||
"enabled": true
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
"position": {
|
"position": {
|
||||||
"basis": "80px"
|
"basis": "80px"
|
||||||
},
|
},
|
||||||
"propConfig": {
|
|
||||||
"meta.tooltip.text": {
|
|
||||||
"binding": {
|
|
||||||
"config": {
|
|
||||||
"expression": "{./Label.props.text} + \" active alarms in the system\""
|
|
||||||
},
|
|
||||||
"type": "expr"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"props": {
|
"props": {
|
||||||
"justify": "flex-end",
|
"justify": "flex-end",
|
||||||
"style": {
|
"style": {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user