07.02.2019, 07:55
You need to replace two lines:
From:
To:
From:
To:
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.
From:
Code:
buffer = { '"date","address","name","value"' }
Code:
buffer = { '"address","name","date","value"' }
From:
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.