Text to msg.payload to inject in influxdb

bmsjk.txt (3.6 KB)

I am very new in node ...and I don't now how ?
I wont to inject this file in influxdb via node red.
any suggestion we apreciate.

Rgd Nicu

Welcome to the forum @NicuBioc

Where is the data coming from? Usually there are better ways then going through files.

If you haven't done so then I recommend watching this playlist: Node-RED Essentials. The videos are done by the developers of node-red. They're nice & short and to the point. You will understand a whole lot in about 1 hour. A small investment for a lot of gain.

thx Colin, data come from BMS (battery management system ).
Now is working,(i extract in json format data and I separated).
I have more one problem... One data is string when I discharge bateryy and is necessary to by number.Flow stop.
Now is madatary to transform this data in number.




msg.payload = [
            V01     :tmp.voltage_cell01,
            V02     :tmp.voltage_cell02,
            V03     :tmp.voltage_cell03,
            V04     :tmp.voltage_cell04,
            V05     :tmp.voltage_cell05,
            V06     :tmp.voltage_cell06,
            V07     :tmp.voltage_cell07,
            V08     :tmp.voltage_cell08,
            V09     :tmp.voltage_cell09,
            V10     :tmp.voltage_cell10,
            V11     :tmp.voltage_cell11,
            V12     :tmp.voltage_cell12,
            V13     :tmp.voltage_cell13,
            V14     :tmp.voltage_cell14,
            avr_V   :tmp.average_cell_voltage,
            delta_v :tmp.delta_cell_voltage,
            bat_v   :tmp.battery_voltage,
            bat_pwr :tmp.battery_power,
            bat_t1  :tmp.battery_t1,
            bat_t2  :tmp.battery_t2,
            mos_t   :tmp.mos_temp,
            p_rmn   :tmp.percent_remain,
            cap_rem :tmp.capacity_remain,
            i_inc   :tmp.current_charge,
            i_des  :tmp.current_discharge,
return msg;