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.

Download file real time
#13
(24.11.2020, 10:33)admin Wrote: dot is a special symbol that is treated as "any character" by the gsub. You need to escape it like this:
Code:
value = string.gsub(tostring(obj.value), "%.", ",")
csv[ #csv + 1 ] = obj.name .. ';' .. value
Since you are using comma as a decimal separator you should use ; instead of comma as csv field separator.

Yes I know. I already use ";" in fact the format of the file in excel as well is perfect. Great Job. Thanks.

Now I work to download file from Mosaic as well.

Thanks.
Reply


Messages In This Thread
Download file real time - by Domoticatorino - 19.11.2020, 21:11
RE: Download file real time - by admin - 20.11.2020, 06:57
RE: Download file real time - by Daniel - 20.11.2020, 08:26
RE: Download file real time - by admin - 24.11.2020, 07:34
RE: Download file real time - by admin - 24.11.2020, 09:16
RE: Download file real time - by admin - 24.11.2020, 09:56
RE: Download file real time - by admin - 24.11.2020, 10:33
RE: Download file real time - by Domoticatorino - 24.11.2020, 10:50

Forum Jump: