<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Recent changes to BlocklyScripts</title><link>https://sourceforge.net/p/m2mlabs/wiki/BlocklyScripts/</link><description>Recent changes to BlocklyScripts</description><atom:link href="https://sourceforge.net/p/m2mlabs/wiki/BlocklyScripts/feed" rel="self"/><language>en</language><lastBuildDate>Sun, 29 Oct 2017 20:29:22 -0000</lastBuildDate><atom:link href="https://sourceforge.net/p/m2mlabs/wiki/BlocklyScripts/feed" rel="self" type="application/rss+xml"/><item><title>BlocklyScripts modified by Jim</title><link>https://sourceforge.net/p/m2mlabs/wiki/BlocklyScripts/</link><description>&lt;div class="markdown_content"&gt;&lt;pre&gt;--- v11
+++ v12
@@ -9,12 +9,12 @@

 * get actual sensor name: returns the name of the sensor being processed in the actual call of the script.
 * get actual attribute name: returns the name of the attribute being processed in the actual call of the script.
-* get received value of attribute &amp;lt;name&amp;gt;: returns the last value of the given attribute of the device being processed in the actual call of the script.
-* get received datapoint of attribute &amp;lt;name&amp;gt;: returns the last datapoint (timestamp, value) of the given attribute of the device being processed in the actual call of the script.
+* get received value of attribute &amp;lt;name&amp;gt;: returns the value of the given attribute of the device being processed in the actual call of the script.
+* get received datapoint of attribute &amp;lt;name&amp;gt;: returns the datapoint (timestamp, value) of the given attribute of the device being processed in the actual call of the script.
 * get received datapoint list of attribute &amp;lt;name&amp;gt;: returns all datapoints (timestamp, value) of the given attribute of the device being processed in the actual call of the script.
-* get value of &amp;lt;device&amp;gt; &amp;lt;sensor&amp;gt; &amp;lt;attribute&amp;gt;: returns the value of the given device, sensor and attribute. This allows to read values of any device.
-* get datapoint of &amp;lt;device&amp;gt; &amp;lt;sensor&amp;gt; &amp;lt;attribute&amp;gt;: returns the datapoint (timestamp, value) of the given device, sensor and attribute. This allows to read values of any device.
-* get datapoint list of &amp;lt;device&amp;gt; &amp;lt;sensor&amp;gt; &amp;lt;attribute&amp;gt; &amp;lt;max number="" of="" values=""&amp;gt;: returns all datapoints (timestamp, value) of the given device, sensor and attribute up to the defined max number of values in descending order of timestamps. This allows to read values of any device.
+* get value of &amp;lt;device&amp;gt; &amp;lt;sensor&amp;gt; &amp;lt;attribute&amp;gt;: returns the last stored value of the given device, sensor and attribute. This allows to read values of any device.
+* get datapoint of &amp;lt;device&amp;gt; &amp;lt;sensor&amp;gt; &amp;lt;attribute&amp;gt;: returns the last stored datapoint (timestamp, value) of the given device, sensor and attribute. This allows to read values of any device.
+* get datapoint list of &amp;lt;device&amp;gt; &amp;lt;sensor&amp;gt; &amp;lt;attribute&amp;gt; &amp;lt;max number="" of="" values=""&amp;gt;: returns all stored datapoints (timestamp, value) of the given device, sensor and attribute up to the defined max number of values in descending order of timestamps. This allows to read values of any device.
 * get value of datapoint: returns the value of a datapoint.
 * get timestamp of datapoint: returns the timestamp of a datapoint as epoch.
 * get &amp;lt;device&amp;gt; &amp;lt;parameter&amp;gt;: returns a configuration or status parameter of a device
&lt;/pre&gt;
&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Jim</dc:creator><pubDate>Sun, 29 Oct 2017 20:29:22 -0000</pubDate><guid>https://sourceforge.net3e48c65af5e8c7da3c7f912519a4e967bd43ecad</guid></item><item><title>BlocklyScripts modified by Jim</title><link>https://sourceforge.net/p/m2mlabs/wiki/BlocklyScripts/</link><description>&lt;div class="markdown_content"&gt;&lt;pre&gt;--- v10
+++ v11
@@ -1,6 +1,6 @@
 #### Blockly Language

-Blockly (https://developers.google.com/blockly) is a visual prrgramming language integrated in the M2MLabs Mainspring server to write scripts that are triggered when a new sensor value is received.
+Blockly ([https://developers.google.com/blockly](https://developers.google.com/blockly)) is a visual prrgramming language integrated in the M2MLabs Mainspring server to write scripts that are triggered when a new sensor value is received.

 In addition to the standard Blockly blocks a set of Mainspring specific blocks allow interaction with the functionality of Mainspring to process sensor values and perform actions.

&lt;/pre&gt;
&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Jim</dc:creator><pubDate>Sun, 29 Oct 2017 20:05:00 -0000</pubDate><guid>https://sourceforge.net8a6847a9b2d3a8a24519ebf8c386c8f5ae1b6e2c</guid></item><item><title>BlocklyScripts modified by Jim</title><link>https://sourceforge.net/p/m2mlabs/wiki/BlocklyScripts/</link><description>&lt;div class="markdown_content"&gt;&lt;pre&gt;--- v9
+++ v10
@@ -30,3 +30,5 @@
 * send email &amp;lt;recipient&amp;gt; &amp;lt;subject&amp;gt; &amp;lt;content&amp;gt; &amp;lt;from&amp;gt; &amp;lt;smtphost&amp;gt; &amp;lt;smtpport&amp;gt; &amp;lt;username&amp;gt; &amp;lt;password&amp;gt;: sends an email.

 ##### Example Script
+The script checks the value of a received temperature and switches the cooling on if the temperature is above the defined threshold.
+![Example](http://m2mlabs.com/sites/default/files/pictures/Blockly3.jpg "Example")
&lt;/pre&gt;
&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Jim</dc:creator><pubDate>Sun, 29 Oct 2017 20:01:39 -0000</pubDate><guid>https://sourceforge.net38f554a4ebf2b6846bc08501cf81413896e3aadc</guid></item><item><title>BlocklyScripts modified by Jim</title><link>https://sourceforge.net/p/m2mlabs/wiki/BlocklyScripts/</link><description>&lt;div class="markdown_content"&gt;&lt;pre&gt;--- v8
+++ v9
@@ -1,6 +1,6 @@
 #### Blockly Language

-Blockly (https://developers.google.com/blockly) is a visual prrgramming tools integrated in the M2MLabs Mainspring server to write scripts that are triggered when a new sensor value is received.
+Blockly (https://developers.google.com/blockly) is a visual prrgramming language integrated in the M2MLabs Mainspring server to write scripts that are triggered when a new sensor value is received.

 In addition to the standard Blockly blocks a set of Mainspring specific blocks allow interaction with the functionality of Mainspring to process sensor values and perform actions.

@@ -28,3 +28,5 @@
 * send command &amp;lt;actor&amp;gt; &amp;lt;parameter&amp;gt; &amp;lt;value&amp;gt;: sends a command to the actor.
 * send http &amp;lt;url&amp;gt; &amp;lt;content&amp;gt; &amp;lt;content type=""&amp;gt;: posts a HTTP message to the url with content as payload and content type as http content type (e.g. application/json).
 * send email &amp;lt;recipient&amp;gt; &amp;lt;subject&amp;gt; &amp;lt;content&amp;gt; &amp;lt;from&amp;gt; &amp;lt;smtphost&amp;gt; &amp;lt;smtpport&amp;gt; &amp;lt;username&amp;gt; &amp;lt;password&amp;gt;: sends an email.
+
+##### Example Script
&lt;/pre&gt;
&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Jim</dc:creator><pubDate>Sun, 29 Oct 2017 19:50:37 -0000</pubDate><guid>https://sourceforge.net342aa23f3b7a096cf48cd03bdf6a0cc3bce5a13d</guid></item><item><title>BlocklyScripts modified by Jim</title><link>https://sourceforge.net/p/m2mlabs/wiki/BlocklyScripts/</link><description>&lt;div class="markdown_content"&gt;&lt;pre&gt;--- v7
+++ v8
@@ -20,8 +20,7 @@
 * get &amp;lt;device&amp;gt; &amp;lt;parameter&amp;gt;: returns a configuration or status parameter of a device

 ##### Actions Blocks
-
-!Actions Blocks](http://m2mlabs.com/sites/default/files/pictures/Blockly2.jpg "Actions Blocks")
+![Actions Blocks](http://m2mlabs.com/sites/default/files/pictures/Blockly2.jpg "Actions Blocks")

 * write: writes a value to the log file.
 * set &amp;lt;device&amp;gt; &amp;lt;parameter&amp;gt; &amp;lt;value&amp;gt;: set a  configuration or status parameter to the defined value.
&lt;/pre&gt;
&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Jim</dc:creator><pubDate>Sun, 29 Oct 2017 19:47:30 -0000</pubDate><guid>https://sourceforge.net7cc71167f94a0aa966f0114dfd0151fd581fb260</guid></item><item><title>BlocklyScripts modified by Jim</title><link>https://sourceforge.net/p/m2mlabs/wiki/BlocklyScripts/</link><description>&lt;div class="markdown_content"&gt;&lt;pre&gt;--- v6
+++ v7
@@ -20,6 +20,7 @@
 * get &amp;lt;device&amp;gt; &amp;lt;parameter&amp;gt;: returns a configuration or status parameter of a device

 ##### Actions Blocks
+
 !Actions Blocks](http://m2mlabs.com/sites/default/files/pictures/Blockly2.jpg "Actions Blocks")

 * write: writes a value to the log file.
&lt;/pre&gt;
&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Jim</dc:creator><pubDate>Sun, 29 Oct 2017 19:46:45 -0000</pubDate><guid>https://sourceforge.net87a80e7dbbbf9518d967a3e151ac1e14b5d48d3f</guid></item><item><title>BlocklyScripts modified by Jim</title><link>https://sourceforge.net/p/m2mlabs/wiki/BlocklyScripts/</link><description>&lt;div class="markdown_content"&gt;&lt;pre&gt;--- v5
+++ v6
@@ -4,7 +4,27 @@

 In addition to the standard Blockly blocks a set of Mainspring specific blocks allow interaction with the functionality of Mainspring to process sensor values and perform actions.

-##### Sensor Blocks
-![Sensor Blocks](http://m2mlabs.com/sites/default/files/pictures/Blockly1.jpg "Sensor Blocks")
+##### Sensordata Blocks
+![Sensordata Blocks](http://m2mlabs.com/sites/default/files/pictures/Blockly1.jpg "Sensordata Blocks")

+* get actual sensor name: returns the name of the sensor being processed in the actual call of the script.
+* get actual attribute name: returns the name of the attribute being processed in the actual call of the script.
+* get received value of attribute &amp;lt;name&amp;gt;: returns the last value of the given attribute of the device being processed in the actual call of the script.
+* get received datapoint of attribute &amp;lt;name&amp;gt;: returns the last datapoint (timestamp, value) of the given attribute of the device being processed in the actual call of the script.
+* get received datapoint list of attribute &amp;lt;name&amp;gt;: returns all datapoints (timestamp, value) of the given attribute of the device being processed in the actual call of the script.
+* get value of &amp;lt;device&amp;gt; &amp;lt;sensor&amp;gt; &amp;lt;attribute&amp;gt;: returns the value of the given device, sensor and attribute. This allows to read values of any device.
+* get datapoint of &amp;lt;device&amp;gt; &amp;lt;sensor&amp;gt; &amp;lt;attribute&amp;gt;: returns the datapoint (timestamp, value) of the given device, sensor and attribute. This allows to read values of any device.
+* get datapoint list of &amp;lt;device&amp;gt; &amp;lt;sensor&amp;gt; &amp;lt;attribute&amp;gt; &amp;lt;max number="" of="" values=""&amp;gt;: returns all datapoints (timestamp, value) of the given device, sensor and attribute up to the defined max number of values in descending order of timestamps. This allows to read values of any device.
+* get value of datapoint: returns the value of a datapoint.
+* get timestamp of datapoint: returns the timestamp of a datapoint as epoch.
+* get &amp;lt;device&amp;gt; &amp;lt;parameter&amp;gt;: returns a configuration or status parameter of a device

+##### Actions Blocks
+!Actions Blocks](http://m2mlabs.com/sites/default/files/pictures/Blockly2.jpg "Actions Blocks")
+
+* write: writes a value to the log file.
+* set &amp;lt;device&amp;gt; &amp;lt;parameter&amp;gt; &amp;lt;value&amp;gt;: set a  configuration or status parameter to the defined value.
+* add to &amp;lt;device&amp;gt; &amp;lt;sensor&amp;gt; &amp;lt;attribute&amp;gt; &amp;lt;value&amp;gt;: add a value to device, sensor and attribute.
+* send command &amp;lt;actor&amp;gt; &amp;lt;parameter&amp;gt; &amp;lt;value&amp;gt;: sends a command to the actor.
+* send http &amp;lt;url&amp;gt; &amp;lt;content&amp;gt; &amp;lt;content type=""&amp;gt;: posts a HTTP message to the url with content as payload and content type as http content type (e.g. application/json).
+* send email &amp;lt;recipient&amp;gt; &amp;lt;subject&amp;gt; &amp;lt;content&amp;gt; &amp;lt;from&amp;gt; &amp;lt;smtphost&amp;gt; &amp;lt;smtpport&amp;gt; &amp;lt;username&amp;gt; &amp;lt;password&amp;gt;: sends an email.
&lt;/pre&gt;
&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Jim</dc:creator><pubDate>Sun, 29 Oct 2017 19:45:59 -0000</pubDate><guid>https://sourceforge.net4b28be1def7039cb420eea6e277acd4a208c7f60</guid></item><item><title>BlocklyScripts modified by Jim</title><link>https://sourceforge.net/p/m2mlabs/wiki/BlocklyScripts/</link><description>&lt;div class="markdown_content"&gt;&lt;pre&gt;--- v4
+++ v5
@@ -5,6 +5,6 @@
 In addition to the standard Blockly blocks a set of Mainspring specific blocks allow interaction with the functionality of Mainspring to process sensor values and perform actions.

 ##### Sensor Blocks
-![Sensor Blocks](http://m2mlabs.com/sites/default/files/picturesBlockly1.jpg "Sensor Blocks")
+![Sensor Blocks](http://m2mlabs.com/sites/default/files/pictures/Blockly1.jpg "Sensor Blocks")

&lt;/pre&gt;
&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Jim</dc:creator><pubDate>Sun, 29 Oct 2017 18:40:40 -0000</pubDate><guid>https://sourceforge.net8ec765f87a660de2c64cc2c3a7c0fae68e38cee1</guid></item><item><title>BlocklyScripts modified by Jim</title><link>https://sourceforge.net/p/m2mlabs/wiki/BlocklyScripts/</link><description>&lt;div class="markdown_content"&gt;&lt;pre&gt;--- v3
+++ v4
@@ -4,4 +4,7 @@

 In addition to the standard Blockly blocks a set of Mainspring specific blocks allow interaction with the functionality of Mainspring to process sensor values and perform actions.

+##### Sensor Blocks
+![Sensor Blocks](http://m2mlabs.com/sites/default/files/picturesBlockly1.jpg "Sensor Blocks")

+
&lt;/pre&gt;
&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Jim</dc:creator><pubDate>Sun, 29 Oct 2017 18:39:30 -0000</pubDate><guid>https://sourceforge.net55c528b9e1ad693e1438a6f7dd2658eed0df5465</guid></item><item><title>BlocklyScripts modified by Jim</title><link>https://sourceforge.net/p/m2mlabs/wiki/BlocklyScripts/</link><description>&lt;div class="markdown_content"&gt;&lt;pre&gt;--- v2
+++ v3
@@ -4,7 +4,4 @@

 In addition to the standard Blockly blocks a set of Mainspring specific blocks allow interaction with the functionality of Mainspring to process sensor values and perform actions.

-##### Sensor Blocks

-
-
&lt;/pre&gt;
&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Jim</dc:creator><pubDate>Sun, 29 Oct 2017 18:28:16 -0000</pubDate><guid>https://sourceforge.net7583110dd33d078c693845cf01280fe13f348715</guid></item></channel></rss>