Hello,
Here is a simple example of taking a point and displaying its value:
<ma-get-point-value point-xid="Site_Total_Real_Power" point="myPoint" ></ma-get-point-value>
<p>
The point name is "{{myPoint.name}}" and its value is {{myPoint.renderedValue}}
</P>
The output appears like:
Is there a potential way to vary the display of this text on a dashboard every 10 seconds? For example, in 10 seconds it could read:
My only attempt was making a java script which changes display text every 5 seconds, but I don't know how to pass angular values into the script?
<script type="text/javascript">
var text = ["and its value is", "and its rendered value is"];
var counter = 0;
var elem = document.getElementById("changeText");
setIntervalAndExecute(change, 5000);
function change() {
elem.innerHTML = text[counter];
counter++;
if(counter >= text.length) { counter = 0; }
}
function setIntervalAndExecute(fn, t) {
fn();
return(setInterval(fn, t));
}
</script>
Does anyone have suggestions?
Cheers, Henry