<?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[Charts for past 12 hours]]></title><description><![CDATA[<p dir="auto">Hi All,</p>
<p dir="auto">I want to create a chart which shows the value of multiple points over the past 12 hours. It is my understanding that I should use <code>ma-point-values</code> which will then return an array which I can pass into the chart, is that correct?</p>
<p dir="auto">I also want the chart to update every x minutes, what is the best way to do that? I think if I use <code>ma-point-values</code> every time the chart updates it will query for ALL 12 hours of data again, is that right, is there a better way? The <code>latest</code> attribute wouldn't work for us since some points might have 100 values over 12 hours, some might have 3000.</p>
<p dir="auto">Thanks!</p>
]]></description><link>https://forum.mango-os.com/topic/3384/charts-for-past-12-hours</link><generator>RSS for Node</generator><lastBuildDate>Sat, 16 May 2026 23:39:40 GMT</lastBuildDate><atom:link href="https://forum.mango-os.com/topic/3384.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 03 Apr 2018 20:49:08 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Charts for past 12 hours on Tue, 03 Apr 2018 21:57:02 GMT]]></title><description><![CDATA[<p dir="auto">if you use the ma-now directive and combine it with a maMoment filter for your point values,  you can then have it updating for the last 12 hours fixed.</p>
<pre><code>&lt;ma-now update-interval="1 SECONDS" output="timeNow"&gt;&lt;/ma-now&gt; &lt;!-- change to minutes or hours as required --&gt;
&lt;ma-point-values point="device" values="seasonal" from="timeNow | maMoment : subtract : '12 hours'" to="timeNow" rollup="ACCUMULATOR" rollup-interval="1 DAYS"&gt;&lt;/ma-point-values&gt;
</code></pre>
<p dir="auto">I believe it's something to that effect off the top of my head...</p>
]]></description><link>https://forum.mango-os.com/post/17896</link><guid isPermaLink="true">https://forum.mango-os.com/post/17896</guid><dc:creator><![CDATA[MattFox]]></dc:creator><pubDate>Tue, 03 Apr 2018 21:57:02 GMT</pubDate></item><item><title><![CDATA[Reply to Charts for past 12 hours on Tue, 03 Apr 2018 21:47:57 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/mattfox" aria-label="Profile: mattfox">@<bdi>mattfox</bdi></a> said in <a href="/post/17893">Charts for past 12 hours</a>:</p>
<blockquote>
<p dir="auto">If you don't want to average, make sure you set the rollup type to NONE. Alternatively, use the rollup-interval to set the interval duration between datapoints in the chart, note that changing from the live updating rate may mean you;ll need to average.</p>
</blockquote>
<p dir="auto">Thank you!</p>
<p dir="auto">It looks like <code>realtime</code> only works if you use <code>latest</code>, which we cannot use since it only retrieves the latest X point values, rather than the latest X hours of point values.</p>
<p dir="auto">I'll poke around some more, but thanks again for the detailed response!</p>
]]></description><link>https://forum.mango-os.com/post/17895</link><guid isPermaLink="true">https://forum.mango-os.com/post/17895</guid><dc:creator><![CDATA[rshah]]></dc:creator><pubDate>Tue, 03 Apr 2018 21:47:57 GMT</pubDate></item><item><title><![CDATA[Reply to Charts for past 12 hours on Tue, 03 Apr 2018 21:08:03 GMT]]></title><description><![CDATA[<p dir="auto">Correct, look under API Docs -&gt; Components -&gt; maSerialChart<br />
They have a complete guideline of what attribute tags to use to apply values. You will want the series-x-values where the x is the chart number.<br />
The Chart update rate is affected by the maPointValues components which you can also read about. The realtime="true" attribute will allow datapoints to update into the chart at the rate they change or are updated.<br />
If you don't want to average, make sure you set the rollup type to NONE. Alternatively, use the rollup-interval to set the interval duration between datapoints in the chart, note that changing from the live updating rate may mean you;ll need to average.</p>
]]></description><link>https://forum.mango-os.com/post/17893</link><guid isPermaLink="true">https://forum.mango-os.com/post/17893</guid><dc:creator><![CDATA[MattFox]]></dc:creator><pubDate>Tue, 03 Apr 2018 21:08:03 GMT</pubDate></item></channel></rss>