-
Notifications
You must be signed in to change notification settings - Fork 52
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #130 from kazuhitoyokoi/master-updatesubflowtemplate
Output subflow information to README.md
- Loading branch information
Showing
7 changed files
with
106 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,66 @@ | ||
[{"id":"921a4b1d.07bb68","type":"subflow","name":"QRcode","info":"","category":"","in":[{"x":140,"y":120,"wires":[{"id":"e563f491.e443f8"}]}],"out":[{"x":380,"y":120,"wires":[{"id":"e563f491.e443f8","port":0}]}],"env":[],"meta":{"module":"node-red-contrib-qrcode","type":"qrcode","version":"0.1.0","author":"[email protected]","desc":"Node-RED node for converting string to QRcode","keywords":"Node-RED, subflow, QRcode","license":"Apache-2.0"},"color":"#87A980","icon":"font-awesome/fa-qrcode"},{"id":"e563f491.e443f8","type":"function","z":"921a4b1d.07bb68","name":"","func":"qrcode.toString(msg.payload, (err,str) => {\n if (err) {\n node.error(err);\n return;\n }\n node.send({payload: str});\n});","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[{"var":"qrcode","module":"qrcode"}],"x":260,"y":120,"wires":[[]]}] | ||
[ | ||
{ | ||
"id": "921a4b1d.07bb68", | ||
"type": "subflow", | ||
"name": "QRcode", | ||
"info": "This node generates a QR code from the text data in the `msg.payload`. The QR code in the outputted `msg.payload` is text data (not image data) described by text which consists of black rectangles and white spaces. Therefore, you can use the debug node to see the QR code.\n\n### Inputs\n- `payload` - _string_\n\n Text data which is converted to QR code\n\n### Outputs\n- `payload` - _string_\n\n Text data which contains QR code\n\n**Note**: This node uses the [node-qrcode](https://www.npmjs.com/package/qrcode) module to generate QR codes.", | ||
"category": "", | ||
"in": [ | ||
{ | ||
"x": 140, | ||
"y": 120, | ||
"wires": [ | ||
{ | ||
"id": "e563f491.e443f8" | ||
} | ||
] | ||
} | ||
], | ||
"out": [ | ||
{ | ||
"x": 380, | ||
"y": 120, | ||
"wires": [ | ||
{ | ||
"id": "e563f491.e443f8", | ||
"port": 0 | ||
} | ||
] | ||
} | ||
], | ||
"env": [], | ||
"meta": { | ||
"module": "node-red-contrib-qrcode", | ||
"type": "qrcode", | ||
"version": "0.1.0", | ||
"author": "[email protected]", | ||
"desc": "Node-RED node for converting string to QRcode", | ||
"keywords": "Node-RED, subflow, QRcode", | ||
"license": "Apache-2.0" | ||
}, | ||
"color": "#87A980", | ||
"icon": "font-awesome/fa-qrcode" | ||
}, | ||
{ | ||
"id": "e563f491.e443f8", | ||
"type": "function", | ||
"z": "921a4b1d.07bb68", | ||
"name": "", | ||
"func": "qrcode.toString(msg.payload, (err,str) => {\n if (err) {\n node.error(err);\n return;\n }\n node.send({payload: str});\n});", | ||
"outputs": 1, | ||
"noerr": 0, | ||
"initialize": "", | ||
"finalize": "", | ||
"libs": [ | ||
{ | ||
"var": "qrcode", | ||
"module": "qrcode" | ||
} | ||
], | ||
"x": 260, | ||
"y": 120, | ||
"wires": [ | ||
[] | ||
] | ||
} | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,21 @@ | ||
{ | ||
"name": "{{&projectName}}", | ||
"version": "{{&projectVersion}}", | ||
"description": "Node-RED node for {{&nodeName}}", | ||
"node-red": { | ||
"nodes": { | ||
"{{&nodeName}}": "subflow.js" | ||
} | ||
}, | ||
"keywords": [ | ||
{{#keywords}} | ||
"{{name}}"{{^last}}, {{/last}} | ||
{{/keywords}} | ||
], | ||
"dependencies": { | ||
"crypto-js": "4.1.1" | ||
"name": "{{&projectName}}", | ||
"version": "{{&projectVersion}}", | ||
"description": "Node-RED node for {{&nodeName}}", | ||
"keywords": [ | ||
{{#keywords}} | ||
"{{name}}"{{^last}}, {{/last}} | ||
{{/keywords}} | ||
], | ||
"node-red": { | ||
"nodes": { | ||
"{{&nodeName}}": "subflow.js" | ||
} | ||
}, | ||
{{#encoding}} | ||
"dependencies": { | ||
"crypto-js": "4.1.1" | ||
}, | ||
{{/encoding}} | ||
"license": "{{&licenseName}}" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters