<?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[pointValueBefore is not working and it was working so wondering what might be going on?]]></title><description><![CDATA[<p dir="auto">Wondering why  this code is producing the same values with data that has unique values. I use.pointValueBefore to get the previous value for comparison and the function seems to have stopped working.</p>
<p dir="auto"><img src="https://camo.nodebb.org/22eaa3aa6174f6aa8d8a0c89e961c62edb064846?url=https%3A%2F%2Fi.imgur.com%2F7dwUOZn.png" alt="0_1575736076094_a7b6b31f-9637-479a-ba91-cb09abbaf0ea-image.png" class=" img-fluid img-markdown" /></p>
<p dir="auto">print( KW.pointValueBefore(KW.time).value);<br />
print(KW.value);</p>
<p dir="auto">Success. result=Success, no new value, timestamp=12:53:54<br />
6620.0<br />
6620</p>
<p dir="auto">both produce the same result value so what is going on here?</p>
]]></description><link>https://forum.mango-os.com/topic/4616/pointvaluebefore-is-not-working-and-it-was-working-so-wondering-what-might-be-going-on</link><generator>RSS for Node</generator><lastBuildDate>Tue, 12 May 2026 16:20:48 GMT</lastBuildDate><atom:link href="https://forum.mango-os.com/topic/4616.rss" rel="self" type="application/rss+xml"/><pubDate>Sat, 07 Dec 2019 16:16:20 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to pointValueBefore is not working and it was working so wondering what might be going on? on Sun, 08 Dec 2019 01:48:36 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/phillip-weeks" aria-label="Profile: Phillip-Weeks">@<bdi>Phillip-Weeks</bdi></a> just a little more info would be helpful for me to pinpoint the Mango code in question.</p>
<ol>
<li>Are you using NoSQL?</li>
<li>What is this script from? Context point in a script?</li>
<li>Where is the script?  Meta point, Excel Report...</li>
</ol>
<p dir="auto">I did a quick check of our database queries and they are correct.  I can't see the data you are referring to in the image as that is only a window for times that are not in your test.</p>
<p dir="auto">Also its nice to put a code block around code as it makes it easier to read.</p>
<p dir="auto">Thanks.</p>
]]></description><link>https://forum.mango-os.com/post/24266</link><guid isPermaLink="true">https://forum.mango-os.com/post/24266</guid><dc:creator><![CDATA[terrypacker]]></dc:creator><pubDate>Sun, 08 Dec 2019 01:48:36 GMT</pubDate></item><item><title><![CDATA[Reply to pointValueBefore is not working and it was working so wondering what might be going on? on Sat, 07 Dec 2019 16:33:36 GMT]]></title><description><![CDATA[<p dir="auto">Further to that  I recursed one more level to successfully fetch the previous value.  So what is going on that I have to do it twice to see the increment. I understood this function would return the value directly before the time passed in?</p>
<p dir="auto">var KWBF1 = KW.pointValueBefore(KW.time);<br />
var KWBF2= KW.pointValueBefore(KWBF1.time);<br />
print(KWBF1.value);<br />
print(KWBF2.value);<br />
print(KW.pointValueBefore(KW.time).value);<br />
print(KW.value);</p>
<p dir="auto">Success. result=Success, no new value, timestamp=13:09:36<br />
6622.0<br />
6621.0<br />
6622.0<br />
6622</p>
]]></description><link>https://forum.mango-os.com/post/24265</link><guid isPermaLink="true">https://forum.mango-os.com/post/24265</guid><dc:creator><![CDATA[Phillip Weeks]]></dc:creator><pubDate>Sat, 07 Dec 2019 16:33:36 GMT</pubDate></item></channel></rss>