You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, I am a novice node-red user. I have a simple flow:
where I read MQTT input and store it in an Oracle Autonomous Data Warehouse.
I managed to find out that the incoming payload with as output property "parsed json object" can be used in the oracledb node in bind variables like this:
This is the payload (type object): {"read_at":"2024-08-06T14:16:25+02:00","delivered":"6883.212","currently_delivered":"0.000"}
Query:
And using this field mapping: Where can I find that the bind variables in my query have to be :valueOfValuesArrayIndex0; :valueOfValuesArrayIndex1,…?
I have a second flow where the input is just a string value (e.g. 2.84) , I tried to do the same thing there but I never get the value in my table.
Query is :
In the end I added a string at the beginning and end of my message string to convert it into a dummy json format {"running_month":"2.84"} and then I can use field mapping
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
Hi, I am a novice node-red user. I have a simple flow:
where I read MQTT input and store it in an Oracle Autonomous Data Warehouse.
I managed to find out that the incoming payload with as output property "parsed json object" can be used in the oracledb node in bind variables like this:
This is the payload (type object): {"read_at":"2024-08-06T14:16:25+02:00","delivered":"6883.212","currently_delivered":"0.000"}


Query:
And using this field mapping:
Where can I find that the bind variables in my query have to be :valueOfValuesArrayIndex0; :valueOfValuesArrayIndex1,…?
I have a second flow where the input is just a string value (e.g. 2.84) , I tried to do the same thing there but I never get the value in my table.
Query is :
I tried to put in the mapping :
Or
But no luck.
In the end I added a string at the beginning and end of my message string to convert it into a dummy json format {"running_month":"2.84"} and then I can use field mapping
Is there a better way to achieve this?
Thanks,
Luc
Beta Was this translation helpful? Give feedback.
All reactions