<?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[Script context points as enumerable]]></title><description><![CDATA[<p dir="auto">Hi,<br />
I was wondering if there is any way to iterate over all context points in a meta datapoint script, without spelling them out?<br />
I want to write a generic script that is oblivious to them but can still access their values.<br />
E.g. dumping all their values to an error log if something goes wrong.<br />
Thanks</p>
]]></description><link>https://forum.mango-os.com/topic/5288/script-context-points-as-enumerable</link><generator>RSS for Node</generator><lastBuildDate>Wed, 10 Jun 2026 00:48:53 GMT</lastBuildDate><atom:link href="https://forum.mango-os.com/topic/5288.rss" rel="self" type="application/rss+xml"/><pubDate>Sun, 29 Aug 2021 23:15:00 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Script context points as enumerable on Thu, 02 Sep 2021 02:38:30 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/jared-wiltshire" aria-label="Profile: jared-wiltshire">@<bdi>jared-wiltshire</bdi></a> perfect, thanks!</p>
]]></description><link>https://forum.mango-os.com/post/26976</link><guid isPermaLink="true">https://forum.mango-os.com/post/26976</guid><dc:creator><![CDATA[till]]></dc:creator><pubDate>Thu, 02 Sep 2021 02:38:30 GMT</pubDate></item><item><title><![CDATA[Reply to Script context points as enumerable on Wed, 01 Sep 2021 19:27:01 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/till" aria-label="Profile: till">@<bdi>till</bdi></a> try this -</p>
<pre><code>for (var variableName in CONTEXT_POINTS) {
    print(this[variableName]);
}
</code></pre>
]]></description><link>https://forum.mango-os.com/post/26975</link><guid isPermaLink="true">https://forum.mango-os.com/post/26975</guid><dc:creator><![CDATA[Jared Wiltshire]]></dc:creator><pubDate>Wed, 01 Sep 2021 19:27:01 GMT</pubDate></item><item><title><![CDATA[Reply to Script context points as enumerable on Wed, 01 Sep 2021 14:45:14 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/till" aria-label="Profile: till">@<bdi>till</bdi></a> I am not 100% sure, but is this the type of information you need:</p>
<p dir="auto"><a href="http://docs-v4.mango-os.com/about-mango-java-script" rel="nofollow ugc">http://docs-v4.mango-os.com/about-mango-java-script</a></p>
<p dir="auto">This is the main documentation site: <a href="http://docs-v4.mango-os.com/" rel="nofollow ugc">http://docs-v4.mango-os.com/</a></p>
]]></description><link>https://forum.mango-os.com/post/26974</link><guid isPermaLink="true">https://forum.mango-os.com/post/26974</guid><dc:creator><![CDATA[dschaible]]></dc:creator><pubDate>Wed, 01 Sep 2021 14:45:14 GMT</pubDate></item><item><title><![CDATA[Reply to Script context points as enumerable on Tue, 31 Aug 2021 04:12:25 GMT]]></title><description><![CDATA[<p dir="auto">So I found this on CONTEXT_POINTS</p>
<pre><code>CONTEXT_POINTS
CONTEXT_POINTS is a variable declared in all scripting environments. It is a map of variable names to context point runtimes.
</code></pre>
<p dir="auto">Is there more documentation somewhere?</p>
<p dir="auto">.</p>
<p dir="auto">Your example gives me a list of elements like this:</p>
<pre><code>DataPointRT(id=1, name=MyPoint)
DataPointRT(id=2, name=MyOtherPoint)
</code></pre>
<p dir="auto">From there, how do I get to the full datapoint details, like value, last value, timestamp etc?</p>
<p dir="auto">Where do I find out more about context point <em>runtimes</em></p>
<p dir="auto">Thanks</p>
]]></description><link>https://forum.mango-os.com/post/26972</link><guid isPermaLink="true">https://forum.mango-os.com/post/26972</guid><dc:creator><![CDATA[till]]></dc:creator><pubDate>Tue, 31 Aug 2021 04:12:25 GMT</pubDate></item><item><title><![CDATA[Reply to Script context points as enumerable on Tue, 31 Aug 2021 03:20:12 GMT]]></title><description><![CDATA[<p dir="auto">Sweet, thanks!</p>
]]></description><link>https://forum.mango-os.com/post/26971</link><guid isPermaLink="true">https://forum.mango-os.com/post/26971</guid><dc:creator><![CDATA[till]]></dc:creator><pubDate>Tue, 31 Aug 2021 03:20:12 GMT</pubDate></item><item><title><![CDATA[Reply to Script context points as enumerable on Mon, 30 Aug 2021 15:36:28 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/till" aria-label="Profile: till">@<bdi>till</bdi></a> yes, have a look at the meta data source help. This is how you iterate over. Be aware that the meta point itself is contained in CONTEXT_POINTS.</p>
<pre><code>for (var variableName in CONTEXT_POINTS) {
    print(CONTEXT_POINTS[variableName]);
}
</code></pre>
]]></description><link>https://forum.mango-os.com/post/26969</link><guid isPermaLink="true">https://forum.mango-os.com/post/26969</guid><dc:creator><![CDATA[Jared Wiltshire]]></dc:creator><pubDate>Mon, 30 Aug 2021 15:36:28 GMT</pubDate></item></channel></rss>