<?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[How to force old not calculated metadata to be calculated ?]]></title><description><![CDATA[<p dir="auto">Hi, I've set some metadata datapoints based on other datapoints, but new metadata is only applied for new datapoints values ...</p>
<p dir="auto">How can I force mango to recalculate all allready past existing points medatada ?</p>
]]></description><link>https://forum.mango-os.com/topic/1397/how-to-force-old-not-calculated-metadata-to-be-calculated</link><generator>RSS for Node</generator><lastBuildDate>Sat, 11 Apr 2026 14:59:58 GMT</lastBuildDate><atom:link href="https://forum.mango-os.com/topic/1397.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 19 Sep 2013 19:57:15 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to How to force old not calculated metadata to be calculated ? on Fri, 20 Sep 2013 11:46:13 GMT]]></title><description><![CDATA[<p dir="auto">It's good workaround. Thankyou</p>
]]></description><link>https://forum.mango-os.com/post/7953</link><guid isPermaLink="true">https://forum.mango-os.com/post/7953</guid><dc:creator><![CDATA[bitelxux]]></dc:creator><pubDate>Fri, 20 Sep 2013 11:46:13 GMT</pubDate></item><item><title><![CDATA[Reply to How to force old not calculated metadata to be calculated ? on Thu, 19 Sep 2013 22:30:28 GMT]]></title><description><![CDATA[<p dir="auto">You could theoretically perform this task with a scripting datasource. Say you have a need to generate the last 1000 points...</p>
<ol>
<li>Add all the context points to your script as you would your meta point.</li>
<li>Write a big for loop, iterate i :</li>
</ol>
<pre><code>var dt = new Date();

for(var i = 1; i &lt; 1000; ++i) {
pnt1 = point1.prev(MINUTE, i).firstValue;
...
pntN = pointN.prev(MINUTE, i).firstValue;
result = //do work on the pnt values
meta.set(result, dt.getTime()-(i*60*1000));
}
</code></pre>
<p dir="auto">and you could just have it get generated in one run of the script. Not pretty, but it should work.</p>
<p dir="auto">Note: This is for numeric points. Binaries and multistates would have a different solution.</p>
]]></description><link>https://forum.mango-os.com/post/7949</link><guid isPermaLink="true">https://forum.mango-os.com/post/7949</guid><dc:creator><![CDATA[phildunlap]]></dc:creator><pubDate>Thu, 19 Sep 2013 22:30:28 GMT</pubDate></item><item><title><![CDATA[Reply to How to force old not calculated metadata to be calculated ? on Thu, 19 Sep 2013 20:43:42 GMT]]></title><description><![CDATA[<p dir="auto">OK. Im' afraid ScadaBR fork doesn't have this feature :-(</p>
<p dir="auto">Thank you !</p>
]]></description><link>https://forum.mango-os.com/post/7944</link><guid isPermaLink="true">https://forum.mango-os.com/post/7944</guid><dc:creator><![CDATA[bitelxux]]></dc:creator><pubDate>Thu, 19 Sep 2013 20:43:42 GMT</pubDate></item><item><title><![CDATA[Reply to How to force old not calculated metadata to be calculated ? on Thu, 19 Sep 2013 20:37:55 GMT]]></title><description><![CDATA[<p dir="auto">In line with the data point on its data source page. The table should be:<br />
Name --&lt; Type --&gt; Enable/Disable Button --&gt; Generate History Button --&gt; Edit Point Button</p>
]]></description><link>https://forum.mango-os.com/post/7943</link><guid isPermaLink="true">https://forum.mango-os.com/post/7943</guid><dc:creator><![CDATA[phildunlap]]></dc:creator><pubDate>Thu, 19 Sep 2013 20:37:55 GMT</pubDate></item><item><title><![CDATA[Reply to How to force old not calculated metadata to be calculated ? on Thu, 19 Sep 2013 20:34:57 GMT]]></title><description><![CDATA[<p dir="auto">:-( can't find that button. Could you please tell me where exactly is suposed to be ?</p>
]]></description><link>https://forum.mango-os.com/post/7942</link><guid isPermaLink="true">https://forum.mango-os.com/post/7942</guid><dc:creator><![CDATA[bitelxux]]></dc:creator><pubDate>Thu, 19 Sep 2013 20:34:57 GMT</pubDate></item><item><title><![CDATA[Reply to How to force old not calculated metadata to be calculated ? on Thu, 19 Sep 2013 20:26:00 GMT]]></title><description><![CDATA[<p dir="auto">There is a generate history button on the metapoint in the datasource page. Unfortunately, this button has some known issues associated with it, and may not work quite as expected.</p>
<p dir="auto">I believe the best results with that button can be achieved by changing the meta point's update/logging information to be 1. run on context update and 2. log on change.</p>
]]></description><link>https://forum.mango-os.com/post/7941</link><guid isPermaLink="true">https://forum.mango-os.com/post/7941</guid><dc:creator><![CDATA[phildunlap]]></dc:creator><pubDate>Thu, 19 Sep 2013 20:26:00 GMT</pubDate></item></channel></rss>