07.02.2019, 16:33
(07.02.2019, 07:55)admin Wrote: You need to replace two lines:
From:
To:Code:buffer = { '"date","address","name","value"' }
Code:buffer = { '"address","name","date","value"' }
From:
To:Code:csv = string.format('%q,%q,%q,%q', logdate, knxlib.decodega(row.address), object.name, tostring(data))
Code:csv = string.format('%q,%q,%q,%q', knxlib.decodega(row.address), object.name, logdate, tostring(data))
As for 4.38843238774139e-40 it not a raw format it's scientific notation. This is used for very small floating point numbers which would be too long if displayed in 0.000... format.
Thank you very much for you help! I've already done these changes, but the generated csv, still have all data in one column :/