This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm that you accept these cookies being set.

Generate CSV
#5
You need to replace two lines:

From:
Code:
buffer = { '"date","address","name","value"' }
To:
Code:
buffer = { '"address","name","date","value"' }

From:
Code:
csv = string.format('%q,%q,%q,%q', logdate, knxlib.decodega(row.address), object.name, tostring(data))
To:
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.
Reply


Messages In This Thread
RE: Generate CSV - by Erwin van der Zwart - 04.02.2019, 22:29
RE: Generate CSV - by admin - 05.02.2019, 07:30
RE: Generate CSV - by admin - 07.02.2019, 07:55
RE: Generate CSV - by admin - 07.02.2019, 16:54
RE: Generate CSV - by Daniel - 08.02.2019, 08:57
RE: Generate CSV - by admin - 08.02.2019, 09:04
RE: Generate CSV - by Daniel - 08.02.2019, 09:11

Forum Jump: