LoginSignup
0
0

More than 5 years have passed since last update.

Node-RED で、2つのnode を作成する

Posted at

次の2つのサンプルを合わせたサンプルを作成しました。
入力データを、総て小文字と大文字に変換します。

小文字変換のサンプル
Creating your first node
大文字変換のサンプル
Node-RED で、node を作成する

実行結果

node-red_jul2101.png

事前に準備するのは、
.node-red/nodes/package.json
.node-red/nodes/upper-case.js
.node-red/nodes/upper-case.html
.node-red/nodes/lower-case.js
.node-red/nodes/lower-case.html
です。

package.json 以外は、元のサンプルの流用です。

package.json
{
  "name": "node-red-contrib-example-upper-case",
  "version": "1.0.0",
  "description": "",
  "main": "index.js",
  "scripts": {
    "test": "echo \"Error: no test specified\" && exit 1"
  },
  "author": "",
  "license": "ISC",
  "node-red" : {
        "nodes": {
            "upper-case": "upper-case.js"
            "upper-case": "lower-case.js"
        }
    }
}
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0