Hello. I want to write data from 2 directions in different columns of csv file. But my data was written in one column. I'm a little confused on this issue. and wanted to sort out this problem with you. I think this will be useful not only to me, but to all Node-red users. I have an example. Help with it.
[
{
"id": "3da047291d2d65d0",
"type": "inject",
"z": "9ee2cc1b247fc8f4",
"name": "",
"props": [
{
"p": "payload"
},
{
"p": "tip",
"v": "01",
"vt": "str"
}
],
"repeat": "",
"crontab": "",
"once": false,
"onceDelay": 0.1,
"topic": "",
"payload": "11714368",
"payloadType": "num",
"x": 380,
"y": 140,
"wires": [
[
"5dd965fe633160aa",
"511192c5688aa4dc"
]
]
},
{
"id": "5dd965fe633160aa",
"type": "debug",
"z": "9ee2cc1b247fc8f4",
"name": "02",
"active": true,
"tosidebar": true,
"console": false,
"tostatus": false,
"complete": "true",
"targetType": "full",
"statusVal": "",
"statusType": "auto",
"x": 610,
"y": 120,
"wires": []
},
{
"id": "0110c7af1cacd1f2",
"type": "debug",
"z": "9ee2cc1b247fc8f4",
"name": "03",
"active": true,
"tosidebar": true,
"console": false,
"tostatus": false,
"complete": "payload",
"targetType": "msg",
"statusVal": "",
"statusType": "auto",
"x": 850,
"y": 180,
"wires": []
},
{
"id": "9f0c382eb88ecd7c",
"type": "file",
"z": "9ee2cc1b247fc8f4",
"name": "",
"filename": "C:\\Users\\aiovi\\Downloads\\Новая папка (2)\\control.csv",
"appendNewline": true,
"createDir": true,
"overwriteFile": "false",
"encoding": "utf8",
"x": 1040,
"y": 260,
"wires": [
[]
]
},
{
"id": "e2a2f2dab63dd049",
"type": "inject",
"z": "9ee2cc1b247fc8f4",
"name": "",
"props": [
{
"p": "payload"
},
{
"p": "tip",
"v": "02",
"vt": "str"
}
],
"repeat": "",
"crontab": "",
"once": false,
"onceDelay": 0.1,
"topic": "",
"payload": "11999999",
"payloadType": "num",
"x": 380,
"y": 240,
"wires": [
[
"5dd965fe633160aa",
"511192c5688aa4dc"
]
]
},
{
"id": "89fe4c2a64df7480",
"type": "debug",
"z": "9ee2cc1b247fc8f4",
"name": "01",
"active": true,
"tosidebar": true,
"console": false,
"tostatus": false,
"complete": "payload",
"targetType": "msg",
"statusVal": "",
"statusType": "auto",
"x": 710,
"y": 300,
"wires": []
},
{
"id": "2266deadb6195e05",
"type": "csv",
"z": "9ee2cc1b247fc8f4",
"name": "",
"sep": ",",
"hdrin": true,
"hdrout": "none",
"multi": "one",
"ret": "\\r\\n",
"temp": "01,02",
"skip": "2",
"strings": true,
"include_empty_strings": false,
"include_null_values": false,
"x": 690,
"y": 180,
"wires": [
[
"9f0c382eb88ecd7c",
"0110c7af1cacd1f2"
]
]
},
{
"id": "511192c5688aa4dc",
"type": "json",
"z": "9ee2cc1b247fc8f4",
"name": "",
"property": "payload",
"action": "str",
"pretty": false,
"x": 550,
"y": 200,
"wires": [
[
"2266deadb6195e05",
"89fe4c2a64df7480"
]
]
}
]