I want to write to my data to InfluxDB through http (has to be in CLI code example: measurement, Tagkey=Tagvalue FieldKey=FieldValue Timestamp). The connection works and i can send the data to InfluxDB.
But i'm using the Siemens PLC 'plcindustry' S7 nodes. And i want to read all my variables at once and make in a function node from this data the CLI code. In the picture below you can see that it works but the msg.payload is transmitted as a string.
Now my questions:
- Can i unstringify my msg.payload? Is the easiest way!
2.Can i write from in a function node every line to a txt.file like i can do with the file nodes? (but i can't leave the function node to call the file node, or can i?)
3.A better way to approach this problem?
I know there are the InfluxDB Nodes but later i want to use Telegraf and i want to use the telegraf http listener input plugin.
Thanks at advance!