diff --git a/function/datagenerator/README.md b/function/datagenerator/README.md index 6c71d994..617b4aa5 100644 --- a/function/datagenerator/README.md +++ b/function/datagenerator/README.md @@ -7,16 +7,16 @@ data values from a template. Useful for building test-cases. Install ------- -Run the following command in your Node-RED user directory - typically `~/.node-red` +Either use the Manage Palette option in the Node-RED Editor menu, or run the following command in your Node-RED user directory - typically `~/.node-red` - npm install node-red-node-data-generator + npm i node-red-node-data-generator Usage ----- Creates dummy data based on a handlebars-style template. -Uses the dummy-json +Uses the dummy-json module, which can create rich sets of dummy data for testing or other uses. It will build a **string**, or a **parsed JSON object**, creating values based diff --git a/function/datagenerator/datagenerator.html b/function/datagenerator/datagenerator.html index 133b8288..8ae22271 100644 --- a/function/datagenerator/datagenerator.html +++ b/function/datagenerator/datagenerator.html @@ -27,12 +27,12 @@ @@ -56,6 +56,7 @@ label: function() { return this.name || "data generator"; }, + outputLabels: function() { return this.syntax === "json" ? "object" : "string"; }, oneditprepare: function() { var that = this; if (!this.fieldType) { diff --git a/function/datagenerator/package.json b/function/datagenerator/package.json index fcf1e382..58498ae7 100644 --- a/function/datagenerator/package.json +++ b/function/datagenerator/package.json @@ -1,9 +1,9 @@ { "name" : "node-red-node-data-generator", - "version" : "0.0.5", + "version" : "0.1.0", "description" : "A Node-RED node to create a string of dummy data values from a template. Useful for test-cases.", "dependencies" : { - "dummy-json": "1.*" + "dummy-json": "^2.0.0" }, "repository" : { "type":"git", diff --git a/function/random/README.md b/function/random/README.md index 95ed1b0e..cb22f2b5 100644 --- a/function/random/README.md +++ b/function/random/README.md @@ -6,20 +6,20 @@ A Node-RED node that when trigger Install ------- -Run the following command in your Node-RED user directory - typically `~/.node-red` +Either use the Manage Palette option in the Node-RED Editor menu, or run the following command in your Node-RED user directory - typically `~/.node-red` + + npm i node-red-node-random - npm install node-red-node-random - Usage ----- A simple node to generate a random number when triggered. -If you return an integer it can include both the low and high values. +If set to return an integer it can include both the low and high values. `min <= n <= max` - so selecting 1 to 6 will return values 1,2,3,4,5 or 6. -If you return a floating point value it will be from the low value, up to, but +If set to return a floating point value it will be from the low value, up to, but not including the high value. `min <= n < max` - so selecting 1 to 6 will return values 1 <= n < 6 . -**Note:** This generates **numbers**. +**Note:** This returns numbers - objects of type **number**. diff --git a/function/random/package.json b/function/random/package.json index a4504f13..6e33498c 100644 --- a/function/random/package.json +++ b/function/random/package.json @@ -1,6 +1,6 @@ { "name" : "node-red-node-random", - "version" : "0.1.3", + "version" : "0.1.4", "description" : "A Node-RED node that when triggered generates a random number between two values.", "dependencies" : { }, diff --git a/function/random/random.html b/function/random/random.html index 5ae7592c..17ef9d87 100644 --- a/function/random/random.html +++ b/function/random/random.html @@ -27,9 +27,9 @@ diff --git a/parsers/smaz/70-smaz.html b/parsers/smaz/70-smaz.html index f2e46887..87ebd840 100644 --- a/parsers/smaz/70-smaz.html +++ b/parsers/smaz/70-smaz.html @@ -7,9 +7,11 @@ diff --git a/parsers/smaz/README.md b/parsers/smaz/README.md index 8c037e13..cb5fee29 100644 --- a/parsers/smaz/README.md +++ b/parsers/smaz/README.md @@ -6,7 +6,7 @@ A Node-RED node to pack and unpac Install ------- -Run the following command in your Node-RED user directory - typically `~/.node-red` +Either use the Manage Palette option in the Node-RED Editor menu, or run the following command in your Node-RED user directory - typically `~/.node-red` npm install node-red-node-smaz diff --git a/parsers/smaz/package.json b/parsers/smaz/package.json index d9dfb65e..5e83ddb2 100644 --- a/parsers/smaz/package.json +++ b/parsers/smaz/package.json @@ -1,6 +1,6 @@ { "name" : "node-red-node-smaz", - "version" : "0.0.1", + "version" : "0.0.2", "description" : "A Node-RED node to pack and unpack strings to smaz format", "dependencies" : { },