132 lines
No EOL
2.9 KiB
JSON
132 lines
No EOL
2.9 KiB
JSON
[
|
|
{
|
|
"id": "6a0b1d03.d4cee4",
|
|
"type": "inject",
|
|
"z": "6312c0588348b2d4",
|
|
"name": "",
|
|
"props": [
|
|
{
|
|
"p": "payload"
|
|
},
|
|
{
|
|
"p": "topic",
|
|
"vt": "str"
|
|
}
|
|
],
|
|
"repeat": "",
|
|
"crontab": "",
|
|
"once": false,
|
|
"onceDelay": 0.1,
|
|
"topic": "",
|
|
"payload": "",
|
|
"payloadType": "date",
|
|
"x": 160,
|
|
"y": 220,
|
|
"wires": [
|
|
[
|
|
"d4b00cb7.a5a23"
|
|
]
|
|
]
|
|
},
|
|
{
|
|
"id": "f17ea1d1.8ecc3",
|
|
"type": "comment",
|
|
"z": "6312c0588348b2d4",
|
|
"name": "Read data breaking lines into individual messages",
|
|
"info": "Read file node can break read text into messages with individual lines",
|
|
"x": 230,
|
|
"y": 140,
|
|
"wires": []
|
|
},
|
|
{
|
|
"id": "99ae7806.1d6428",
|
|
"type": "file",
|
|
"z": "6312c0588348b2d4",
|
|
"name": "",
|
|
"filename": "/tmp/hello.txt",
|
|
"appendNewline": true,
|
|
"createDir": false,
|
|
"overwriteFile": "true",
|
|
"encoding": "none",
|
|
"x": 480,
|
|
"y": 220,
|
|
"wires": [
|
|
[
|
|
"70d7892f.d27db8"
|
|
]
|
|
]
|
|
},
|
|
{
|
|
"id": "7ed8282c.92b338",
|
|
"type": "debug",
|
|
"z": "6312c0588348b2d4",
|
|
"name": "",
|
|
"active": true,
|
|
"tosidebar": true,
|
|
"console": false,
|
|
"tostatus": false,
|
|
"complete": "false",
|
|
"statusVal": "",
|
|
"statusType": "auto",
|
|
"x": 750,
|
|
"y": 280,
|
|
"wires": []
|
|
},
|
|
{
|
|
"id": "70d7892f.d27db8",
|
|
"type": "file in",
|
|
"z": "6312c0588348b2d4",
|
|
"name": "",
|
|
"filename": "/tmp/hello.txt",
|
|
"format": "lines",
|
|
"chunk": false,
|
|
"sendError": false,
|
|
"encoding": "none",
|
|
"x": 560,
|
|
"y": 280,
|
|
"wires": [
|
|
[
|
|
"7ed8282c.92b338"
|
|
]
|
|
]
|
|
},
|
|
{
|
|
"id": "c1b7e05.1d94b2",
|
|
"type": "comment",
|
|
"z": "6312c0588348b2d4",
|
|
"name": "↑read data from file breaking lines into messages",
|
|
"info": "",
|
|
"x": 660,
|
|
"y": 320,
|
|
"wires": []
|
|
},
|
|
{
|
|
"id": "a5f647b2.cf27a8",
|
|
"type": "comment",
|
|
"z": "6312c0588348b2d4",
|
|
"name": "↓write to /tmp/hello.txt",
|
|
"info": "",
|
|
"x": 500,
|
|
"y": 180,
|
|
"wires": []
|
|
},
|
|
{
|
|
"id": "d4b00cb7.a5a23",
|
|
"type": "template",
|
|
"z": "6312c0588348b2d4",
|
|
"name": "data",
|
|
"field": "payload",
|
|
"fieldType": "msg",
|
|
"format": "handlebars",
|
|
"syntax": "plain",
|
|
"template": "one\ntwo\nthree!",
|
|
"output": "str",
|
|
"x": 310,
|
|
"y": 220,
|
|
"wires": [
|
|
[
|
|
"99ae7806.1d6428"
|
|
]
|
|
]
|
|
}
|
|
] |