Thank you very much for your reply. I haven't yet got a solution. I'll do the code again. Thanks
[
{
"id": "f689f3fda0f0c8b7",
"type": "tab",
"label": "Flow 2",
"disabled": false,
"info": "",
"env": []
},
{
"id": "9d3e060be4525873",
"type": "csv",
"z": "f689f3fda0f0c8b7",
"name": "",
"sep": ",",
"hdrin": "",
"hdrout": "none",
"multi": "one",
"ret": "\\n",
"temp": "",
"skip": "0",
"strings": true,
"include_empty_strings": "",
"include_null_values": "",
"x": 370,
"y": 280,
"wires": [
[
"4a94aead22732ee2",
"300b476c220c7d9a",
"939dc8f55f8a7cf6"
]
]
},
{
"id": "4a94aead22732ee2",
"type": "change",
"z": "f689f3fda0f0c8b7",
"name": "temp 1",
"rules": [
{
"t": "set",
"p": "payload.col1",
"pt": "msg",
"to": "",
"tot": "date"
},
{
"t": "delete",
"p": "payload.col2",
"pt": "msg"
},
{
"t": "delete",
"p": "payload.col4",
"pt": "msg"
},
{
"t": "delete",
"p": "payload.col5",
"pt": "msg"
},
{
"t": "delete",
"p": "payload.col3",
"pt": "msg"
},
{
"t": "delete",
"p": "payload.col7",
"pt": "msg"
},
{
"t": "delete",
"p": "payload.col8",
"pt": "msg"
},
{
"t": "delete",
"p": "payload.col9",
"pt": "msg"
},
{
"t": "delete",
"p": "payload.col10",
"pt": "msg"
},
{
"t": "delete",
"p": "payload.col11",
"pt": "msg"
},
{
"t": "delete",
"p": "payload.col12",
"pt": "msg"
},
{
"t": "delete",
"p": "payload.col13",
"pt": "msg"
},
{
"t": "delete",
"p": "payload.col14",
"pt": "msg"
},
{
"t": "delete",
"p": "payload.col15",
"pt": "msg"
},
{
"t": "delete",
"p": "payload.col16",
"pt": "msg"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 530,
"y": 280,
"wires": [
[
"c519f951a59ae2bd"
]
]
},
{
"id": "300b476c220c7d9a",
"type": "change",
"z": "f689f3fda0f0c8b7",
"name": "temp 2",
"rules": [
{
"t": "set",
"p": "payload.col1",
"pt": "msg",
"to": "",
"tot": "date"
},
{
"t": "delete",
"p": "payload.col2",
"pt": "msg"
},
{
"t": "delete",
"p": "payload.col4",
"pt": "msg"
},
{
"t": "delete",
"p": "payload.col5",
"pt": "msg"
},
{
"t": "delete",
"p": "payload.col6",
"pt": "msg"
},
{
"t": "delete",
"p": "payload.col7",
"pt": "msg"
},
{
"t": "delete",
"p": "payload.col8",
"pt": "msg"
},
{
"t": "delete",
"p": "payload.col9",
"pt": "msg"
},
{
"t": "delete",
"p": "payload.col3",
"pt": "msg"
},
{
"t": "delete",
"p": "payload.col11",
"pt": "msg"
},
{
"t": "delete",
"p": "payload.col12",
"pt": "msg"
},
{
"t": "delete",
"p": "payload.col13",
"pt": "msg"
},
{
"t": "delete",
"p": "payload.col14",
"pt": "msg"
},
{
"t": "delete",
"p": "payload.col15",
"pt": "msg"
},
{
"t": "delete",
"p": "payload.col16",
"pt": "msg"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 530,
"y": 320,
"wires": [
[
"d1cb0640f12c8067"
]
]
},
{
"id": "d1cb0640f12c8067",
"type": "function",
"z": "f689f3fda0f0c8b7",
"name": "SVP",
"func": "var t = msg.payload.col10;\n\nvar SVP = (Math.pow(2.71828,(t / (t +238.3) * 17.2694))* 610.78)/1000;\n\nmsg.payload.svp = SVP;\nreturn msg;",
"outputs": 1,
"noerr": 0,
"initialize": "",
"finalize": "",
"libs": [],
"x": 730,
"y": 320,
"wires": [
[
"a56da7c67106b920"
]
]
},
{
"id": "a56da7c67106b920",
"type": "join",
"z": "f689f3fda0f0c8b7",
"name": "",
"mode": "auto",
"build": "string",
"property": "payload",
"propertyType": "msg",
"key": "topic",
"joiner": "\\n",
"joinerType": "str",
"accumulate": false,
"timeout": "",
"count": "",
"reduceRight": false,
"reduceExp": "",
"reduceInit": "",
"reduceInitType": "num",
"reduceFixup": "",
"x": 890,
"y": 320,
"wires": [
[
"5d492c397a9f9f47"
]
]
},
{
"id": "c519f951a59ae2bd",
"type": "function",
"z": "f689f3fda0f0c8b7",
"name": "LSVP",
"func": "var t = msg.payload.col6;\n\nvar LSVP = (Math.pow(2.71828,(t / (t +238.3) * 17.2694))* 610.78)/1000;\n\nmsg.payload.lsvp = LSVP;\nreturn msg;",
"outputs": 1,
"noerr": 0,
"initialize": "",
"finalize": "",
"libs": [],
"x": 730,
"y": 280,
"wires": [
[
"a56da7c67106b920"
]
]
},
{
"id": "5d492c397a9f9f47",
"type": "function",
"z": "f689f3fda0f0c8b7",
"name": "DDP",
"func": "var l = msg.payload.lsvp;\nvar t = msg.payload.svp;\nvar h = msg.payload.col11;\n\nvar DDP = l-(t*h/100);\n\nmsg.payload=DDP\nreturn msg;\n",
"outputs": 1,
"noerr": 0,
"initialize": "",
"finalize": "",
"libs": [],
"x": 1030,
"y": 320,
"wires": [
[
"d1037a4b58b60f69"
]
]
},
{
"id": "d1037a4b58b60f69",
"type": "debug",
"z": "f689f3fda0f0c8b7",
"name": "",
"active": true,
"tosidebar": true,
"console": false,
"tostatus": false,
"complete": "false",
"statusVal": "",
"statusType": "auto",
"x": 1010,
"y": 400,
"wires": []
},
{
"id": "2d741eeba951eccc",
"type": "tail",
"z": "f689f3fda0f0c8b7",
"name": "",
"filetype": "text",
"split": "[\\r]{0,1}\\n",
"filename": "/home/pi/Downloads/20220525.csv",
"inputs": 0,
"x": 140,
"y": 280,
"wires": [
[
"9d3e060be4525873"
]
]
},
{
"id": "07ff13bb448c7da9",
"type": "calculator",
"z": "f689f3fda0f0c8b7",
"name": "x 100",
"inputMsgField": "payload.col11",
"outputMsgField": "payload.col11",
"operation": "mult",
"constant": "100",
"round": true,
"decimals": "1",
"x": 730,
"y": 360,
"wires": [
[
"a56da7c67106b920"
]
]
},
{
"id": "939dc8f55f8a7cf6",
"type": "change",
"z": "f689f3fda0f0c8b7",
"name": "Humidity",
"rules": [
{
"t": "set",
"p": "payload.col1",
"pt": "msg",
"to": "",
"tot": "date"
},
{
"t": "delete",
"p": "payload.col2",
"pt": "msg"
},
{
"t": "delete",
"p": "payload.col4",
"pt": "msg"
},
{
"t": "delete",
"p": "payload.col5",
"pt": "msg"
},
{
"t": "delete",
"p": "payload.col6",
"pt": "msg"
},
{
"t": "delete",
"p": "payload.col7",
"pt": "msg"
},
{
"t": "delete",
"p": "payload.col8",
"pt": "msg"
},
{
"t": "delete",
"p": "payload.col9",
"pt": "msg"
},
{
"t": "delete",
"p": "payload.col10",
"pt": "msg"
},
{
"t": "delete",
"p": "payload.col3",
"pt": "msg"
},
{
"t": "delete",
"p": "payload.col12",
"pt": "msg"
},
{
"t": "delete",
"p": "payload.col13",
"pt": "msg"
},
{
"t": "delete",
"p": "payload.col14",
"pt": "msg"
},
{
"t": "delete",
"p": "payload.col15",
"pt": "msg"
},
{
"t": "delete",
"p": "payload.col16",
"pt": "msg"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 540,
"y": 360,
"wires": [
[
"07ff13bb448c7da9"
]
]
}
]