Feed the message you are feeding into influx into a debug node and show us what it looks like.
Is this directly from a MQTT node?
If so try setting the MQTT node to output a parsed JSON object.
Yes, i'm outputting using that option in my MQTT node.
What error message does InfluxDB give?
Theres no error, the values get inserted as strings, is there a way to convert them in node-red?
What is creating the data in the first place? Looks like that is creating the strings and that would be the best place to fix it.
First you have to decide what you want to write to the influx. The message you have shown has a nested object
bandwidth. You can't write objects to influx, only fields and tags. Look at the help text for the influx node and it will tell you what the data has to look like. First you need to design the db schema though.
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.