113 lines
No EOL
2.5 KiB
JSON
113 lines
No EOL
2.5 KiB
JSON
[
|
|
{
|
|
"id": "84222b92.d65d18",
|
|
"type": "inject",
|
|
"z": "5132b95f037524f9",
|
|
"name": "",
|
|
"props": [
|
|
{
|
|
"p": "payload"
|
|
},
|
|
{
|
|
"p": "topic",
|
|
"vt": "str"
|
|
}
|
|
],
|
|
"repeat": "",
|
|
"crontab": "",
|
|
"once": false,
|
|
"onceDelay": 0.1,
|
|
"topic": "",
|
|
"payload": "Hello, World!",
|
|
"payloadType": "str",
|
|
"x": 150,
|
|
"y": 220,
|
|
"wires": [
|
|
[
|
|
"b4b9f603.739598"
|
|
]
|
|
]
|
|
},
|
|
{
|
|
"id": "7b014430.dfd94c",
|
|
"type": "comment",
|
|
"z": "5132b95f037524f9",
|
|
"name": "Write string to a file, then read from the file",
|
|
"info": "Write file node can write string from a file.",
|
|
"x": 180,
|
|
"y": 140,
|
|
"wires": []
|
|
},
|
|
{
|
|
"id": "b4b9f603.739598",
|
|
"type": "file",
|
|
"z": "5132b95f037524f9",
|
|
"name": "",
|
|
"filename": "/tmp/hello.txt",
|
|
"appendNewline": true,
|
|
"createDir": false,
|
|
"overwriteFile": "true",
|
|
"encoding": "none",
|
|
"x": 340,
|
|
"y": 220,
|
|
"wires": [
|
|
[
|
|
"6dc01cac.5c4bf4"
|
|
]
|
|
]
|
|
},
|
|
{
|
|
"id": "2587adb9.7e60f2",
|
|
"type": "debug",
|
|
"z": "5132b95f037524f9",
|
|
"name": "",
|
|
"active": true,
|
|
"tosidebar": true,
|
|
"console": false,
|
|
"tostatus": false,
|
|
"complete": "false",
|
|
"statusVal": "",
|
|
"statusType": "auto",
|
|
"x": 730,
|
|
"y": 220,
|
|
"wires": []
|
|
},
|
|
{
|
|
"id": "6dc01cac.5c4bf4",
|
|
"type": "file in",
|
|
"z": "5132b95f037524f9",
|
|
"name": "",
|
|
"filename": "/tmp/hello.txt",
|
|
"format": "utf8",
|
|
"chunk": false,
|
|
"sendError": false,
|
|
"encoding": "none",
|
|
"x": 540,
|
|
"y": 220,
|
|
"wires": [
|
|
[
|
|
"2587adb9.7e60f2"
|
|
]
|
|
]
|
|
},
|
|
{
|
|
"id": "f4b4309a.3b78a",
|
|
"type": "comment",
|
|
"z": "5132b95f037524f9",
|
|
"name": "↑read result from file",
|
|
"info": "",
|
|
"x": 550,
|
|
"y": 260,
|
|
"wires": []
|
|
},
|
|
{
|
|
"id": "672d3693.3cabd8",
|
|
"type": "comment",
|
|
"z": "5132b95f037524f9",
|
|
"name": "↓write to /tmp/hello.txt",
|
|
"info": "",
|
|
"x": 360,
|
|
"y": 180,
|
|
"wires": []
|
|
}
|
|
] |