You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Node generator is a command line tool to generate Node-RED nodes based on various sources such as an OpenAPI (Swagger) document, a Node-RED Function node, or a Web Of Things Thing description.
@@ -15,16 +14,17 @@ You may need to run this with `sudo`, or from within an Administrator command sh
-> You can use swagger-petstore node on Node-RED flow editor.
@@ -56,41 +56,48 @@ You may need to run this with `sudo`, or from within an Administrator command sh
56
56
57
57
- In Node-RED flow editor, edit the function node and to the right of the 'name' option, click on the book icon and select 'Save to library'. Then fill in the 'Export as' with the file name (lower-case.js).
-> You can use Example Thing node on Node-RED flow editor.
88
82
83
+
### Example 5. Create an original node from SUBFLOW definition
84
+
85
+
- In Node-RED flow editor, create the SUBFLOW template with module properties filled. Here, we assume module name for the SUBFLOW template is node-red-contrib-qrcode.
86
+
- Export JSON definition of the SUBFLOW template from Export menu. We assume it is saved to a file named qrcode.json.
87
+
- node-red-nodegen qrcode.json
88
+
- cd ~/.node-red
89
+
- npm install *<path-to>*/node-red-contrib-qrcode
90
+
- node-red
91
+
92
+
-> You can use qrcode node on Node-RED flow editor.
-[How to use Node generator](https://github.com/node-red/node-red-nodegen/blob/0.1.1/docs/index.md#how-to-use-node-generator) ([Japanese](https://github.com/node-red/node-red-nodegen/blob/0.1.1/docs/index_ja.md#how-to-use-node-generator))
92
98
-[Generated files which node package contains](https://github.com/node-red/node-red-nodegen/blob/0.1.1/docs/index.md#generated-files-which-node-package-contains) ([Japanese](https://github.com/node-red/node-red-nodegen/blob/0.1.1/docs/index_ja.md#generated-files-which-node-package-contains))
93
99
-[How to create a node from OpenAPI document](https://github.com/node-red/node-red-nodegen/blob/0.1.1/docs/index.md#how-to-create-a-node-from-openapi-document) ([Japanese](https://github.com/node-red/node-red-nodegen/blob/0.1.1/docs/index_ja.md#how-to-create-a-node-from-openapi-document))
94
100
-[How to create a node from function node](https://github.com/node-red/node-red-nodegen/blob/0.1.1/docs/index.md#how-to-create-a-node-from-function-node) ([Japanese](https://github.com/node-red/node-red-nodegen/blob/0.1.1/docs/index_ja.md#how-to-create-a-node-from-function-node))
101
+
-[How to create a node from subflow](https://github.com/node-red/node-red-nodegen/blob/0.1.1/docs/index.md#how-to-create-a-node-from-subflow) ([Japanese](https://github.com/node-red/node-red-nodegen/blob/0.1.1/docs/index_ja.md#how-to-create-a-node-from-subflow))
95
102
96
103
Note: Currently node generator supports GET and POST methods using JSON format without authentication.
0 commit comments