1
0
mirror of https://github.com/node-red/node-red.git synced 2023-10-10 13:36:53 +02:00

Merge pull request #3335 from node-red-hitachi/fix-file-node-example

Update file node examples according to node name change
This commit is contained in:
Nick O'Leary 2022-01-10 18:22:39 +00:00 committed by GitHub
commit dce9d93f6c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
8 changed files with 190 additions and 189 deletions

View File

@ -2,7 +2,7 @@
{ {
"id": "84222b92.d65d18", "id": "84222b92.d65d18",
"type": "inject", "type": "inject",
"z": "194a3e4f.a92772", "z": "6312c0588348b2d4",
"name": "", "name": "",
"props": [ "props": [
{ {
@ -20,8 +20,8 @@
"topic": "", "topic": "",
"payload": "Hello, World!", "payload": "Hello, World!",
"payloadType": "str", "payloadType": "str",
"x": 230, "x": 190,
"y": 220, "y": 180,
"wires": [ "wires": [
[ [
"b4b9f603.739598" "b4b9f603.739598"
@ -31,25 +31,25 @@
{ {
"id": "7b014430.dfd94c", "id": "7b014430.dfd94c",
"type": "comment", "type": "comment",
"z": "194a3e4f.a92772", "z": "6312c0588348b2d4",
"name": "Write string to a file, then read from the file", "name": "Write string to a file, then read from the file",
"info": "File-in node can read string from a file.", "info": "Read file node can read string from a file.",
"x": 260, "x": 220,
"y": 140, "y": 100,
"wires": [] "wires": []
}, },
{ {
"id": "b4b9f603.739598", "id": "b4b9f603.739598",
"type": "file", "type": "file",
"z": "194a3e4f.a92772", "z": "6312c0588348b2d4",
"name": "", "name": "",
"filename": "/tmp/hello.txt", "filename": "/tmp/hello.txt",
"appendNewline": true, "appendNewline": true,
"createDir": false, "createDir": false,
"overwriteFile": "true", "overwriteFile": "true",
"encoding": "none", "encoding": "none",
"x": 420, "x": 380,
"y": 220, "y": 180,
"wires": [ "wires": [
[ [
"6dc01cac.5c4bf4" "6dc01cac.5c4bf4"
@ -59,7 +59,7 @@
{ {
"id": "2587adb9.7e60f2", "id": "2587adb9.7e60f2",
"type": "debug", "type": "debug",
"z": "194a3e4f.a92772", "z": "6312c0588348b2d4",
"name": "", "name": "",
"active": true, "active": true,
"tosidebar": true, "tosidebar": true,
@ -68,22 +68,22 @@
"complete": "false", "complete": "false",
"statusVal": "", "statusVal": "",
"statusType": "auto", "statusType": "auto",
"x": 810, "x": 770,
"y": 220, "y": 180,
"wires": [] "wires": []
}, },
{ {
"id": "6dc01cac.5c4bf4", "id": "6dc01cac.5c4bf4",
"type": "file in", "type": "file in",
"z": "194a3e4f.a92772", "z": "6312c0588348b2d4",
"name": "", "name": "",
"filename": "/tmp/hello.txt", "filename": "/tmp/hello.txt",
"format": "utf8", "format": "utf8",
"chunk": false, "chunk": false,
"sendError": false, "sendError": false,
"encoding": "none", "encoding": "none",
"x": 620, "x": 580,
"y": 220, "y": 180,
"wires": [ "wires": [
[ [
"2587adb9.7e60f2" "2587adb9.7e60f2"
@ -93,21 +93,21 @@
{ {
"id": "f4b4309a.3b78a", "id": "f4b4309a.3b78a",
"type": "comment", "type": "comment",
"z": "194a3e4f.a92772", "z": "6312c0588348b2d4",
"name": "↑read result from file", "name": "↑read result from file",
"info": "", "info": "",
"x": 630, "x": 590,
"y": 260, "y": 220,
"wires": [] "wires": []
}, },
{ {
"id": "672d3693.3cabd8", "id": "672d3693.3cabd8",
"type": "comment", "type": "comment",
"z": "194a3e4f.a92772", "z": "6312c0588348b2d4",
"name": "↓write to /tmp/hello.txt", "name": "↓write to /tmp/hello.txt",
"info": "", "info": "",
"x": 440, "x": 400,
"y": 180, "y": 140,
"wires": [] "wires": []
} }
] ]

View File

@ -2,7 +2,7 @@
{ {
"id": "8997398f.c5d628", "id": "8997398f.c5d628",
"type": "inject", "type": "inject",
"z": "194a3e4f.a92772", "z": "6312c0588348b2d4",
"name": "", "name": "",
"props": [ "props": [
{ {
@ -20,8 +20,8 @@
"topic": "", "topic": "",
"payload": "😀", "payload": "😀",
"payloadType": "str", "payloadType": "str",
"x": 210, "x": 170,
"y": 480, "y": 260,
"wires": [ "wires": [
[ [
"56e32d23.050f44" "56e32d23.050f44"
@ -31,25 +31,25 @@
{ {
"id": "4e598e65.1799d", "id": "4e598e65.1799d",
"type": "comment", "type": "comment",
"z": "194a3e4f.a92772", "z": "6312c0588348b2d4",
"name": "Read data in specified encoding", "name": "Read data in specified encoding",
"info": "File-in node can specify encoding of data read from a file.", "info": "Read file node can specify encoding of data read from a file.",
"x": 230, "x": 190,
"y": 400, "y": 180,
"wires": [] "wires": []
}, },
{ {
"id": "56e32d23.050f44", "id": "56e32d23.050f44",
"type": "file", "type": "file",
"z": "194a3e4f.a92772", "z": "6312c0588348b2d4",
"name": "", "name": "",
"filename": "/tmp/hello.txt", "filename": "/tmp/hello.txt",
"appendNewline": true, "appendNewline": true,
"createDir": false, "createDir": false,
"overwriteFile": "true", "overwriteFile": "true",
"encoding": "none", "encoding": "none",
"x": 380, "x": 340,
"y": 480, "y": 260,
"wires": [ "wires": [
[ [
"38fa0579.f2cd8a" "38fa0579.f2cd8a"
@ -59,7 +59,7 @@
{ {
"id": "d28c8994.99c0a8", "id": "d28c8994.99c0a8",
"type": "debug", "type": "debug",
"z": "194a3e4f.a92772", "z": "6312c0588348b2d4",
"name": "", "name": "",
"active": true, "active": true,
"tosidebar": true, "tosidebar": true,
@ -68,22 +68,23 @@
"complete": "false", "complete": "false",
"statusVal": "", "statusVal": "",
"statusType": "auto", "statusType": "auto",
"x": 770, "x": 730,
"y": 480, "y": 260,
"wires": [] "wires": []
}, },
{ {
"id": "38fa0579.f2cd8a", "id": "38fa0579.f2cd8a",
"type": "file in", "type": "file in",
"z": "194a3e4f.a92772", "z": "6312c0588348b2d4",
"name": "", "name": "",
"filename": "/tmp/hello.txt", "filename": "/tmp/hello.txt",
"format": "utf8", "format": "utf8",
"chunk": false, "chunk": false,
"sendError": false, "sendError": false,
"encoding": "base64", "encoding": "base64",
"x": 580, "allProps": false,
"y": 480, "x": 540,
"y": 260,
"wires": [ "wires": [
[ [
"d28c8994.99c0a8" "d28c8994.99c0a8"
@ -93,21 +94,21 @@
{ {
"id": "fa22ca20.ae4528", "id": "fa22ca20.ae4528",
"type": "comment", "type": "comment",
"z": "194a3e4f.a92772", "z": "6312c0588348b2d4",
"name": "↑read data from file as base64 string", "name": "↑read data from file as base64 string",
"info": "", "info": "",
"x": 640, "x": 600,
"y": 520, "y": 300,
"wires": [] "wires": []
}, },
{ {
"id": "148e25ad.98891a", "id": "148e25ad.98891a",
"type": "comment", "type": "comment",
"z": "194a3e4f.a92772", "z": "6312c0588348b2d4",
"name": "↓write to /tmp/hello.txt", "name": "↓write to /tmp/hello.txt",
"info": "", "info": "",
"x": 400, "x": 360,
"y": 440, "y": 220,
"wires": [] "wires": []
} }
] ]

View File

@ -2,7 +2,7 @@
{ {
"id": "6a0b1d03.d4cee4", "id": "6a0b1d03.d4cee4",
"type": "inject", "type": "inject",
"z": "194a3e4f.a92772", "z": "6312c0588348b2d4",
"name": "", "name": "",
"props": [ "props": [
{ {
@ -20,8 +20,8 @@
"topic": "", "topic": "",
"payload": "", "payload": "",
"payloadType": "date", "payloadType": "date",
"x": 220, "x": 160,
"y": 740, "y": 220,
"wires": [ "wires": [
[ [
"d4b00cb7.a5a23" "d4b00cb7.a5a23"
@ -31,25 +31,25 @@
{ {
"id": "f17ea1d1.8ecc3", "id": "f17ea1d1.8ecc3",
"type": "comment", "type": "comment",
"z": "194a3e4f.a92772", "z": "6312c0588348b2d4",
"name": "Read data breaking lines into individual messages", "name": "Read data breaking lines into individual messages",
"info": "File-in node can break read text into messages with individual lines", "info": "Read file node can break read text into messages with individual lines",
"x": 290, "x": 230,
"y": 660, "y": 140,
"wires": [] "wires": []
}, },
{ {
"id": "99ae7806.1d6428", "id": "99ae7806.1d6428",
"type": "file", "type": "file",
"z": "194a3e4f.a92772", "z": "6312c0588348b2d4",
"name": "", "name": "",
"filename": "/tmp/hello.txt", "filename": "/tmp/hello.txt",
"appendNewline": true, "appendNewline": true,
"createDir": false, "createDir": false,
"overwriteFile": "true", "overwriteFile": "true",
"encoding": "none", "encoding": "none",
"x": 540, "x": 480,
"y": 740, "y": 220,
"wires": [ "wires": [
[ [
"70d7892f.d27db8" "70d7892f.d27db8"
@ -59,7 +59,7 @@
{ {
"id": "7ed8282c.92b338", "id": "7ed8282c.92b338",
"type": "debug", "type": "debug",
"z": "194a3e4f.a92772", "z": "6312c0588348b2d4",
"name": "", "name": "",
"active": true, "active": true,
"tosidebar": true, "tosidebar": true,
@ -68,22 +68,22 @@
"complete": "false", "complete": "false",
"statusVal": "", "statusVal": "",
"statusType": "auto", "statusType": "auto",
"x": 810, "x": 750,
"y": 800, "y": 280,
"wires": [] "wires": []
}, },
{ {
"id": "70d7892f.d27db8", "id": "70d7892f.d27db8",
"type": "file in", "type": "file in",
"z": "194a3e4f.a92772", "z": "6312c0588348b2d4",
"name": "", "name": "",
"filename": "/tmp/hello.txt", "filename": "/tmp/hello.txt",
"format": "lines", "format": "lines",
"chunk": false, "chunk": false,
"sendError": false, "sendError": false,
"encoding": "none", "encoding": "none",
"x": 620, "x": 560,
"y": 800, "y": 280,
"wires": [ "wires": [
[ [
"7ed8282c.92b338" "7ed8282c.92b338"
@ -93,27 +93,27 @@
{ {
"id": "c1b7e05.1d94b2", "id": "c1b7e05.1d94b2",
"type": "comment", "type": "comment",
"z": "194a3e4f.a92772", "z": "6312c0588348b2d4",
"name": "↑read data from file breaking lines into messages", "name": "↑read data from file breaking lines into messages",
"info": "", "info": "",
"x": 720, "x": 660,
"y": 840, "y": 320,
"wires": [] "wires": []
}, },
{ {
"id": "a5f647b2.cf27a8", "id": "a5f647b2.cf27a8",
"type": "comment", "type": "comment",
"z": "194a3e4f.a92772", "z": "6312c0588348b2d4",
"name": "↓write to /tmp/hello.txt", "name": "↓write to /tmp/hello.txt",
"info": "", "info": "",
"x": 560, "x": 500,
"y": 700, "y": 180,
"wires": [] "wires": []
}, },
{ {
"id": "d4b00cb7.a5a23", "id": "d4b00cb7.a5a23",
"type": "template", "type": "template",
"z": "194a3e4f.a92772", "z": "6312c0588348b2d4",
"name": "data", "name": "data",
"field": "payload", "field": "payload",
"fieldType": "msg", "fieldType": "msg",
@ -121,8 +121,8 @@
"syntax": "plain", "syntax": "plain",
"template": "one\ntwo\nthree!", "template": "one\ntwo\nthree!",
"output": "str", "output": "str",
"x": 370, "x": 310,
"y": 740, "y": 220,
"wires": [ "wires": [
[ [
"99ae7806.1d6428" "99ae7806.1d6428"

View File

@ -2,7 +2,7 @@
{ {
"id": "bdd57acc.2edc48", "id": "bdd57acc.2edc48",
"type": "inject", "type": "inject",
"z": "194a3e4f.a92772", "z": "6312c0588348b2d4",
"name": "", "name": "",
"props": [ "props": [
{ {
@ -20,8 +20,8 @@
"topic": "", "topic": "",
"payload": "", "payload": "",
"payloadType": "date", "payloadType": "date",
"x": 220, "x": 180,
"y": 1040, "y": 220,
"wires": [ "wires": [
[ [
"7a069b01.0c2324" "7a069b01.0c2324"
@ -31,25 +31,25 @@
{ {
"id": "1fd12220.33953e", "id": "1fd12220.33953e",
"type": "comment", "type": "comment",
"z": "194a3e4f.a92772", "z": "6312c0588348b2d4",
"name": "Creating a message stream from lines of data", "name": "Creating a message stream from lines of data",
"info": "File-in node can break read text into messages with individual lines. The messages creates a stream of messages.", "info": "Read file node can break read text into messages with individual lines. The messages creates a stream of messages.",
"x": 270, "x": 230,
"y": 960, "y": 140,
"wires": [] "wires": []
}, },
{ {
"id": "ab6eb213.2a08d", "id": "ab6eb213.2a08d",
"type": "file", "type": "file",
"z": "194a3e4f.a92772", "z": "6312c0588348b2d4",
"name": "", "name": "",
"filename": "/tmp/hello.txt", "filename": "/tmp/hello.txt",
"appendNewline": true, "appendNewline": true,
"createDir": false, "createDir": false,
"overwriteFile": "true", "overwriteFile": "true",
"encoding": "none", "encoding": "none",
"x": 540, "x": 500,
"y": 1040, "y": 220,
"wires": [ "wires": [
[ [
"b7ed49b0.649fb8" "b7ed49b0.649fb8"
@ -59,7 +59,7 @@
{ {
"id": "c48d8ae0.9ff3a8", "id": "c48d8ae0.9ff3a8",
"type": "debug", "type": "debug",
"z": "194a3e4f.a92772", "z": "6312c0588348b2d4",
"name": "", "name": "",
"active": true, "active": true,
"tosidebar": true, "tosidebar": true,
@ -68,22 +68,22 @@
"complete": "false", "complete": "false",
"statusVal": "", "statusVal": "",
"statusType": "auto", "statusType": "auto",
"x": 810, "x": 770,
"y": 1140, "y": 320,
"wires": [] "wires": []
}, },
{ {
"id": "b7ed49b0.649fb8", "id": "b7ed49b0.649fb8",
"type": "file in", "type": "file in",
"z": "194a3e4f.a92772", "z": "6312c0588348b2d4",
"name": "", "name": "",
"filename": "/tmp/hello.txt", "filename": "/tmp/hello.txt",
"format": "lines", "format": "lines",
"chunk": false, "chunk": false,
"sendError": false, "sendError": false,
"encoding": "none", "encoding": "none",
"x": 280, "x": 240,
"y": 1140, "y": 320,
"wires": [ "wires": [
[ [
"83073ebe.fcce4" "83073ebe.fcce4"
@ -93,27 +93,27 @@
{ {
"id": "3c33e69f.6a04ba", "id": "3c33e69f.6a04ba",
"type": "comment", "type": "comment",
"z": "194a3e4f.a92772", "z": "6312c0588348b2d4",
"name": "↑read data from file breaking lines into messages", "name": "↑read data from file breaking lines into messages",
"info": "", "info": "",
"x": 380, "x": 340,
"y": 1180, "y": 360,
"wires": [] "wires": []
}, },
{ {
"id": "3598bf7d.5712a", "id": "3598bf7d.5712a",
"type": "comment", "type": "comment",
"z": "194a3e4f.a92772", "z": "6312c0588348b2d4",
"name": "↓write to /tmp/hello.txt", "name": "↓write to /tmp/hello.txt",
"info": "", "info": "",
"x": 560, "x": 520,
"y": 1000, "y": 180,
"wires": [] "wires": []
}, },
{ {
"id": "7a069b01.0c2324", "id": "7a069b01.0c2324",
"type": "template", "type": "template",
"z": "194a3e4f.a92772", "z": "6312c0588348b2d4",
"name": "data", "name": "data",
"field": "payload", "field": "payload",
"fieldType": "msg", "fieldType": "msg",
@ -121,8 +121,8 @@
"syntax": "plain", "syntax": "plain",
"template": "Apple\nBanana\nGrape\nOrange", "template": "Apple\nBanana\nGrape\nOrange",
"output": "str", "output": "str",
"x": 370, "x": 330,
"y": 1040, "y": 220,
"wires": [ "wires": [
[ [
"ab6eb213.2a08d" "ab6eb213.2a08d"
@ -132,7 +132,7 @@
{ {
"id": "8d4ed1d0.821fe", "id": "8d4ed1d0.821fe",
"type": "join", "type": "join",
"z": "194a3e4f.a92772", "z": "6312c0588348b2d4",
"name": "", "name": "",
"mode": "auto", "mode": "auto",
"build": "string", "build": "string",
@ -145,8 +145,8 @@
"timeout": "", "timeout": "",
"count": "", "count": "",
"reduceRight": false, "reduceRight": false,
"x": 630, "x": 590,
"y": 1140, "y": 320,
"wires": [ "wires": [
[ [
"c48d8ae0.9ff3a8" "c48d8ae0.9ff3a8"
@ -156,7 +156,7 @@
{ {
"id": "83073ebe.fcce4", "id": "83073ebe.fcce4",
"type": "switch", "type": "switch",
"z": "194a3e4f.a92772", "z": "6312c0588348b2d4",
"name": "< D", "name": "< D",
"property": "payload", "property": "payload",
"propertyType": "msg", "propertyType": "msg",
@ -170,8 +170,8 @@
"checkall": "true", "checkall": "true",
"repair": true, "repair": true,
"outputs": 1, "outputs": 1,
"x": 470, "x": 430,
"y": 1140, "y": 320,
"wires": [ "wires": [
[ [
"8d4ed1d0.821fe" "8d4ed1d0.821fe"
@ -181,21 +181,21 @@
{ {
"id": "2088e195.f7aebe", "id": "2088e195.f7aebe",
"type": "comment", "type": "comment",
"z": "194a3e4f.a92772", "z": "6312c0588348b2d4",
"name": "↓filter data before \"D\"", "name": "↓filter data before \"D\"",
"info": "", "info": "",
"x": 520, "x": 480,
"y": 1100, "y": 280,
"wires": [] "wires": []
}, },
{ {
"id": "b848cdc7.61e06", "id": "b848cdc7.61e06",
"type": "comment", "type": "comment",
"z": "194a3e4f.a92772", "z": "6312c0588348b2d4",
"name": "↑join to single string", "name": "↑join to single string",
"info": "", "info": "",
"x": 670, "x": 630,
"y": 1180, "y": 360,
"wires": [] "wires": []
} }
] ]

View File

@ -2,7 +2,7 @@
{ {
"id": "84222b92.d65d18", "id": "84222b92.d65d18",
"type": "inject", "type": "inject",
"z": "4b63452d.672afc", "z": "5132b95f037524f9",
"name": "", "name": "",
"props": [ "props": [
{ {
@ -20,8 +20,8 @@
"topic": "", "topic": "",
"payload": "Hello, World!", "payload": "Hello, World!",
"payloadType": "str", "payloadType": "str",
"x": 230, "x": 150,
"y": 200, "y": 220,
"wires": [ "wires": [
[ [
"b4b9f603.739598" "b4b9f603.739598"
@ -31,25 +31,25 @@
{ {
"id": "7b014430.dfd94c", "id": "7b014430.dfd94c",
"type": "comment", "type": "comment",
"z": "4b63452d.672afc", "z": "5132b95f037524f9",
"name": "Write string to a file, then read from the file", "name": "Write string to a file, then read from the file",
"info": "File node can write string to a file.", "info": "Write file node can write string from a file.",
"x": 260, "x": 180,
"y": 120, "y": 140,
"wires": [] "wires": []
}, },
{ {
"id": "b4b9f603.739598", "id": "b4b9f603.739598",
"type": "file", "type": "file",
"z": "4b63452d.672afc", "z": "5132b95f037524f9",
"name": "", "name": "",
"filename": "/tmp/hello.txt", "filename": "/tmp/hello.txt",
"appendNewline": true, "appendNewline": true,
"createDir": false, "createDir": false,
"overwriteFile": "true", "overwriteFile": "true",
"encoding": "none", "encoding": "none",
"x": 420, "x": 340,
"y": 200, "y": 220,
"wires": [ "wires": [
[ [
"6dc01cac.5c4bf4" "6dc01cac.5c4bf4"
@ -59,7 +59,7 @@
{ {
"id": "2587adb9.7e60f2", "id": "2587adb9.7e60f2",
"type": "debug", "type": "debug",
"z": "4b63452d.672afc", "z": "5132b95f037524f9",
"name": "", "name": "",
"active": true, "active": true,
"tosidebar": true, "tosidebar": true,
@ -68,22 +68,22 @@
"complete": "false", "complete": "false",
"statusVal": "", "statusVal": "",
"statusType": "auto", "statusType": "auto",
"x": 810, "x": 730,
"y": 200, "y": 220,
"wires": [] "wires": []
}, },
{ {
"id": "6dc01cac.5c4bf4", "id": "6dc01cac.5c4bf4",
"type": "file in", "type": "file in",
"z": "4b63452d.672afc", "z": "5132b95f037524f9",
"name": "", "name": "",
"filename": "/tmp/hello.txt", "filename": "/tmp/hello.txt",
"format": "utf8", "format": "utf8",
"chunk": false, "chunk": false,
"sendError": false, "sendError": false,
"encoding": "none", "encoding": "none",
"x": 620, "x": 540,
"y": 200, "y": 220,
"wires": [ "wires": [
[ [
"2587adb9.7e60f2" "2587adb9.7e60f2"
@ -93,21 +93,21 @@
{ {
"id": "f4b4309a.3b78a", "id": "f4b4309a.3b78a",
"type": "comment", "type": "comment",
"z": "4b63452d.672afc", "z": "5132b95f037524f9",
"name": "↑read result from file", "name": "↑read result from file",
"info": "", "info": "",
"x": 630, "x": 550,
"y": 240, "y": 260,
"wires": [] "wires": []
}, },
{ {
"id": "672d3693.3cabd8", "id": "672d3693.3cabd8",
"type": "comment", "type": "comment",
"z": "4b63452d.672afc", "z": "5132b95f037524f9",
"name": "↓write to /tmp/hello.txt", "name": "↓write to /tmp/hello.txt",
"info": "", "info": "",
"x": 440, "x": 360,
"y": 160, "y": 180,
"wires": [] "wires": []
} }
] ]

View File

@ -2,7 +2,7 @@
{ {
"id": "704479e1.399388", "id": "704479e1.399388",
"type": "inject", "type": "inject",
"z": "4b63452d.672afc", "z": "6312c0588348b2d4",
"name": "", "name": "",
"props": [ "props": [
{ {
@ -25,8 +25,8 @@
"topic": "", "topic": "",
"payload": "Hello, World!", "payload": "Hello, World!",
"payloadType": "str", "payloadType": "str",
"x": 230, "x": 190,
"y": 400, "y": 260,
"wires": [ "wires": [
[ [
"402f3b7e.988014" "402f3b7e.988014"
@ -36,25 +36,25 @@
{ {
"id": "8e876a75.e9beb8", "id": "8e876a75.e9beb8",
"type": "comment", "type": "comment",
"z": "4b63452d.672afc", "z": "6312c0588348b2d4",
"name": "Write string to a file specied by filename property, the read from the file", "name": "Write string to a file specied by filename property, the read from the file",
"info": "File node can target file using `filename` property.", "info": "Write file node can target file using `filename` property.",
"x": 350, "x": 310,
"y": 320, "y": 180,
"wires": [] "wires": []
}, },
{ {
"id": "402f3b7e.988014", "id": "402f3b7e.988014",
"type": "file", "type": "file",
"z": "4b63452d.672afc", "z": "6312c0588348b2d4",
"name": "", "name": "",
"filename": "", "filename": "",
"appendNewline": true, "appendNewline": true,
"createDir": false, "createDir": false,
"overwriteFile": "true", "overwriteFile": "true",
"encoding": "none", "encoding": "none",
"x": 390, "x": 350,
"y": 400, "y": 260,
"wires": [ "wires": [
[ [
"26e077d6.bbcd98" "26e077d6.bbcd98"
@ -64,7 +64,7 @@
{ {
"id": "97b6b6b2.a54b38", "id": "97b6b6b2.a54b38",
"type": "debug", "type": "debug",
"z": "4b63452d.672afc", "z": "6312c0588348b2d4",
"name": "", "name": "",
"active": true, "active": true,
"tosidebar": true, "tosidebar": true,
@ -73,22 +73,22 @@
"complete": "false", "complete": "false",
"statusVal": "", "statusVal": "",
"statusType": "auto", "statusType": "auto",
"x": 770, "x": 730,
"y": 400, "y": 260,
"wires": [] "wires": []
}, },
{ {
"id": "26e077d6.bbcd98", "id": "26e077d6.bbcd98",
"type": "file in", "type": "file in",
"z": "4b63452d.672afc", "z": "6312c0588348b2d4",
"name": "", "name": "",
"filename": "/tmp/hello.txt", "filename": "/tmp/hello.txt",
"format": "utf8", "format": "utf8",
"chunk": false, "chunk": false,
"sendError": false, "sendError": false,
"encoding": "none", "encoding": "none",
"x": 580, "x": 540,
"y": 400, "y": 260,
"wires": [ "wires": [
[ [
"97b6b6b2.a54b38" "97b6b6b2.a54b38"
@ -98,21 +98,21 @@
{ {
"id": "85062297.da79", "id": "85062297.da79",
"type": "comment", "type": "comment",
"z": "4b63452d.672afc", "z": "6312c0588348b2d4",
"name": "↑read result from file", "name": "↑read result from file",
"info": "", "info": "",
"x": 590, "x": 550,
"y": 440, "y": 300,
"wires": [] "wires": []
}, },
{ {
"id": "7316c4fc.b1dcdc", "id": "7316c4fc.b1dcdc",
"type": "comment", "type": "comment",
"z": "4b63452d.672afc", "z": "6312c0588348b2d4",
"name": "↓write to file specified by filename property", "name": "↓write to file specified by filename property",
"info": "", "info": "",
"x": 500, "x": 460,
"y": 360, "y": 220,
"wires": [] "wires": []
} }
] ]

View File

@ -2,7 +2,7 @@
{ {
"id": "4ac00fb0.d5f52", "id": "4ac00fb0.d5f52",
"type": "inject", "type": "inject",
"z": "4b63452d.672afc", "z": "6312c0588348b2d4",
"name": "", "name": "",
"props": [ "props": [
{ {
@ -20,8 +20,8 @@
"topic": "", "topic": "",
"payload": "", "payload": "",
"payloadType": "date", "payloadType": "date",
"x": 220, "x": 180,
"y": 600, "y": 220,
"wires": [ "wires": [
[ [
"542cc2f4.92857c" "542cc2f4.92857c"
@ -31,25 +31,25 @@
{ {
"id": "671f8295.0e6f6c", "id": "671f8295.0e6f6c",
"type": "comment", "type": "comment",
"z": "4b63452d.672afc", "z": "6312c0588348b2d4",
"name": "Delete a file", "name": "Delete a file",
"info": "File node can delete a file.", "info": "Write file node can delete a file.",
"x": 170, "x": 130,
"y": 540, "y": 160,
"wires": [] "wires": []
}, },
{ {
"id": "542cc2f4.92857c", "id": "542cc2f4.92857c",
"type": "file", "type": "file",
"z": "4b63452d.672afc", "z": "6312c0588348b2d4",
"name": "", "name": "",
"filename": "/tmp/hello.txt", "filename": "/tmp/hello.txt",
"appendNewline": true, "appendNewline": true,
"createDir": false, "createDir": false,
"overwriteFile": "delete", "overwriteFile": "delete",
"encoding": "none", "encoding": "none",
"x": 420, "x": 380,
"y": 600, "y": 220,
"wires": [ "wires": [
[ [
"a24da523.5babe8" "a24da523.5babe8"
@ -59,7 +59,7 @@
{ {
"id": "a24da523.5babe8", "id": "a24da523.5babe8",
"type": "debug", "type": "debug",
"z": "4b63452d.672afc", "z": "6312c0588348b2d4",
"name": "", "name": "",
"active": true, "active": true,
"tosidebar": true, "tosidebar": true,
@ -68,18 +68,18 @@
"complete": "false", "complete": "false",
"statusVal": "", "statusVal": "",
"statusType": "auto", "statusType": "auto",
"x": 630, "x": 590,
"y": 600, "y": 220,
"wires": [] "wires": []
}, },
{ {
"id": "51157051.2f62", "id": "51157051.2f62",
"type": "comment", "type": "comment",
"z": "4b63452d.672afc", "z": "6312c0588348b2d4",
"name": "↓delete a file", "name": "↓delete a file",
"info": "", "info": "",
"x": 390, "x": 350,
"y": 560, "y": 180,
"wires": [] "wires": []
} }
] ]

View File

@ -2,8 +2,8 @@
{ {
"id": "e4ef1f5e.7cd82", "id": "e4ef1f5e.7cd82",
"type": "inject", "type": "inject",
"z": "4b63452d.672afc", "z": "6312c0588348b2d4",
"name": "", "name": "Base64 encoded string",
"props": [ "props": [
{ {
"p": "payload" "p": "payload"
@ -20,8 +20,8 @@
"topic": "", "topic": "",
"payload": "8J+YgA==", "payload": "8J+YgA==",
"payloadType": "str", "payloadType": "str",
"x": 220, "x": 200,
"y": 820, "y": 220,
"wires": [ "wires": [
[ [
"72b37cc8.177054" "72b37cc8.177054"
@ -31,25 +31,25 @@
{ {
"id": "f5997af4.5a9298", "id": "f5997af4.5a9298",
"type": "comment", "type": "comment",
"z": "4b63452d.672afc", "z": "6312c0588348b2d4",
"name": "Specify encoding of written data", "name": "Specify encoding of written data",
"info": "File node can specify encoding of data.", "info": "Write file node can specify encoding of data.",
"x": 230, "x": 170,
"y": 740, "y": 140,
"wires": [] "wires": []
}, },
{ {
"id": "72b37cc8.177054", "id": "72b37cc8.177054",
"type": "file", "type": "file",
"z": "4b63452d.672afc", "z": "6312c0588348b2d4",
"name": "", "name": "",
"filename": "/tmp/hello.txt", "filename": "/tmp/hello.txt",
"appendNewline": true, "appendNewline": true,
"createDir": false, "createDir": false,
"overwriteFile": "true", "overwriteFile": "true",
"encoding": "base64", "encoding": "base64",
"x": 400, "x": 420,
"y": 820, "y": 220,
"wires": [ "wires": [
[ [
"2da33ec.f45cac2" "2da33ec.f45cac2"
@ -59,7 +59,7 @@
{ {
"id": "2e814354.278c8c", "id": "2e814354.278c8c",
"type": "debug", "type": "debug",
"z": "4b63452d.672afc", "z": "6312c0588348b2d4",
"name": "", "name": "",
"active": true, "active": true,
"tosidebar": true, "tosidebar": true,
@ -68,22 +68,22 @@
"complete": "false", "complete": "false",
"statusVal": "", "statusVal": "",
"statusType": "auto", "statusType": "auto",
"x": 790, "x": 810,
"y": 820, "y": 220,
"wires": [] "wires": []
}, },
{ {
"id": "2da33ec.f45cac2", "id": "2da33ec.f45cac2",
"type": "file in", "type": "file in",
"z": "4b63452d.672afc", "z": "6312c0588348b2d4",
"name": "", "name": "",
"filename": "/tmp/hello.txt", "filename": "/tmp/hello.txt",
"format": "utf8", "format": "utf8",
"chunk": false, "chunk": false,
"sendError": false, "sendError": false,
"encoding": "none", "encoding": "none",
"x": 600, "x": 620,
"y": 820, "y": 220,
"wires": [ "wires": [
[ [
"2e814354.278c8c" "2e814354.278c8c"
@ -93,21 +93,21 @@
{ {
"id": "ec754c99.84bfd", "id": "ec754c99.84bfd",
"type": "comment", "type": "comment",
"z": "4b63452d.672afc", "z": "6312c0588348b2d4",
"name": "↓write string with base64 encoding", "name": "↓write string with base64 encoding",
"info": "", "info": "",
"x": 460, "x": 480,
"y": 780, "y": 180,
"wires": [] "wires": []
}, },
{ {
"id": "3e6704ff.4ce25c", "id": "3e6704ff.4ce25c",
"type": "comment", "type": "comment",
"z": "4b63452d.672afc", "z": "6312c0588348b2d4",
"name": "↑read result from file", "name": "↑read result from file",
"info": "", "info": "",
"x": 610, "x": 630,
"y": 860, "y": 260,
"wires": [] "wires": []
} }
] ]