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.

Read values in scheduled script store in ftp
#6
What do you mean by the actual time?

You can get units like this, then use object.units when generating CSV:
Code:
query = 'SELECT address, datatype, name, units FROM objects WHERE disablelog=0'
for _, object in ipairs(db:getall(query)) do
objects[ tonumber(object.address) ] = {
   datatype = tonumber(object.datatype),
   name = tostring(object.name or ''),
   units = tostring(object.units or ''),
}
end
Reply


Messages In This Thread
RE: Read values in scheduled script store in ftp - by admin - 04.10.2018, 07:16

Forum Jump: