<?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[Server-Side Script to output a table with latest n values of a datapoint]]></title><description><![CDATA[<p dir="auto">Hello all,<br />
I'm trying to create a server-side script to retrieve latest n values for selected datapoint and present it in tabular shape.<br />
Is there a way to retrieve archived values from a server-side script?</p>
<p dir="auto">Thank you for your help.</p>
]]></description><link>https://forum.mango-os.com/topic/952/server-side-script-to-output-a-table-with-latest-n-values-of-a-datapoint</link><generator>RSS for Node</generator><lastBuildDate>Wed, 13 May 2026 19:10:56 GMT</lastBuildDate><atom:link href="https://forum.mango-os.com/topic/952.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 15 Feb 2012 22:22:37 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Server-Side Script to output a table with latest n values of a datapoint on Fri, 13 Apr 2012 13:09:03 GMT]]></title><description><![CDATA[<p dir="auto">Yes, I can use data for graph or table of values. I have method in Server - javascript (View) for last X values or values between time interval.<br />
Similar method I have in javascript (dataPoint). Now I can get last of values and calculate weightedd average, moving average for example.</p>
<p dir="auto">Ondrej</p>
]]></description><link>https://forum.mango-os.com/post/6289</link><guid isPermaLink="true">https://forum.mango-os.com/post/6289</guid><dc:creator><![CDATA[oja]]></dc:creator><pubDate>Fri, 13 Apr 2012 13:09:03 GMT</pubDate></item><item><title><![CDATA[Reply to Server-Side Script to output a table with latest n values of a datapoint on Fri, 13 Apr 2012 13:00:55 GMT]]></title><description><![CDATA[<p dir="auto">Great job!</p>
<p dir="auto">You use your mod in order to retrieve datas for the little graph on the right, don't you?</p>
]]></description><link>https://forum.mango-os.com/post/6288</link><guid isPermaLink="true">https://forum.mango-os.com/post/6288</guid><dc:creator><![CDATA[zumiani]]></dc:creator><pubDate>Fri, 13 Apr 2012 13:00:55 GMT</pubDate></item><item><title><![CDATA[Reply to Server-Side Script to output a table with latest n values of a datapoint on Thu, 12 Apr 2012 20:26:02 GMT]]></title><description><![CDATA[<p dir="auto">You can see some demo on <a href="http://kraken.alarex.net:8080/scada_orlik/public_view.htm?viewId=14" rel="nofollow ugc">http://kraken.alarex.net:8080/scada_orlik/public_view.htm?viewId=14</a></p>
<p dir="auto">This is combination serverscript, javascript and Flash.</p>
<p dir="auto">Code, which is used in View. "dataPoint.getLatestPointValues(10)" is own added method to ScadaBR.</p>
<pre><code>
var data_series =  dataPoint.getLatestPointValues(10);
var pole = "[";
for (i=0;i&lt;data_series.size();i++) {
     pole+=""+data_series.get(i).getDoubleValue();
     if (i!=data_series.size()-1) pole+=",";
}
pole+="]";

s = "&lt;script&gt;try {document.getElementById(\"AXLED\")._ax_setChartValues("+pole+");} catch (e){};&lt;/script&gt;";
return s;

</code></pre>
<p dir="auto">On <a href="http://kraken.alarex.net:8080/scada_orlik/public_view.htm?viewId=15" rel="nofollow ugc">http://kraken.alarex.net:8080/scada_orlik/public_view.htm?viewId=15</a><br />
is some test of JavaScript chart.</p>
<p dir="auto">ServerScript is non-standard, but can be strong in Mango, when some change be provided. I like it and I think, that this is best on Mango.</p>
<p dir="auto">Ondrej</p>
]]></description><link>https://forum.mango-os.com/post/6287</link><guid isPermaLink="true">https://forum.mango-os.com/post/6287</guid><dc:creator><![CDATA[oja]]></dc:creator><pubDate>Thu, 12 Apr 2012 20:26:02 GMT</pubDate></item><item><title><![CDATA[Reply to Server-Side Script to output a table with latest n values of a datapoint on Thu, 12 Apr 2012 20:13:15 GMT]]></title><description><![CDATA[<p dir="auto">Thank you Ondrej!<br />
I thought there is a server-side script to do dirty work but I haven't find anything.. :)<br />
I'll keep your contact in case I'll decide to rebuild mango too..<br />
Thank you for now</p>
]]></description><link>https://forum.mango-os.com/post/6286</link><guid isPermaLink="true">https://forum.mango-os.com/post/6286</guid><dc:creator><![CDATA[zumiani]]></dc:creator><pubDate>Thu, 12 Apr 2012 20:13:15 GMT</pubDate></item><item><title><![CDATA[Reply to Server-Side Script to output a table with latest n values of a datapoint on Thu, 12 Apr 2012 10:34:14 GMT]]></title><description><![CDATA[<p dir="auto">Hello,</p>
<p dir="auto">I solved this. But, I modified ScadaBR 0.9 (fork Mango). When you able to modify source code of Mango, I can send my code. It is a few classes.</p>
<p dir="auto">Ondrej</p>
]]></description><link>https://forum.mango-os.com/post/6285</link><guid isPermaLink="true">https://forum.mango-os.com/post/6285</guid><dc:creator><![CDATA[oja]]></dc:creator><pubDate>Thu, 12 Apr 2012 10:34:14 GMT</pubDate></item></channel></rss>