<?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[Scripting Data Source]]></title><description><![CDATA[<p dir="auto">I have created a new script data source with a new point.  I have the script scheduled to run every minute but can not get the point to update the value.  I am new to this system and am just trying to figure out the capabilities at this time.  I am monitoring my home with the system as a test site.  I do not get any errors in the script module as there is only 1 line of code where I am incrementing the point value by adding 1 to it.  When I view the point in the Watchers list, it never updates. I have set the point to an odd value from the watchers list but it doesn't change.  Is there any documentation available that may help me?</p>
]]></description><link>https://forum.mango-os.com/topic/1442/scripting-data-source</link><generator>RSS for Node</generator><lastBuildDate>Thu, 18 Jun 2026 14:16:49 GMT</lastBuildDate><atom:link href="https://forum.mango-os.com/topic/1442.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 05 Dec 2013 05:35:35 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Scripting Data Source on Thu, 05 Dec 2013 19:15:26 GMT]]></title><description><![CDATA[<p dir="auto">Joel,</p>
<p dir="auto">Thank You.  That puts me on the right track.</p>
<p dir="auto">Paul</p>
]]></description><link>https://forum.mango-os.com/post/8125</link><guid isPermaLink="true">https://forum.mango-os.com/post/8125</guid><dc:creator><![CDATA[pfs109]]></dc:creator><pubDate>Thu, 05 Dec 2013 19:15:26 GMT</pubDate></item><item><title><![CDATA[Reply to Scripting Data Source on Thu, 05 Dec 2013 07:17:17 GMT]]></title><description><![CDATA[<p dir="auto">Thanks for the export of the point and data source.</p>
<p dir="auto">You are not implementing your script correctly.  Please refer to the documentation for examples.</p>
<p dir="auto">For your scrip this will work: ```<br />
scriptVar.set(scriptVar.value + 1 );</p>
<pre><code>
Hope that helps,

Joel.</code></pre>
]]></description><link>https://forum.mango-os.com/post/8117</link><guid isPermaLink="true">https://forum.mango-os.com/post/8117</guid><dc:creator><![CDATA[JoelHaggar]]></dc:creator><pubDate>Thu, 05 Dec 2013 07:17:17 GMT</pubDate></item><item><title><![CDATA[Reply to Scripting Data Source on Thu, 05 Dec 2013 06:21:02 GMT]]></title><description><![CDATA[<p dir="auto">scriptVar = scriptVar + 1 ;</p>
<p dir="auto">Joel,</p>
<p dir="auto">Below is the export of the point.</p>
<p dir="auto">{<br />
"dataPoints":[<br />
{<br />
"loggingType":"ON_CHANGE",<br />
"intervalLoggingPeriodType":"MINUTES",<br />
"intervalLoggingType":"INSTANT",<br />
"purgeType":"YEARS",<br />
"pointLocator":{<br />
"dataType":"NUMERIC",<br />
"settable":true,<br />
"varName":"scriptVar"<br />
},<br />
"eventDetectors":[<br />
],<br />
"engineeringUnits":"No units",<br />
"plotType":"STEP",<br />
"chartColour":null,<br />
"chartRenderer":null,<br />
"dataSourceXid":"DS_240092",<br />
"defaultCacheSize":1,<br />
"deviceName":"testScript",<br />
"discardExtremeValues":false,<br />
"discardHighLimit":1.7976931348623157E308,<br />
"discardLowLimit":-1.7976931348623157E308,<br />
"enabled":true,<br />
"intervalLoggingPeriod":15,<br />
"name":"scriptVar",<br />
"purgeOverride":true,<br />
"purgePeriod":1,<br />
"textRenderer":{<br />
"type":"PLAIN",<br />
"suffix":""<br />
},<br />
"tolerance":0.0,<br />
"xid":"DP_472381"<br />
}<br />
]<br />
}</p>
<p dir="auto">Below is the export of the script data source.</p>
<p dir="auto">{<br />
"dataSources":[<br />
{<br />
"xid":"DS_240092",<br />
"type":"SCRIPTING",<br />
"alarmLevels":{<br />
"SCRIPT_ERROR":"URGENT",<br />
"DATA_TYPE_ERROR":"URGENT",<br />
"LOG_ERROR":"URGENT"<br />
},<br />
"purgeType":"YEARS",<br />
"context":[<br />
{<br />
"dataPointXid":"DP_320492",<br />
"varName":"p7"<br />
}<br />
],<br />
"logLevel":"DEBUG",<br />
"cronPattern":"0 * * * * ?",<br />
"executionDelaySeconds":0,<br />
"script":"scriptVar = scriptVar + 1 ;",<br />
"enabled":true,<br />
"name":"testScript",<br />
"purgeOverride":true,<br />
"purgePeriod":1<br />
}<br />
]<br />
}</p>
]]></description><link>https://forum.mango-os.com/post/8116</link><guid isPermaLink="true">https://forum.mango-os.com/post/8116</guid><dc:creator><![CDATA[pfs109]]></dc:creator><pubDate>Thu, 05 Dec 2013 06:21:02 GMT</pubDate></item><item><title><![CDATA[Reply to Scripting Data Source on Thu, 05 Dec 2013 06:05:15 GMT]]></title><description><![CDATA[<p dir="auto">Hi,</p>
<p dir="auto">Can you post the script you are using so we can test.  There is quite good documentation in the "?" pop up on the Scripting page but I'm guessing you have already found that.</p>
<p dir="auto">Thanks,</p>
<p dir="auto">Joel.</p>
]]></description><link>https://forum.mango-os.com/post/8114</link><guid isPermaLink="true">https://forum.mango-os.com/post/8114</guid><dc:creator><![CDATA[JoelHaggar]]></dc:creator><pubDate>Thu, 05 Dec 2013 06:05:15 GMT</pubDate></item></channel></rss>