@node-red/nodes 2.1.2 → 2.2.0-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/core/common/20-inject.html +10 -8
- package/core/common/20-inject.js +2 -8
- package/core/common/21-debug.js +13 -1
- package/core/function/10-function.html +6 -4
- package/core/function/10-function.js +1 -2
- package/core/function/89-delay.js +1 -0
- package/core/function/90-exec.js +3 -3
- package/core/function/rbe.js +1 -1
- package/core/network/21-httprequest.js +8 -10
- package/core/network/22-websocket.html +6 -2
- package/core/network/22-websocket.js +22 -14
- package/core/network/31-tcpin.html +126 -20
- package/core/network/31-tcpin.js +162 -29
- package/core/parsers/70-JSON.js +5 -1
- package/core/storage/10-file.js +1 -3
- package/examples/common/link/03 - Link call.json +156 -0
- package/examples/storage/{file/01 - Write string to a file.json → read file/01 - Read string from a file.json } +22 -22
- package/examples/storage/{file-in → read file}/02 - Read data in specified encoding.json +23 -22
- package/examples/storage/{file-in → read file}/03 - Read data breaking lines into messages.json +25 -25
- package/examples/storage/{file-in → read file}/04 - Create a message stream.json +37 -37
- package/examples/storage/{file-in/01 - Read string from a file.json → write file/01 - Write string to a file.json } +15 -15
- package/examples/storage/{file → write file}/02 - Write string to a file specified by property.json +22 -22
- package/examples/storage/{file → write file}/03 - Delete a file.json +16 -16
- package/examples/storage/{file → write file}/04 - Specify encoding of written data.json +23 -23
- package/locales/de/common/20-inject.html +2 -2
- package/locales/de/common/21-debug.html +6 -6
- package/locales/de/common/24-complete.html +2 -2
- package/locales/de/common/25-catch.html +4 -4
- package/locales/de/common/60-link.html +2 -2
- package/locales/de/function/10-function.html +1 -1
- package/locales/de/function/10-switch.html +1 -1
- package/locales/de/function/90-exec.html +3 -3
- package/locales/de/messages.json +12 -12
- package/locales/de/network/10-mqtt.html +2 -2
- package/locales/de/network/21-httpin.html +3 -3
- package/locales/de/parsers/70-JSON.html +3 -3
- package/locales/de/sequence/17-split.html +6 -6
- package/locales/de/sequence/18-sort.html +2 -2
- package/locales/de/storage/10-file.html +1 -1
- package/locales/en-US/function/80-template.html +1 -1
- package/locales/en-US/function/89-delay.html +1 -1
- package/locales/en-US/function/rbe.html +2 -2
- package/locales/en-US/messages.json +8 -5
- package/locales/en-US/network/10-mqtt.html +1 -1
- package/locales/en-US/network/21-httprequest.html +1 -1
- package/locales/en-US/sequence/17-split.html +1 -1
- package/locales/ja/common/60-link.html +9 -0
- package/locales/ja/function/80-template.html +2 -0
- package/locales/ja/function/89-delay.html +5 -2
- package/locales/ja/function/rbe.html +1 -1
- package/locales/ja/messages.json +34 -7
- package/locales/ja/network/10-mqtt.html +65 -4
- package/locales/ja/parsers/70-CSV.html +1 -1
- package/locales/ja/sequence/17-split.html +5 -2
- package/locales/ko/messages.json +2 -2
- package/locales/ru/messages.json +2 -2
- package/locales/zh-CN/messages.json +2 -2
- package/locales/zh-TW/messages.json +2 -2
- package/package.json +8 -8
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
{
|
|
3
3
|
"id": "8997398f.c5d628",
|
|
4
4
|
"type": "inject",
|
|
5
|
-
"z": "
|
|
5
|
+
"z": "6312c0588348b2d4",
|
|
6
6
|
"name": "",
|
|
7
7
|
"props": [
|
|
8
8
|
{
|
|
@@ -20,8 +20,8 @@
|
|
|
20
20
|
"topic": "",
|
|
21
21
|
"payload": "😀",
|
|
22
22
|
"payloadType": "str",
|
|
23
|
-
"x":
|
|
24
|
-
"y":
|
|
23
|
+
"x": 170,
|
|
24
|
+
"y": 260,
|
|
25
25
|
"wires": [
|
|
26
26
|
[
|
|
27
27
|
"56e32d23.050f44"
|
|
@@ -31,25 +31,25 @@
|
|
|
31
31
|
{
|
|
32
32
|
"id": "4e598e65.1799d",
|
|
33
33
|
"type": "comment",
|
|
34
|
-
"z": "
|
|
34
|
+
"z": "6312c0588348b2d4",
|
|
35
35
|
"name": "Read data in specified encoding",
|
|
36
|
-
"info": "
|
|
37
|
-
"x":
|
|
38
|
-
"y":
|
|
36
|
+
"info": "Read file node can specify encoding of data read from a file.",
|
|
37
|
+
"x": 190,
|
|
38
|
+
"y": 180,
|
|
39
39
|
"wires": []
|
|
40
40
|
},
|
|
41
41
|
{
|
|
42
42
|
"id": "56e32d23.050f44",
|
|
43
43
|
"type": "file",
|
|
44
|
-
"z": "
|
|
44
|
+
"z": "6312c0588348b2d4",
|
|
45
45
|
"name": "",
|
|
46
46
|
"filename": "/tmp/hello.txt",
|
|
47
47
|
"appendNewline": true,
|
|
48
48
|
"createDir": false,
|
|
49
49
|
"overwriteFile": "true",
|
|
50
50
|
"encoding": "none",
|
|
51
|
-
"x":
|
|
52
|
-
"y":
|
|
51
|
+
"x": 340,
|
|
52
|
+
"y": 260,
|
|
53
53
|
"wires": [
|
|
54
54
|
[
|
|
55
55
|
"38fa0579.f2cd8a"
|
|
@@ -59,7 +59,7 @@
|
|
|
59
59
|
{
|
|
60
60
|
"id": "d28c8994.99c0a8",
|
|
61
61
|
"type": "debug",
|
|
62
|
-
"z": "
|
|
62
|
+
"z": "6312c0588348b2d4",
|
|
63
63
|
"name": "",
|
|
64
64
|
"active": true,
|
|
65
65
|
"tosidebar": true,
|
|
@@ -68,22 +68,23 @@
|
|
|
68
68
|
"complete": "false",
|
|
69
69
|
"statusVal": "",
|
|
70
70
|
"statusType": "auto",
|
|
71
|
-
"x":
|
|
72
|
-
"y":
|
|
71
|
+
"x": 730,
|
|
72
|
+
"y": 260,
|
|
73
73
|
"wires": []
|
|
74
74
|
},
|
|
75
75
|
{
|
|
76
76
|
"id": "38fa0579.f2cd8a",
|
|
77
77
|
"type": "file in",
|
|
78
|
-
"z": "
|
|
78
|
+
"z": "6312c0588348b2d4",
|
|
79
79
|
"name": "",
|
|
80
80
|
"filename": "/tmp/hello.txt",
|
|
81
81
|
"format": "utf8",
|
|
82
82
|
"chunk": false,
|
|
83
83
|
"sendError": false,
|
|
84
84
|
"encoding": "base64",
|
|
85
|
-
"
|
|
86
|
-
"
|
|
85
|
+
"allProps": false,
|
|
86
|
+
"x": 540,
|
|
87
|
+
"y": 260,
|
|
87
88
|
"wires": [
|
|
88
89
|
[
|
|
89
90
|
"d28c8994.99c0a8"
|
|
@@ -93,21 +94,21 @@
|
|
|
93
94
|
{
|
|
94
95
|
"id": "fa22ca20.ae4528",
|
|
95
96
|
"type": "comment",
|
|
96
|
-
"z": "
|
|
97
|
+
"z": "6312c0588348b2d4",
|
|
97
98
|
"name": "↑read data from file as base64 string",
|
|
98
99
|
"info": "",
|
|
99
|
-
"x":
|
|
100
|
-
"y":
|
|
100
|
+
"x": 600,
|
|
101
|
+
"y": 300,
|
|
101
102
|
"wires": []
|
|
102
103
|
},
|
|
103
104
|
{
|
|
104
105
|
"id": "148e25ad.98891a",
|
|
105
106
|
"type": "comment",
|
|
106
|
-
"z": "
|
|
107
|
+
"z": "6312c0588348b2d4",
|
|
107
108
|
"name": "↓write to /tmp/hello.txt",
|
|
108
109
|
"info": "",
|
|
109
|
-
"x":
|
|
110
|
-
"y":
|
|
110
|
+
"x": 360,
|
|
111
|
+
"y": 220,
|
|
111
112
|
"wires": []
|
|
112
113
|
}
|
|
113
114
|
]
|
package/examples/storage/{file-in → read file}/03 - Read data breaking lines into messages.json
RENAMED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
{
|
|
3
3
|
"id": "6a0b1d03.d4cee4",
|
|
4
4
|
"type": "inject",
|
|
5
|
-
"z": "
|
|
5
|
+
"z": "6312c0588348b2d4",
|
|
6
6
|
"name": "",
|
|
7
7
|
"props": [
|
|
8
8
|
{
|
|
@@ -20,8 +20,8 @@
|
|
|
20
20
|
"topic": "",
|
|
21
21
|
"payload": "",
|
|
22
22
|
"payloadType": "date",
|
|
23
|
-
"x":
|
|
24
|
-
"y":
|
|
23
|
+
"x": 160,
|
|
24
|
+
"y": 220,
|
|
25
25
|
"wires": [
|
|
26
26
|
[
|
|
27
27
|
"d4b00cb7.a5a23"
|
|
@@ -31,25 +31,25 @@
|
|
|
31
31
|
{
|
|
32
32
|
"id": "f17ea1d1.8ecc3",
|
|
33
33
|
"type": "comment",
|
|
34
|
-
"z": "
|
|
34
|
+
"z": "6312c0588348b2d4",
|
|
35
35
|
"name": "Read data breaking lines into individual messages",
|
|
36
|
-
"info": "
|
|
37
|
-
"x":
|
|
38
|
-
"y":
|
|
36
|
+
"info": "Read file node can break read text into messages with individual lines",
|
|
37
|
+
"x": 230,
|
|
38
|
+
"y": 140,
|
|
39
39
|
"wires": []
|
|
40
40
|
},
|
|
41
41
|
{
|
|
42
42
|
"id": "99ae7806.1d6428",
|
|
43
43
|
"type": "file",
|
|
44
|
-
"z": "
|
|
44
|
+
"z": "6312c0588348b2d4",
|
|
45
45
|
"name": "",
|
|
46
46
|
"filename": "/tmp/hello.txt",
|
|
47
47
|
"appendNewline": true,
|
|
48
48
|
"createDir": false,
|
|
49
49
|
"overwriteFile": "true",
|
|
50
50
|
"encoding": "none",
|
|
51
|
-
"x":
|
|
52
|
-
"y":
|
|
51
|
+
"x": 480,
|
|
52
|
+
"y": 220,
|
|
53
53
|
"wires": [
|
|
54
54
|
[
|
|
55
55
|
"70d7892f.d27db8"
|
|
@@ -59,7 +59,7 @@
|
|
|
59
59
|
{
|
|
60
60
|
"id": "7ed8282c.92b338",
|
|
61
61
|
"type": "debug",
|
|
62
|
-
"z": "
|
|
62
|
+
"z": "6312c0588348b2d4",
|
|
63
63
|
"name": "",
|
|
64
64
|
"active": true,
|
|
65
65
|
"tosidebar": true,
|
|
@@ -68,22 +68,22 @@
|
|
|
68
68
|
"complete": "false",
|
|
69
69
|
"statusVal": "",
|
|
70
70
|
"statusType": "auto",
|
|
71
|
-
"x":
|
|
72
|
-
"y":
|
|
71
|
+
"x": 750,
|
|
72
|
+
"y": 280,
|
|
73
73
|
"wires": []
|
|
74
74
|
},
|
|
75
75
|
{
|
|
76
76
|
"id": "70d7892f.d27db8",
|
|
77
77
|
"type": "file in",
|
|
78
|
-
"z": "
|
|
78
|
+
"z": "6312c0588348b2d4",
|
|
79
79
|
"name": "",
|
|
80
80
|
"filename": "/tmp/hello.txt",
|
|
81
81
|
"format": "lines",
|
|
82
82
|
"chunk": false,
|
|
83
83
|
"sendError": false,
|
|
84
84
|
"encoding": "none",
|
|
85
|
-
"x":
|
|
86
|
-
"y":
|
|
85
|
+
"x": 560,
|
|
86
|
+
"y": 280,
|
|
87
87
|
"wires": [
|
|
88
88
|
[
|
|
89
89
|
"7ed8282c.92b338"
|
|
@@ -93,27 +93,27 @@
|
|
|
93
93
|
{
|
|
94
94
|
"id": "c1b7e05.1d94b2",
|
|
95
95
|
"type": "comment",
|
|
96
|
-
"z": "
|
|
96
|
+
"z": "6312c0588348b2d4",
|
|
97
97
|
"name": "↑read data from file breaking lines into messages",
|
|
98
98
|
"info": "",
|
|
99
|
-
"x":
|
|
100
|
-
"y":
|
|
99
|
+
"x": 660,
|
|
100
|
+
"y": 320,
|
|
101
101
|
"wires": []
|
|
102
102
|
},
|
|
103
103
|
{
|
|
104
104
|
"id": "a5f647b2.cf27a8",
|
|
105
105
|
"type": "comment",
|
|
106
|
-
"z": "
|
|
106
|
+
"z": "6312c0588348b2d4",
|
|
107
107
|
"name": "↓write to /tmp/hello.txt",
|
|
108
108
|
"info": "",
|
|
109
|
-
"x":
|
|
110
|
-
"y":
|
|
109
|
+
"x": 500,
|
|
110
|
+
"y": 180,
|
|
111
111
|
"wires": []
|
|
112
112
|
},
|
|
113
113
|
{
|
|
114
114
|
"id": "d4b00cb7.a5a23",
|
|
115
115
|
"type": "template",
|
|
116
|
-
"z": "
|
|
116
|
+
"z": "6312c0588348b2d4",
|
|
117
117
|
"name": "data",
|
|
118
118
|
"field": "payload",
|
|
119
119
|
"fieldType": "msg",
|
|
@@ -121,8 +121,8 @@
|
|
|
121
121
|
"syntax": "plain",
|
|
122
122
|
"template": "one\ntwo\nthree!",
|
|
123
123
|
"output": "str",
|
|
124
|
-
"x":
|
|
125
|
-
"y":
|
|
124
|
+
"x": 310,
|
|
125
|
+
"y": 220,
|
|
126
126
|
"wires": [
|
|
127
127
|
[
|
|
128
128
|
"99ae7806.1d6428"
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
{
|
|
3
3
|
"id": "bdd57acc.2edc48",
|
|
4
4
|
"type": "inject",
|
|
5
|
-
"z": "
|
|
5
|
+
"z": "6312c0588348b2d4",
|
|
6
6
|
"name": "",
|
|
7
7
|
"props": [
|
|
8
8
|
{
|
|
@@ -20,8 +20,8 @@
|
|
|
20
20
|
"topic": "",
|
|
21
21
|
"payload": "",
|
|
22
22
|
"payloadType": "date",
|
|
23
|
-
"x":
|
|
24
|
-
"y":
|
|
23
|
+
"x": 180,
|
|
24
|
+
"y": 220,
|
|
25
25
|
"wires": [
|
|
26
26
|
[
|
|
27
27
|
"7a069b01.0c2324"
|
|
@@ -31,25 +31,25 @@
|
|
|
31
31
|
{
|
|
32
32
|
"id": "1fd12220.33953e",
|
|
33
33
|
"type": "comment",
|
|
34
|
-
"z": "
|
|
34
|
+
"z": "6312c0588348b2d4",
|
|
35
35
|
"name": "Creating a message stream from lines of data",
|
|
36
|
-
"info": "
|
|
37
|
-
"x":
|
|
38
|
-
"y":
|
|
36
|
+
"info": "Read file node can break read text into messages with individual lines. The messages creates a stream of messages.",
|
|
37
|
+
"x": 230,
|
|
38
|
+
"y": 140,
|
|
39
39
|
"wires": []
|
|
40
40
|
},
|
|
41
41
|
{
|
|
42
42
|
"id": "ab6eb213.2a08d",
|
|
43
43
|
"type": "file",
|
|
44
|
-
"z": "
|
|
44
|
+
"z": "6312c0588348b2d4",
|
|
45
45
|
"name": "",
|
|
46
46
|
"filename": "/tmp/hello.txt",
|
|
47
47
|
"appendNewline": true,
|
|
48
48
|
"createDir": false,
|
|
49
49
|
"overwriteFile": "true",
|
|
50
50
|
"encoding": "none",
|
|
51
|
-
"x":
|
|
52
|
-
"y":
|
|
51
|
+
"x": 500,
|
|
52
|
+
"y": 220,
|
|
53
53
|
"wires": [
|
|
54
54
|
[
|
|
55
55
|
"b7ed49b0.649fb8"
|
|
@@ -59,7 +59,7 @@
|
|
|
59
59
|
{
|
|
60
60
|
"id": "c48d8ae0.9ff3a8",
|
|
61
61
|
"type": "debug",
|
|
62
|
-
"z": "
|
|
62
|
+
"z": "6312c0588348b2d4",
|
|
63
63
|
"name": "",
|
|
64
64
|
"active": true,
|
|
65
65
|
"tosidebar": true,
|
|
@@ -68,22 +68,22 @@
|
|
|
68
68
|
"complete": "false",
|
|
69
69
|
"statusVal": "",
|
|
70
70
|
"statusType": "auto",
|
|
71
|
-
"x":
|
|
72
|
-
"y":
|
|
71
|
+
"x": 770,
|
|
72
|
+
"y": 320,
|
|
73
73
|
"wires": []
|
|
74
74
|
},
|
|
75
75
|
{
|
|
76
76
|
"id": "b7ed49b0.649fb8",
|
|
77
77
|
"type": "file in",
|
|
78
|
-
"z": "
|
|
78
|
+
"z": "6312c0588348b2d4",
|
|
79
79
|
"name": "",
|
|
80
80
|
"filename": "/tmp/hello.txt",
|
|
81
81
|
"format": "lines",
|
|
82
82
|
"chunk": false,
|
|
83
83
|
"sendError": false,
|
|
84
84
|
"encoding": "none",
|
|
85
|
-
"x":
|
|
86
|
-
"y":
|
|
85
|
+
"x": 240,
|
|
86
|
+
"y": 320,
|
|
87
87
|
"wires": [
|
|
88
88
|
[
|
|
89
89
|
"83073ebe.fcce4"
|
|
@@ -93,27 +93,27 @@
|
|
|
93
93
|
{
|
|
94
94
|
"id": "3c33e69f.6a04ba",
|
|
95
95
|
"type": "comment",
|
|
96
|
-
"z": "
|
|
96
|
+
"z": "6312c0588348b2d4",
|
|
97
97
|
"name": "↑read data from file breaking lines into messages",
|
|
98
98
|
"info": "",
|
|
99
|
-
"x":
|
|
100
|
-
"y":
|
|
99
|
+
"x": 340,
|
|
100
|
+
"y": 360,
|
|
101
101
|
"wires": []
|
|
102
102
|
},
|
|
103
103
|
{
|
|
104
104
|
"id": "3598bf7d.5712a",
|
|
105
105
|
"type": "comment",
|
|
106
|
-
"z": "
|
|
106
|
+
"z": "6312c0588348b2d4",
|
|
107
107
|
"name": "↓write to /tmp/hello.txt",
|
|
108
108
|
"info": "",
|
|
109
|
-
"x":
|
|
110
|
-
"y":
|
|
109
|
+
"x": 520,
|
|
110
|
+
"y": 180,
|
|
111
111
|
"wires": []
|
|
112
112
|
},
|
|
113
113
|
{
|
|
114
114
|
"id": "7a069b01.0c2324",
|
|
115
115
|
"type": "template",
|
|
116
|
-
"z": "
|
|
116
|
+
"z": "6312c0588348b2d4",
|
|
117
117
|
"name": "data",
|
|
118
118
|
"field": "payload",
|
|
119
119
|
"fieldType": "msg",
|
|
@@ -121,8 +121,8 @@
|
|
|
121
121
|
"syntax": "plain",
|
|
122
122
|
"template": "Apple\nBanana\nGrape\nOrange",
|
|
123
123
|
"output": "str",
|
|
124
|
-
"x":
|
|
125
|
-
"y":
|
|
124
|
+
"x": 330,
|
|
125
|
+
"y": 220,
|
|
126
126
|
"wires": [
|
|
127
127
|
[
|
|
128
128
|
"ab6eb213.2a08d"
|
|
@@ -132,7 +132,7 @@
|
|
|
132
132
|
{
|
|
133
133
|
"id": "8d4ed1d0.821fe",
|
|
134
134
|
"type": "join",
|
|
135
|
-
"z": "
|
|
135
|
+
"z": "6312c0588348b2d4",
|
|
136
136
|
"name": "",
|
|
137
137
|
"mode": "auto",
|
|
138
138
|
"build": "string",
|
|
@@ -145,8 +145,8 @@
|
|
|
145
145
|
"timeout": "",
|
|
146
146
|
"count": "",
|
|
147
147
|
"reduceRight": false,
|
|
148
|
-
"x":
|
|
149
|
-
"y":
|
|
148
|
+
"x": 590,
|
|
149
|
+
"y": 320,
|
|
150
150
|
"wires": [
|
|
151
151
|
[
|
|
152
152
|
"c48d8ae0.9ff3a8"
|
|
@@ -156,7 +156,7 @@
|
|
|
156
156
|
{
|
|
157
157
|
"id": "83073ebe.fcce4",
|
|
158
158
|
"type": "switch",
|
|
159
|
-
"z": "
|
|
159
|
+
"z": "6312c0588348b2d4",
|
|
160
160
|
"name": "< D",
|
|
161
161
|
"property": "payload",
|
|
162
162
|
"propertyType": "msg",
|
|
@@ -170,8 +170,8 @@
|
|
|
170
170
|
"checkall": "true",
|
|
171
171
|
"repair": true,
|
|
172
172
|
"outputs": 1,
|
|
173
|
-
"x":
|
|
174
|
-
"y":
|
|
173
|
+
"x": 430,
|
|
174
|
+
"y": 320,
|
|
175
175
|
"wires": [
|
|
176
176
|
[
|
|
177
177
|
"8d4ed1d0.821fe"
|
|
@@ -181,21 +181,21 @@
|
|
|
181
181
|
{
|
|
182
182
|
"id": "2088e195.f7aebe",
|
|
183
183
|
"type": "comment",
|
|
184
|
-
"z": "
|
|
184
|
+
"z": "6312c0588348b2d4",
|
|
185
185
|
"name": "↓filter data before \"D\"",
|
|
186
186
|
"info": "",
|
|
187
|
-
"x":
|
|
188
|
-
"y":
|
|
187
|
+
"x": 480,
|
|
188
|
+
"y": 280,
|
|
189
189
|
"wires": []
|
|
190
190
|
},
|
|
191
191
|
{
|
|
192
192
|
"id": "b848cdc7.61e06",
|
|
193
193
|
"type": "comment",
|
|
194
|
-
"z": "
|
|
194
|
+
"z": "6312c0588348b2d4",
|
|
195
195
|
"name": "↑join to single string",
|
|
196
196
|
"info": "",
|
|
197
|
-
"x":
|
|
198
|
-
"y":
|
|
197
|
+
"x": 630,
|
|
198
|
+
"y": 360,
|
|
199
199
|
"wires": []
|
|
200
200
|
}
|
|
201
201
|
]
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
{
|
|
3
3
|
"id": "84222b92.d65d18",
|
|
4
4
|
"type": "inject",
|
|
5
|
-
"z": "
|
|
5
|
+
"z": "5132b95f037524f9",
|
|
6
6
|
"name": "",
|
|
7
7
|
"props": [
|
|
8
8
|
{
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
"topic": "",
|
|
21
21
|
"payload": "Hello, World!",
|
|
22
22
|
"payloadType": "str",
|
|
23
|
-
"x":
|
|
23
|
+
"x": 150,
|
|
24
24
|
"y": 220,
|
|
25
25
|
"wires": [
|
|
26
26
|
[
|
|
@@ -31,24 +31,24 @@
|
|
|
31
31
|
{
|
|
32
32
|
"id": "7b014430.dfd94c",
|
|
33
33
|
"type": "comment",
|
|
34
|
-
"z": "
|
|
34
|
+
"z": "5132b95f037524f9",
|
|
35
35
|
"name": "Write string to a file, then read from the file",
|
|
36
|
-
"info": "
|
|
37
|
-
"x":
|
|
36
|
+
"info": "Write file node can write string from a file.",
|
|
37
|
+
"x": 180,
|
|
38
38
|
"y": 140,
|
|
39
39
|
"wires": []
|
|
40
40
|
},
|
|
41
41
|
{
|
|
42
42
|
"id": "b4b9f603.739598",
|
|
43
43
|
"type": "file",
|
|
44
|
-
"z": "
|
|
44
|
+
"z": "5132b95f037524f9",
|
|
45
45
|
"name": "",
|
|
46
46
|
"filename": "/tmp/hello.txt",
|
|
47
47
|
"appendNewline": true,
|
|
48
48
|
"createDir": false,
|
|
49
49
|
"overwriteFile": "true",
|
|
50
50
|
"encoding": "none",
|
|
51
|
-
"x":
|
|
51
|
+
"x": 340,
|
|
52
52
|
"y": 220,
|
|
53
53
|
"wires": [
|
|
54
54
|
[
|
|
@@ -59,7 +59,7 @@
|
|
|
59
59
|
{
|
|
60
60
|
"id": "2587adb9.7e60f2",
|
|
61
61
|
"type": "debug",
|
|
62
|
-
"z": "
|
|
62
|
+
"z": "5132b95f037524f9",
|
|
63
63
|
"name": "",
|
|
64
64
|
"active": true,
|
|
65
65
|
"tosidebar": true,
|
|
@@ -68,21 +68,21 @@
|
|
|
68
68
|
"complete": "false",
|
|
69
69
|
"statusVal": "",
|
|
70
70
|
"statusType": "auto",
|
|
71
|
-
"x":
|
|
71
|
+
"x": 730,
|
|
72
72
|
"y": 220,
|
|
73
73
|
"wires": []
|
|
74
74
|
},
|
|
75
75
|
{
|
|
76
76
|
"id": "6dc01cac.5c4bf4",
|
|
77
77
|
"type": "file in",
|
|
78
|
-
"z": "
|
|
78
|
+
"z": "5132b95f037524f9",
|
|
79
79
|
"name": "",
|
|
80
80
|
"filename": "/tmp/hello.txt",
|
|
81
81
|
"format": "utf8",
|
|
82
82
|
"chunk": false,
|
|
83
83
|
"sendError": false,
|
|
84
84
|
"encoding": "none",
|
|
85
|
-
"x":
|
|
85
|
+
"x": 540,
|
|
86
86
|
"y": 220,
|
|
87
87
|
"wires": [
|
|
88
88
|
[
|
|
@@ -93,20 +93,20 @@
|
|
|
93
93
|
{
|
|
94
94
|
"id": "f4b4309a.3b78a",
|
|
95
95
|
"type": "comment",
|
|
96
|
-
"z": "
|
|
96
|
+
"z": "5132b95f037524f9",
|
|
97
97
|
"name": "↑read result from file",
|
|
98
98
|
"info": "",
|
|
99
|
-
"x":
|
|
99
|
+
"x": 550,
|
|
100
100
|
"y": 260,
|
|
101
101
|
"wires": []
|
|
102
102
|
},
|
|
103
103
|
{
|
|
104
104
|
"id": "672d3693.3cabd8",
|
|
105
105
|
"type": "comment",
|
|
106
|
-
"z": "
|
|
106
|
+
"z": "5132b95f037524f9",
|
|
107
107
|
"name": "↓write to /tmp/hello.txt",
|
|
108
108
|
"info": "",
|
|
109
|
-
"x":
|
|
109
|
+
"x": 360,
|
|
110
110
|
"y": 180,
|
|
111
111
|
"wires": []
|
|
112
112
|
}
|
package/examples/storage/{file → write file}/02 - Write string to a file specified by property.json
RENAMED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
{
|
|
3
3
|
"id": "704479e1.399388",
|
|
4
4
|
"type": "inject",
|
|
5
|
-
"z": "
|
|
5
|
+
"z": "6312c0588348b2d4",
|
|
6
6
|
"name": "",
|
|
7
7
|
"props": [
|
|
8
8
|
{
|
|
@@ -25,8 +25,8 @@
|
|
|
25
25
|
"topic": "",
|
|
26
26
|
"payload": "Hello, World!",
|
|
27
27
|
"payloadType": "str",
|
|
28
|
-
"x":
|
|
29
|
-
"y":
|
|
28
|
+
"x": 190,
|
|
29
|
+
"y": 260,
|
|
30
30
|
"wires": [
|
|
31
31
|
[
|
|
32
32
|
"402f3b7e.988014"
|
|
@@ -36,25 +36,25 @@
|
|
|
36
36
|
{
|
|
37
37
|
"id": "8e876a75.e9beb8",
|
|
38
38
|
"type": "comment",
|
|
39
|
-
"z": "
|
|
39
|
+
"z": "6312c0588348b2d4",
|
|
40
40
|
"name": "Write string to a file specied by filename property, the read from the file",
|
|
41
|
-
"info": "
|
|
42
|
-
"x":
|
|
43
|
-
"y":
|
|
41
|
+
"info": "Write file node can target file using `filename` property.",
|
|
42
|
+
"x": 310,
|
|
43
|
+
"y": 180,
|
|
44
44
|
"wires": []
|
|
45
45
|
},
|
|
46
46
|
{
|
|
47
47
|
"id": "402f3b7e.988014",
|
|
48
48
|
"type": "file",
|
|
49
|
-
"z": "
|
|
49
|
+
"z": "6312c0588348b2d4",
|
|
50
50
|
"name": "",
|
|
51
51
|
"filename": "",
|
|
52
52
|
"appendNewline": true,
|
|
53
53
|
"createDir": false,
|
|
54
54
|
"overwriteFile": "true",
|
|
55
55
|
"encoding": "none",
|
|
56
|
-
"x":
|
|
57
|
-
"y":
|
|
56
|
+
"x": 350,
|
|
57
|
+
"y": 260,
|
|
58
58
|
"wires": [
|
|
59
59
|
[
|
|
60
60
|
"26e077d6.bbcd98"
|
|
@@ -64,7 +64,7 @@
|
|
|
64
64
|
{
|
|
65
65
|
"id": "97b6b6b2.a54b38",
|
|
66
66
|
"type": "debug",
|
|
67
|
-
"z": "
|
|
67
|
+
"z": "6312c0588348b2d4",
|
|
68
68
|
"name": "",
|
|
69
69
|
"active": true,
|
|
70
70
|
"tosidebar": true,
|
|
@@ -73,22 +73,22 @@
|
|
|
73
73
|
"complete": "false",
|
|
74
74
|
"statusVal": "",
|
|
75
75
|
"statusType": "auto",
|
|
76
|
-
"x":
|
|
77
|
-
"y":
|
|
76
|
+
"x": 730,
|
|
77
|
+
"y": 260,
|
|
78
78
|
"wires": []
|
|
79
79
|
},
|
|
80
80
|
{
|
|
81
81
|
"id": "26e077d6.bbcd98",
|
|
82
82
|
"type": "file in",
|
|
83
|
-
"z": "
|
|
83
|
+
"z": "6312c0588348b2d4",
|
|
84
84
|
"name": "",
|
|
85
85
|
"filename": "/tmp/hello.txt",
|
|
86
86
|
"format": "utf8",
|
|
87
87
|
"chunk": false,
|
|
88
88
|
"sendError": false,
|
|
89
89
|
"encoding": "none",
|
|
90
|
-
"x":
|
|
91
|
-
"y":
|
|
90
|
+
"x": 540,
|
|
91
|
+
"y": 260,
|
|
92
92
|
"wires": [
|
|
93
93
|
[
|
|
94
94
|
"97b6b6b2.a54b38"
|
|
@@ -98,21 +98,21 @@
|
|
|
98
98
|
{
|
|
99
99
|
"id": "85062297.da79",
|
|
100
100
|
"type": "comment",
|
|
101
|
-
"z": "
|
|
101
|
+
"z": "6312c0588348b2d4",
|
|
102
102
|
"name": "↑read result from file",
|
|
103
103
|
"info": "",
|
|
104
|
-
"x":
|
|
105
|
-
"y":
|
|
104
|
+
"x": 550,
|
|
105
|
+
"y": 300,
|
|
106
106
|
"wires": []
|
|
107
107
|
},
|
|
108
108
|
{
|
|
109
109
|
"id": "7316c4fc.b1dcdc",
|
|
110
110
|
"type": "comment",
|
|
111
|
-
"z": "
|
|
111
|
+
"z": "6312c0588348b2d4",
|
|
112
112
|
"name": "↓write to file specified by filename property",
|
|
113
113
|
"info": "",
|
|
114
|
-
"x":
|
|
115
|
-
"y":
|
|
114
|
+
"x": 460,
|
|
115
|
+
"y": 220,
|
|
116
116
|
"wires": []
|
|
117
117
|
}
|
|
118
118
|
]
|