mirror of
https://github.com/node-red/node-red.git
synced 2023-10-10 13:36:53 +02:00
118 lines
2.6 KiB
JSON
118 lines
2.6 KiB
JSON
|
[
|
||
|
{
|
||
|
"id": "704479e1.399388",
|
||
|
"type": "inject",
|
||
|
"z": "4b63452d.672afc",
|
||
|
"name": "",
|
||
|
"props": [
|
||
|
{
|
||
|
"p": "payload"
|
||
|
},
|
||
|
{
|
||
|
"p": "filename",
|
||
|
"v": "/tmp/hello.txt",
|
||
|
"vt": "str"
|
||
|
},
|
||
|
{
|
||
|
"p": "topic",
|
||
|
"vt": "str"
|
||
|
}
|
||
|
],
|
||
|
"repeat": "",
|
||
|
"crontab": "",
|
||
|
"once": false,
|
||
|
"onceDelay": 0.1,
|
||
|
"topic": "",
|
||
|
"payload": "Hello, World!",
|
||
|
"payloadType": "str",
|
||
|
"x": 230,
|
||
|
"y": 400,
|
||
|
"wires": [
|
||
|
[
|
||
|
"402f3b7e.988014"
|
||
|
]
|
||
|
]
|
||
|
},
|
||
|
{
|
||
|
"id": "8e876a75.e9beb8",
|
||
|
"type": "comment",
|
||
|
"z": "4b63452d.672afc",
|
||
|
"name": "Write string to a file specied by filename property, the read from the file",
|
||
|
"info": "File node can target file using `filename` property.",
|
||
|
"x": 350,
|
||
|
"y": 320,
|
||
|
"wires": []
|
||
|
},
|
||
|
{
|
||
|
"id": "402f3b7e.988014",
|
||
|
"type": "file",
|
||
|
"z": "4b63452d.672afc",
|
||
|
"name": "",
|
||
|
"filename": "",
|
||
|
"appendNewline": true,
|
||
|
"createDir": false,
|
||
|
"overwriteFile": "true",
|
||
|
"encoding": "none",
|
||
|
"x": 390,
|
||
|
"y": 400,
|
||
|
"wires": [
|
||
|
[
|
||
|
"26e077d6.bbcd98"
|
||
|
]
|
||
|
]
|
||
|
},
|
||
|
{
|
||
|
"id": "97b6b6b2.a54b38",
|
||
|
"type": "debug",
|
||
|
"z": "4b63452d.672afc",
|
||
|
"name": "",
|
||
|
"active": true,
|
||
|
"tosidebar": true,
|
||
|
"console": false,
|
||
|
"tostatus": false,
|
||
|
"complete": "false",
|
||
|
"statusVal": "",
|
||
|
"statusType": "auto",
|
||
|
"x": 770,
|
||
|
"y": 400,
|
||
|
"wires": []
|
||
|
},
|
||
|
{
|
||
|
"id": "26e077d6.bbcd98",
|
||
|
"type": "file in",
|
||
|
"z": "4b63452d.672afc",
|
||
|
"name": "",
|
||
|
"filename": "/tmp/hello.txt",
|
||
|
"format": "utf8",
|
||
|
"chunk": false,
|
||
|
"sendError": false,
|
||
|
"encoding": "none",
|
||
|
"x": 580,
|
||
|
"y": 400,
|
||
|
"wires": [
|
||
|
[
|
||
|
"97b6b6b2.a54b38"
|
||
|
]
|
||
|
]
|
||
|
},
|
||
|
{
|
||
|
"id": "85062297.da79",
|
||
|
"type": "comment",
|
||
|
"z": "4b63452d.672afc",
|
||
|
"name": "↑read result from file",
|
||
|
"info": "",
|
||
|
"x": 590,
|
||
|
"y": 440,
|
||
|
"wires": []
|
||
|
},
|
||
|
{
|
||
|
"id": "7316c4fc.b1dcdc",
|
||
|
"type": "comment",
|
||
|
"z": "4b63452d.672afc",
|
||
|
"name": "↓write to file specified by filename property",
|
||
|
"info": "",
|
||
|
"x": 500,
|
||
|
"y": 360,
|
||
|
"wires": []
|
||
|
}
|
||
|
]
|