Thanks for responding. This is one of the payloads, copied from the debug node (with minor redactions):
{“measurement":"SDxxxxxx","day":"2022-07-17","headers":{“date":"Sat, 06 Aug 2022 07:39:23 GMT","content-type":"application/json","transfer-encoding":"chunked","connection":"close","server":"nginx/1.20.0","cache-control":"no-cache, private","internal-api-version":"1","x-node-red-request-node":"37286ff4"},"method":"GET","url":"https://www.givenergy.cloud/internal-api/inverter/data/SDxxxxxx/2022-07-17","payload":{“status":"NORMAL","vpv1":30.2,"vpv2":29.5,"ipv1":0,"ipv2":0,"ppv1":0,"ppv2":0,"ppv":0,"pac":19,"vacr":249.4,"iacr":1,"fac":49.93,"loadPower":0,"meter1ActivePower":19,"peps":0,"invVoltage":247.9,"invFrequency":49.93,"temperature":39.8,"batVoltage":52.76,"batPower":6,"batTemperature":25,"batPercent":90,"pvEnergyToday":0,"pvEnergyTotal":2984.7,"consumptionEnergyToday":0,"consumptionEnergyTotal":602.2,"exportedEnergyToday":0,"gridExportEnergyTotal":2556.2,"etoday":0,"etotal":2913.2,"invImportEnergyToday":0,"invImportEnergyTotal":17.4,"importedEnergyToday":0,"gridImportEnergyTotal":262.6,"chargeEnergyToday":0,"charge_energy_total":683.55,"dischargeEnergyToday":0.2,"discharge_energy_total":683.55,"import":0,"export":19},"statusCode":200,"responseUrl":"https://www.givenergy.cloud/internal-api/inverter/data/SDxxxxxx/2022-07-17","redirectList":[],"retry":0,"responseCookies":{“laravel_token":{“expires":"Sat, 20-Aug-2022 07:39:22 GMT","Max-Age":"1209600","path":"/","samesite":"lax","value":"xxxREDACTEDxxx"},"XSRF-TOKEN":{“expires":"Sat, 20-Aug-2022 07:39:22 GMT","Max-Age":"1209600","path":"/","samesite":"lax","value":" xxxREDACTEDxxx "},"laravel_session":{“expires":"Sat, 20-Aug-2022 07:39:22 GMT","Max-Age":"1209600","path":"/","samesite":"lax","value":" xxxREDACTEDxxx "}},"parts":{“id":"4dde13800eefc8a2","type":"array","count":285,"len":1,"index":282},"_msgid":"c5bd6ae016cf8270","time":1658016868}
In the original payload, the timestamp for each individual data point appears as a key value "timestamp" towards the end of the object. That was loaded into Influxdb as a key value pair but wasn't used by Influxdb as the timestamp. After the split node to break up the datapoints for each day into individual payloads, I removed the key value pair from the object and added the timestamp to the message as msg.time. As mentioned earlier msg.measurement is being handled as expected but not the timestamp. When I query the Influxdb bucket, the timestamp date range for all the data points which have loaded are for the current day and are the time the data was sent from Node-RED. Any pointers appreciated.
Admin edit: added newlines before and after backticks to format data correctly.