Hello, I'm trying to input data from a CSV file into influx. I think I have everything right except for getting the time stamp to influx from the CSV file instead of the current time. This is my flow minus the drop box node.
[{"id":"49df5c8b.889d84","type":"debug","z":"e43243.84581dc","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"payload","targetType":"msg","x":650,"y":140,"wires":[]},{"id":"2f981746.a36ca8","type":"csv","z":"e43243.84581dc","name":"","sep":",","hdrin":true,"hdrout":true,"multi":"one","ret":"\\n","temp":"","skip":"0","x":450,"y":140,"wires":[["f3ea7217.ab22a"]]},{"id":"1c937bc0.d86ae4","type":"influxdb out","z":"e43243.84581dc","influxdb":"b061b4be.968df8","name":"","measurement":"value","precision":"","retentionPolicy":"","x":650,"y":240,"wires":[]},{"id":"f3ea7217.ab22a","type":"change","z":"e43243.84581dc","name":"convert to time stamp","rules":[{"t":"set","p":"payload[\"GPS Time\"]","pt":"msg","to":"","tot":"date"}],"action":"","property":"","from":"","to":"","reg":false,"x":400,"y":320,"wires":[["49df5c8b.889d84","1c937bc0.d86ae4"]]},{"id":"b061b4be.968df8","type":"influxdb","z":"","hostname":"192.168.1.34","port":"8086","protocol":"http","database":"home_assistant","name":"torque","usetls":false,"tls":""}]
And this is the debug console.
GPS Time: 1577775035485
Device Time: "01-Dec-2019 09:01:18.800"
Longitude: -118.65542118996382
Latitude: 48.83717896975577
GPS Speed (Meters/second): 0
Horizontal Dilution of Precision: 6
Altitude: 511
Bearing: 0
G(x): -5.14513922
G(y): -8.14986229
G(z): 0.81642276
G(calibrated): 0.00499421
!Air Temp 0(°C): -5
!Batt Temp(°C): 13
!Battery Capacity Guess(kWh): "-"
!Battery Level Displayed(%): 72.94117737
!Charger HV Current(A): 14.69999981
!Charger HV Power(KW): 5.47574997
!Charger HV Voltage(V): 372.5
!Electronics Temp 1(°C): "-"
!Heater - Battery(W): 1256
!Heater - Cabin(W): 4699
!HV Current(A): -0.25
!HV Current HD(A): -5.250525
!Inst W/kph(W/kph): "-â"
!MG Voltage(V): 372.98001099
!State Of Charge HD Raw(%): 73.19447327
!State of Charge Raw(%): 73.33333588
!Trans RPM(?): 0
*AC High Side Pressure(psi): 2.03052831
*Air Temp 1(°C): -5
*Air Temp 2(°C): "-"
*Batt Temp 2416(°C): 18
*Charger AC Power(KW): 5.17880011
*State of Charge Raw 2(?): 72.94117737
The problem may be that my timestamp is defined as GPS time instead of just time but I don't know how to change it to a format that influx will except. I apologize in advance as I'm quite the noob but would appreciate any help.
thanks
Dennis Mitchell