<?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[Setting values with specific timestamps]]></title><description><![CDATA[<p dir="auto">Hey guys, I'm sure this has been asked somewhere in here before. Is there a way I can create a dashboard page which would allow me to set the value of a specified point but also pass a timestamp? We have several parameters which come from the electrical company which change every few months and then need to applied to calculations. I need to be able to allow end users to open a dashboard, select the point and basically specify something like May 2019. The system would take that value and apply it to the point as of May 1 2019 00:00:00.000</p>
]]></description><link>https://forum.mango-os.com/topic/4195/setting-values-with-specific-timestamps</link><generator>RSS for Node</generator><lastBuildDate>Wed, 16 Sep 2026 15:42:31 GMT</lastBuildDate><atom:link href="https://forum.mango-os.com/topic/4195.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 06 May 2019 19:57:02 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Setting values with specific timestamps on Tue, 07 May 2019 19:56:16 GMT]]></title><description><![CDATA[<p dir="auto">Hi psysak,</p>
<p dir="auto">There are a few ways you could go about it,</p>
<ol>
<li>Build a UI widget that POSTs to the /rest/v2/point-values endpoint.</li>
</ol>
<pre><code>[
  {
     "xid": "DP_Num_Example",
     "timestamp": 1557250438657,
     "dataType": "NUMERIC",
     "value": 123.456
  }
]
</code></pre>
<ol start="2">
<li>Encode the date and rate information into one or more points, then trigger a scripting data source which "Saves historic" to <code>.set(value, timestamp)</code> to the appropriate points. I may set an alphanumeric to <code>52.13~1557250438657</code> which is a context point that updates the context of a script which simply splits the string on <code>~</code> and turns it back to numbers.</li>
</ol>
<p dir="auto">Neither of these methods would cause point events to run currently (no websocket notification of the new value, , but the value would be available for recalculating meta point histories, for instance.</p>
]]></description><link>https://forum.mango-os.com/post/22039</link><guid isPermaLink="true">https://forum.mango-os.com/post/22039</guid><dc:creator><![CDATA[phildunlap]]></dc:creator><pubDate>Tue, 07 May 2019 19:56:16 GMT</pubDate></item><item><title><![CDATA[Reply to Setting values with specific timestamps on Tue, 07 May 2019 08:27:56 GMT]]></title><description><![CDATA[<p dir="auto">What about using scheduled events to trigger a script to change a data points value?<br />
Surely there is some set pattern to the dates that the value should change?<br />
You could still have a dashboard where they set a virtual point that will be used in their calculation.</p>
]]></description><link>https://forum.mango-os.com/post/22038</link><guid isPermaLink="true">https://forum.mango-os.com/post/22038</guid><dc:creator><![CDATA[CraigWeb]]></dc:creator><pubDate>Tue, 07 May 2019 08:27:56 GMT</pubDate></item></channel></rss>