I have tried many postgres node but I can't find any node that's working.
I have a flow example here:
[
{
"id": "23fe0d38e71e8b24",
"type": "postgrestor",
"z": "ee21e3b499ee5ae7",
"name": "insert",
"query": "INSERT INTO temperature (speed1,speed2,speed3) VALUES ('{{msg.speed1}}','{{msg.speed2}}','{{msg.speed3}}');\n\n",
"postgresDB": "12bdab9c7aa12974",
"output": true,
"outputs": 1,
"x": 710,
"y": 560,
"wires": [
[
"d7d19540f0011117"
]
]
},
{
"id": "90ad42656be8d5e5",
"type": "inject",
"z": "ee21e3b499ee5ae7",
"name": "",
"props": [
{
"p": "payload"
},
{
"p": "topic",
"vt": "str"
},
{
"p": "speed1",
"v": "50",
"vt": "str"
},
{
"p": "speed2",
"v": "60",
"vt": "str"
},
{
"p": "speed3",
"v": "70",
"vt": "str"
}
],
"repeat": "",
"crontab": "",
"once": false,
"onceDelay": 0.1,
"topic": "",
"payloadType": "date",
"x": 530,
"y": 560,
"wires": [
[
"23fe0d38e71e8b24"
]
]
},
{
"id": "d7d19540f0011117",
"type": "debug",
"z": "ee21e3b499ee5ae7",
"name": "",
"active": true,
"tosidebar": true,
"console": false,
"tostatus": false,
"complete": "true",
"targetType": "full",
"statusVal": "",
"statusType": "auto",
"x": 870,
"y": 560,
"wires": []
},
{
"id": "12bdab9c7aa12974",
"type": "postgresDB",
"name": "postgres@localhost:5432/postgres",
"host": "localhost",
"hostFieldType": "str",
"port": "5432",
"portFieldType": "num",
"database": "node-red-temp",
"databaseFieldType": "str",
"ssl": "false",
"sslFieldType": "bool",
"max": "10",
"maxFieldType": "num",
"min": "1",
"minFieldType": "num",
"idle": "1000",
"idleFieldType": "num",
"connectionTimeout": "10000",
"connectionTimeoutFieldType": "num",
"user": "postgres",
"userFieldType": "str",
"password": "xxx",
"passwordFieldType": "str"
}
]
I've seen this code in other forum solution and when I tried. It's not working on my side. Do you have sample postgres node that I can try?