<?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[Calculating energy consumption for off-peak hour, peak hour, today, yesterday, current month and previous month]]></title><description><![CDATA[<p dir="auto">Hi there,</p>
<p dir="auto">I have data point that read energy consumption (kwH) from a power meter. I would like to know how can I divide the data into off-peak hour consumption and peak-hour consumption. In addition, I would also like to calculate the total consumption for today, yesterday, current month and previous month. I am still quite new with mango. Can somebody assist me on this matter or share any link that can be helpful for solving my problem.</p>
<p dir="auto">best regards<br />
Ramhuzaini</p>
]]></description><link>https://forum.mango-os.com/topic/5144/calculating-energy-consumption-for-off-peak-hour-peak-hour-today-yesterday-current-month-and-previous-month</link><generator>RSS for Node</generator><lastBuildDate>Tue, 15 Sep 2026 05:52:31 GMT</lastBuildDate><atom:link href="https://forum.mango-os.com/topic/5144.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 31 Mar 2021 15:26:22 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Calculating energy consumption for off-peak hour, peak hour, today, yesterday, current month and previous month on Sat, 12 Jun 2021 02:40:56 GMT]]></title><description><![CDATA[<pre><code>var pointValues = myContextPoint.getPointValuesBetween(fromTimestampInMilliseconds,toTimestampInMilliseconds);
print(pointValues);
</code></pre>
<p dir="auto">Fox</p>
]]></description><link>https://forum.mango-os.com/post/26700</link><guid isPermaLink="true">https://forum.mango-os.com/post/26700</guid><dc:creator><![CDATA[MattFox]]></dc:creator><pubDate>Sat, 12 Jun 2021 02:40:56 GMT</pubDate></item><item><title><![CDATA[Reply to Calculating energy consumption for off-peak hour, peak hour, today, yesterday, current month and previous month on Sat, 12 Jun 2021 01:18:50 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><br />
Hi, i'm new to Mango can you please give an example using pointValuesBetween(from, to) function for this case. I have intented to understand but without success.<br />
Thank you.</p>
]]></description><link>https://forum.mango-os.com/post/26699</link><guid isPermaLink="true">https://forum.mango-os.com/post/26699</guid><dc:creator><![CDATA[cooldjmc]]></dc:creator><pubDate>Sat, 12 Jun 2021 01:18:50 GMT</pubDate></item><item><title><![CDATA[Reply to Calculating energy consumption for off-peak hour, peak hour, today, yesterday, current month and previous month on Thu, 01 Apr 2021 02:19:19 GMT]]></title><description><![CDATA[<p dir="auto">Thanks <a class="plugin-mentions-user plugin-mentions-a" href="/user/mattfox" aria-label="Profile: mattfox">@<bdi>mattfox</bdi></a> for the information. I will try to explore the things you said.</p>
]]></description><link>https://forum.mango-os.com/post/26474</link><guid isPermaLink="true">https://forum.mango-os.com/post/26474</guid><dc:creator><![CDATA[ramhuzaini]]></dc:creator><pubDate>Thu, 01 Apr 2021 02:19:19 GMT</pubDate></item><item><title><![CDATA[Reply to Calculating energy consumption for off-peak hour, peak hour, today, yesterday, current month and previous month on Thu, 01 Apr 2021 02:15:57 GMT]]></title><description><![CDATA[<p dir="auto">Hi Gordoe,<br />
The energy consumption in accumulating form</p>
]]></description><link>https://forum.mango-os.com/post/26473</link><guid isPermaLink="true">https://forum.mango-os.com/post/26473</guid><dc:creator><![CDATA[ramhuzaini]]></dc:creator><pubDate>Thu, 01 Apr 2021 02:15:57 GMT</pubDate></item><item><title><![CDATA[Reply to Calculating energy consumption for off-peak hour, peak hour, today, yesterday, current month and previous month on Wed, 31 Mar 2021 18:53:12 GMT]]></title><description><![CDATA[<p dir="auto">Expanding on what Gordoe set, look at mango javascript under the help. You will want to pull by certain time frames. To make things easier, use the momentJS library stored in a global variable to help configure your times.<br />
You will want to look at the pointValuesBetween method. You can also perform rollup queries if desired.</p>
<p dir="auto">Fox</p>
]]></description><link>https://forum.mango-os.com/post/26465</link><guid isPermaLink="true">https://forum.mango-os.com/post/26465</guid><dc:creator><![CDATA[MattFox]]></dc:creator><pubDate>Wed, 31 Mar 2021 18:53:12 GMT</pubDate></item><item><title><![CDATA[Reply to Calculating energy consumption for off-peak hour, peak hour, today, yesterday, current month and previous month on Wed, 31 Mar 2021 18:38:35 GMT]]></title><description><![CDATA[<p dir="auto">Is your kWh energy consumption accumulating or is it interval data. You'll want to take a look at the Metadata Datasource.</p>
]]></description><link>https://forum.mango-os.com/post/26463</link><guid isPermaLink="true">https://forum.mango-os.com/post/26463</guid><dc:creator><![CDATA[Gordoe]]></dc:creator><pubDate>Wed, 31 Mar 2021 18:38:35 GMT</pubDate></item></channel></rss>