<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Alarm list and update]]></title><description><![CDATA[<p dir="auto">Hi all<br />
I have some problems i am new in Mango, if someone can help me, i want to perform a simple thing but i cant do it.<br />
I have a data source with a list of data point (binary). I want to show in a GUI "only" the one that is alarmed in realtime, mean value=true. and fill a table with that..</p>
<p dir="auto">This code that i am testing,  Does not work property does not show in realtime, i change manually the value to test and no row is show in a table.</p>
<p dir="auto">When i manually update the page, appear a row but not in realtime.</p>
<pre><code>&lt;ma-point-query query="{$and: true, deviceName:'Menerga Faults', name:''}" limit="30" points="puntos_faults"&gt;&lt;/ma-point-query&gt;
&lt;ma-point-values points="puntos_faults" values="combined_faults" latest="1" from="dateBar.from" to="dateBar.to" rollup="{{dateBar.rollupType}}" rendered="true" rollup-interval="{{dateBar.rollupIntervals}} {{dateBar.rollupIntervalPeriod}}"&gt;
&lt;/ma-point-values&gt;

&lt;div id="3a040097-4b4d-46c7-bcc4-1bb62d4563e8" style="position: absolute; left: 590px; top: 937px; border-width: medium; border-style: solid; border-radius: 10px; border-color: rgb(153, 153, 153); width: 485px; height: 165px;"&gt;

&lt;table class="customTable"&gt;
  &lt;thead&gt;
    &lt;tr&gt;
      &lt;th&gt;Current Faults&lt;/th&gt;
      &lt;th&gt;Value&lt;/th&gt;
    &lt;/tr&gt;
  &lt;/thead&gt;
  &lt;tbody&gt;
    &lt;tr ng-repeat="punto in puntos_faults" ng-if="combined_faults[0]['value_' + punto.xid + '_rendered'] == 'true'"&gt;
        &lt;td&gt;{{punto.name}}&lt;/td&gt;
        &lt;td style="color: red" ng-repeat="value in combined_faults"&gt;{{value['value_' + punto.xid + '_rendered']}}&lt;/td&gt;
    &lt;/tr&gt;
 
  &lt;/tbody&gt;
&lt;/table&gt;
</code></pre>
<p dir="auto">Thanks you very much for the help.</p>
]]></description><link>https://forum.mango-os.com/topic/5232/alarm-list-and-update</link><generator>RSS for Node</generator><lastBuildDate>Mon, 10 Aug 2026 13:18:09 GMT</lastBuildDate><atom:link href="https://forum.mango-os.com/topic/5232.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 07 Jul 2021 18:30:22 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Alarm list and update on Thu, 08 Jul 2021 18:25:18 GMT]]></title><description><![CDATA[<p dir="auto">Rather than hiding rows, it would be better to validate if these point values are changing, remove the ng-show and focus on the point values first. If they are not updating in realtime, then you have other problems.</p>
<p dir="auto">Fox</p>
]]></description><link>https://forum.mango-os.com/post/26789</link><guid isPermaLink="true">https://forum.mango-os.com/post/26789</guid><dc:creator><![CDATA[MattFox]]></dc:creator><pubDate>Thu, 08 Jul 2021 18:25:18 GMT</pubDate></item><item><title><![CDATA[Reply to Alarm list and update on Thu, 08 Jul 2021 18:21:39 GMT]]></title><description><![CDATA[<p dir="auto">Yep, i tried to echoing, works fine but only refreshing manually the page :(, with ma-point-values and realtime=true works with a delay when the page is refresh, but does not work when the alarm dissapear and does not delete the row in realtime.</p>
<p dir="auto">Thanks :)</p>
]]></description><link>https://forum.mango-os.com/post/26788</link><guid isPermaLink="true">https://forum.mango-os.com/post/26788</guid><dc:creator><![CDATA[Cristian Herrera]]></dc:creator><pubDate>Thu, 08 Jul 2021 18:21:39 GMT</pubDate></item><item><title><![CDATA[Reply to Alarm list and update on Thu, 08 Jul 2021 17:55:43 GMT]]></title><description><![CDATA[<pre><code>oint-value to ma-get-point-value ? but this last one does not have realtime option.

&lt;ma-point-query query="{$and: true, deviceName:'Menerga Alarms', name:''}" limit="30" points="puntos"&gt;&lt;/ma-point-query&gt;



&lt;div id="f18b7537-6b27-406b-9d2c-48daa56b3ff0" style="position: absolute; left: 21px; top: 922px; border-width: medium; border-style: solid; border-radius: 10px; border-color: rgb(153, 153, 153); width: 485px; height: 165px;"&gt;

&lt;table class="customTable"&gt;
  &lt;thead&gt;
    &lt;tr&gt;
      &lt;th&gt;Current Alarms&lt;/th&gt;
      &lt;th&gt;Value&lt;/th&gt;
    &lt;/tr&gt;
  &lt;/thead&gt;
  &lt;tbody&gt;
    &lt;tr ng-repeat="punto in puntos" ng-show="punto.value"&gt;
        &lt;td&gt;&lt;ma-get-point-value point="punto"&gt;&lt;/ma-get-point-value&gt;
{{punto.name}}&lt;/td&gt;
        &lt;td style="color: red"&gt;{{punto.renderedValue}}&lt;/td&gt;
    &lt;/tr&gt;
    
  &lt;/tbody&gt;
&lt;/table&gt;
</code></pre>
<ol>
<li>Don't make too many changes in one go. You will only confuse yourself.</li>
<li>move that ma-get-point-value inside the loop. Make it focus on only one point rather than many.</li>
<li>Have you tried echoing out the points themselves onto the page, just to make sure all of the data you need is there?</li>
</ol>
]]></description><link>https://forum.mango-os.com/post/26787</link><guid isPermaLink="true">https://forum.mango-os.com/post/26787</guid><dc:creator><![CDATA[MattFox]]></dc:creator><pubDate>Thu, 08 Jul 2021 17:55:43 GMT</pubDate></item><item><title><![CDATA[Reply to Alarm list and update on Thu, 08 Jul 2021 17:22:55 GMT]]></title><description><![CDATA[<p dir="auto">Dear <a class="plugin-mentions-user plugin-mentions-a" href="/user/mattfox" aria-label="Profile: MattFox">@<bdi>MattFox</bdi></a> Thanks a lot for the help and tips, i tried your code, but unfortunately does not work the realtime, i changed manually the status of the data point, from false to true, then i reload the page and the table does not show an alarm, after some time does it, but when i change it back to false, the row does not dissapear.</p>
<p dir="auto">It is possible to change ma-point-value to ma-get-point-value ? but this last one does not have realtime option.</p>
<pre><code>&lt;ma-point-query query="{$and: true, deviceName:'Menerga Alarms', name:''}" limit="30" points="puntos"&gt;&lt;/ma-point-query&gt;

&lt;ma-get-point-value points="puntos"&gt;&lt;/ma-get-point-value&gt;

&lt;div id="f18b7537-6b27-406b-9d2c-48daa56b3ff0" style="position: absolute; left: 21px; top: 922px; border-width: medium; border-style: solid; border-radius: 10px; border-color: rgb(153, 153, 153); width: 485px; height: 165px;"&gt;

&lt;table class="customTable"&gt;
  &lt;thead&gt;
    &lt;tr&gt;
      &lt;th&gt;Current Alarms&lt;/th&gt;
      &lt;th&gt;Value&lt;/th&gt;
    &lt;/tr&gt;
  &lt;/thead&gt;
  &lt;tbody&gt;
    &lt;tr ng-repeat="punto in puntos" ng-show="punto.value"&gt;
        &lt;td&gt;{{punto.name}}&lt;/td&gt;
        &lt;td style="color: red"&gt;{{punto.renderedValue}}&lt;/td&gt;
    &lt;/tr&gt;
    
  &lt;/tbody&gt;
&lt;/table&gt;
</code></pre>
<p dir="auto">Thanks so much again.</p>
]]></description><link>https://forum.mango-os.com/post/26786</link><guid isPermaLink="true">https://forum.mango-os.com/post/26786</guid><dc:creator><![CDATA[Cristian Herrera]]></dc:creator><pubDate>Thu, 08 Jul 2021 17:22:55 GMT</pubDate></item><item><title><![CDATA[Reply to Alarm list and update on Thu, 08 Jul 2021 10:22:32 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/cristian-herrera" aria-label="Profile: cristian-herrera">@<bdi>cristian-herrera</bdi></a> said in <a href="/post/26781">Alarm list and update</a>:</p>
<blockquote>
<p dir="auto">Another small question, how i can get the value of a list of datapoints, i have to use ma-point-query with ma-point-value ? there is a way to have a list of datapoints and made a ng-repeat="point in points" then point.value?</p>
</blockquote>
<p dir="auto">You can use ma-point-query, or the ma-watchlist-table, look at the examples on the menu. Turn on the api docs via aministration-&gt;edit menu and save. You will find it very beneficial.</p>
]]></description><link>https://forum.mango-os.com/post/26785</link><guid isPermaLink="true">https://forum.mango-os.com/post/26785</guid><dc:creator><![CDATA[MattFox]]></dc:creator><pubDate>Thu, 08 Jul 2021 10:22:32 GMT</pubDate></item><item><title><![CDATA[Reply to Alarm list and update on Thu, 08 Jul 2021 09:55:15 GMT]]></title><description><![CDATA[<pre><code>&lt;ma-point-query query="{$and: true, deviceName:'Menerga Faults', name:''}" limit="30" points="puntos_faults"&gt;&lt;/ma-point-query&gt;
&lt;!-- replaced from and to with realtime --&gt;
&lt;ma-point-values points="puntos_faults" values="combined_faults" latest="1" realtime="true"  rollup="{{dateBar.rollupType}}" rendered="true" rollup-interval="{{dateBar.rollupIntervals}} {{dateBar.rollupIntervalPeriod}}"&gt;
&lt;/ma-point-values&gt;

&lt;div id="3a040097-4b4d-46c7-bcc4-1bb62d4563e8" style="position: absolute; left: 590px; top: 937px; border-width: medium; border-style: solid; border-radius: 10px; border-color: rgb(153, 153, 153); width: 485px; height: 165px;"&gt;

&lt;table class="customTable"&gt;
  &lt;thead&gt;
    &lt;tr&gt;
      &lt;th&gt;Current Faults&lt;/th&gt;
      &lt;th&gt;Value&lt;/th&gt;
    &lt;/tr&gt;
  &lt;/thead&gt;
  &lt;tbody&gt;
&lt;!-- changed the ng-if to ng-show and used it to compare the boolean value, not the rendered one. --&gt;
    &lt;tr ng-repeat="punto in puntos_faults" ng-show="combined_faults[0]['value_' + punto.xid]"&gt;
        &lt;td&gt;{{punto.name}}&lt;/td&gt;
        &lt;td style="color: red" ng-repeat="value in combined_faults"&gt;{{value['value_' + punto.xid + '_rendered']}}&lt;/td&gt;
    &lt;/tr&gt;
 
  &lt;/tbody&gt;
&lt;/table&gt;
</code></pre>
<p dir="auto">Looks pretty good, change the <code>'true'</code> to <code>true</code>, you're comparing booleans not strings.<br />
Secondly, for better speed, change those <code>ng-if</code> statements to <code>ng-show</code>. You want it to be dynamic and only show if the value is valid, hide if invalid. ng-if will mess with this as it will have to re-render the elements every time your values are true.</p>
<p dir="auto">Also, I removed <code>from="dateBar.from" to="dateBar.to" </code><br />
You don't need these if you are pulling the latest, which brings me to the next thing. If you want to pull the latest value, use <code>realtime="true"</code><br />
This is why it isn't updating automatically for you.</p>
<p dir="auto">Fox</p>
]]></description><link>https://forum.mango-os.com/post/26784</link><guid isPermaLink="true">https://forum.mango-os.com/post/26784</guid><dc:creator><![CDATA[MattFox]]></dc:creator><pubDate>Thu, 08 Jul 2021 09:55:15 GMT</pubDate></item><item><title><![CDATA[Reply to Alarm list and update on Thu, 08 Jul 2021 02:58:10 GMT]]></title><description><![CDATA[<p dir="auto">I update the code to make it simplest</p>
<pre><code>&lt;ma-point-query query="{$and: true, deviceName:'Menerga Alarms', name:''}" limit="30" points="puntos"&gt;&lt;/ma-point-query&gt;

&lt;ma-get-point-value points="puntos"&gt;&lt;/ma-get-point-value&gt;

&lt;div id="f18b7537-6b27-406b-9d2c-48daa56b3ff0" style="position: absolute; left: 21px; top: 922px; border-width: medium; border-style: solid; border-radius: 10px; border-color: rgb(153, 153, 153); width: 485px; height: 165px;"&gt;

&lt;table class="customTable"&gt;
  &lt;thead&gt;
    &lt;tr&gt;
      &lt;th&gt;Current Alarms&lt;/th&gt;
      &lt;th&gt;Value&lt;/th&gt;
    &lt;/tr&gt;
  &lt;/thead&gt;
  &lt;tbody&gt;
    &lt;tr ng-repeat="punto in puntos" ng-if="punto.renderedValue == true"&gt;
        &lt;td&gt;{{punto.name}}&lt;/td&gt;
        &lt;td style="color: red"&gt;{{punto.renderedValue}}&lt;/td&gt;
    &lt;/tr&gt;
    
  &lt;/tbody&gt;
&lt;/table&gt;
</code></pre>
<p dir="auto">This work ok, but not in realtime, i changed the data point but the table is not updating with a new row, only when manualy reload the page. Also when i change back the data point does not remove the row :(. again only reloading the page. works.</p>
<p dir="auto">Thanks.</p>
]]></description><link>https://forum.mango-os.com/post/26782</link><guid isPermaLink="true">https://forum.mango-os.com/post/26782</guid><dc:creator><![CDATA[Cristian Herrera]]></dc:creator><pubDate>Thu, 08 Jul 2021 02:58:10 GMT</pubDate></item><item><title><![CDATA[Reply to Alarm list and update on Wed, 07 Jul 2021 18:50:18 GMT]]></title><description><![CDATA[<p dir="auto">i forgot to mention, datapoints logging is set in "when point value changes", i want show the table with the current status of the system showing only the datapoint alarmed, and show a empty table when the system its ok.</p>
<p dir="auto">Another small question, how i can get the value of a list of datapoints, i have to use ma-point-query with ma-point-value ? there is a way to have a list of datapoints and made a ng-repeat="point in points" then point.value?</p>
<p dir="auto">Thanks a lot in advance.</p>
]]></description><link>https://forum.mango-os.com/post/26781</link><guid isPermaLink="true">https://forum.mango-os.com/post/26781</guid><dc:creator><![CDATA[Cristian Herrera]]></dc:creator><pubDate>Wed, 07 Jul 2021 18:50:18 GMT</pubDate></item></channel></rss>