Event detector
-
Hi.All
I have two questions to help me.1.Event detector alerts. How can I bring a jog event alert to a jquery's ToggleClass?
2.Max Y axis of 4-axis serialchart? I have 4 values left, left-2, right, right-2.Can serialchart set this up?
Thank you for All.
-
@john-beer said in Event detector:
1.Event detector alerts. How can I bring a jog event alert to a jquery's ToggleClass?
In general you should not be using jQuery with our dashboards, we are using AngularJS. I'm not sure what a "jog event alert" is. Can you describe further what you are trying to achieve?
@john-beer said in Event detector:
2.Max Y axis of 4-axis serialchart? I have 4 values left, left-2, right, right-2.Can serialchart set this up?
Are you talking about for a
<ma-serial-chart>
component inside a custom page? -
1.Event detector. If event detector is alert I can do it on dashboards. For example, event detector is alert.I want to use the color of the graph flashing when the acknowledge does not blink.
2.Yes, I mean <ma-serial-chart>. I try to use serial-X-axis. The X-axis uses left, left-2, right, right-2 to define 4 axes. I want axis 5 I need to do.
3.<ma-serial-chart> Can the value of the graph make more than 5001? Graph it limit 5001 values
-
Hi JohHn-Beer,
With regards to 1, you may find this thread interesting: https://forum.infiniteautomation.com/topic/3368/how-to-include-an-event-detector-value-into-a-function/
That would be one way to aggregate a few event detector's current alarm state into a binary point, and then you can use the binary point to handle display logic on the page.
-
@john-beer said in Event detector:
2.Yes, I mean <ma-serial-chart>. I try to use serial-X-axis. The X-axis uses left, left-2, right, right-2 to define 4 axes. I want axis 5 I need to do.
I just answered this question here. You can add as many y-axis configurations to the
valueAxes
array as you want, just give them a id property so you can reference them.
https://forum.infiniteautomation.com/topic/3378/ma-serial-chart-can-not-set-multiple-axis-and-max-min/3@john-beer said in Event detector:
3.<ma-serial-chart> Can the value of the graph make more than 5001? Graph it limit 5001 values
You can change the limit in the
UI Settings
page underAdministration
. However you should not try and chart too many values, the charts will slow down your page. You should use a rollup when getting the point values to down sample your data. -
@john-beer said in Event detector:
1.Event detector. If event detector is alert I can do it on dashboards. For example, event detector is alert.I want to use the color of the graph flashing when the acknowledge does not blink.
There is no support for this built into the components just yet. Please see @phildunlap 's answer
You could write your own component and put it in the user module. To get events for a data point you would use the maEvents service using code like this
maEvents.buildQuery() .eq('dataPointId', 123) .eq('active', true) .query().then(result => { // do something with events });