Add flow rate popup and low priority alarms
- Create FlowRatePopup view with time series chart for prefilter flow rate - Add onClick event to GPM label in Home view to open popup - Add Low priority alarms to PrimaryValveClosedInd, PumpInd, SedimentFilterValveOpenInd Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
{
|
||||
"scope": "G",
|
||||
"version": 1,
|
||||
"restricted": false,
|
||||
"files": ["view.json"],
|
||||
"attributes": {
|
||||
"lastModificationSignature": "",
|
||||
"lastModification": {
|
||||
"actor": "external",
|
||||
"timestamp": "2026-02-22T00:00:00Z"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,138 @@
|
||||
{
|
||||
"custom": {},
|
||||
"params": {},
|
||||
"props": {
|
||||
"defaultSize": {
|
||||
"width": 800,
|
||||
"height": 500
|
||||
}
|
||||
},
|
||||
"root": {
|
||||
"children": [
|
||||
{
|
||||
"meta": {
|
||||
"name": "TimeSeriesChart"
|
||||
},
|
||||
"position": {
|
||||
"basis": "500px",
|
||||
"grow": 1
|
||||
},
|
||||
"propConfig": {
|
||||
"props.series[0].data": {
|
||||
"binding": {
|
||||
"config": {
|
||||
"aggregate": "Average",
|
||||
"avoidScanClassValidation": true,
|
||||
"dateRange": {
|
||||
"mostRecent": "1",
|
||||
"mostRecentUnits": "HOUR"
|
||||
},
|
||||
"enableValueCache": true,
|
||||
"ignoreBadQuality": false,
|
||||
"polling": {
|
||||
"enabled": true,
|
||||
"rate": "30"
|
||||
},
|
||||
"preventInterpolation": false,
|
||||
"returnFormat": "Wide",
|
||||
"returnSize": {
|
||||
"delay": "1",
|
||||
"delayUnits": "MIN",
|
||||
"type": "INTERVAL"
|
||||
},
|
||||
"tags": [
|
||||
{
|
||||
"alias": "Flow Rate",
|
||||
"path": "[CoreDB/ignition-ignition:default]watermeter/prefilterflowrate"
|
||||
}
|
||||
],
|
||||
"valueFormat": "DATASET"
|
||||
},
|
||||
"type": "tag-history"
|
||||
}
|
||||
}
|
||||
},
|
||||
"props": {
|
||||
"defaultStyles": {
|
||||
"colors": [
|
||||
"#0000FF"
|
||||
]
|
||||
},
|
||||
"legend": {
|
||||
"position": "right",
|
||||
"style": {
|
||||
"color": "#000000"
|
||||
},
|
||||
"visible": true
|
||||
},
|
||||
"series": [
|
||||
{
|
||||
"name": "Flow Rate"
|
||||
}
|
||||
],
|
||||
"style": {
|
||||
"color": "#000000"
|
||||
},
|
||||
"timeAxis": {
|
||||
"color": "#000000",
|
||||
"grid": {
|
||||
"color": "#000000"
|
||||
},
|
||||
"style": {
|
||||
"color": "#000000"
|
||||
},
|
||||
"tick": {
|
||||
"color": "#000000",
|
||||
"label": {
|
||||
"font": {
|
||||
"color": "#000000"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"timeRange": {
|
||||
"dateFormat": "MM-DD-YYYY",
|
||||
"timeFormat": "h:mm:ss A"
|
||||
},
|
||||
"title": {
|
||||
"font": {
|
||||
"color": "#000000"
|
||||
},
|
||||
"height": 20,
|
||||
"style": {
|
||||
"color": "#000000"
|
||||
},
|
||||
"text": "Prefilter Flow Rate (GPM)",
|
||||
"visible": true
|
||||
},
|
||||
"xTrace": {
|
||||
"infoBox": {
|
||||
"dateFormat": "MM-DD-YYYY",
|
||||
"fill": {
|
||||
"color": "#FFFFFF"
|
||||
},
|
||||
"font": {
|
||||
"color": "#000000"
|
||||
},
|
||||
"stroke": {
|
||||
"color": "#000000"
|
||||
},
|
||||
"timeFormat": "h:mm:ss A"
|
||||
},
|
||||
"line": {
|
||||
"color": "#000000"
|
||||
}
|
||||
}
|
||||
},
|
||||
"type": "ia.chart.timeseries"
|
||||
}
|
||||
],
|
||||
"meta": {
|
||||
"name": "root"
|
||||
},
|
||||
"props": {
|
||||
"direction": "column"
|
||||
},
|
||||
"type": "ia.container.flex"
|
||||
}
|
||||
}
|
||||
@@ -1287,10 +1287,22 @@
|
||||
"style": {
|
||||
"backgroundColor": "#D5D5D5",
|
||||
"margin": 5,
|
||||
"textAlign": "center"
|
||||
"textAlign": "center",
|
||||
"cursor": "pointer"
|
||||
}
|
||||
},
|
||||
"type": "ia.display.label"
|
||||
"type": "ia.display.label",
|
||||
"events": {
|
||||
"dom": {
|
||||
"onClick": {
|
||||
"config": {
|
||||
"script": "system.perspective.openPopup('flowRatePopup', 'FlowRatePopup', params={}, title='Flow Rate History', modal=True)"
|
||||
},
|
||||
"scope": "G",
|
||||
"type": "script"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
],
|
||||
"meta": {
|
||||
|
||||
Reference in New Issue
Block a user