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.

massive data logging
#9
(15.09.2022, 09:23)admin Wrote: You're sending string data (10:57 and Thu 15-09-2022) which Influx does not understand. String values must be enclosed in quotes.
Try replacing lines 35..42 with this:
Code:
  local body

if type(value) == 'boolean' or type(value) == 'number' then
  body = string.format('%s,name=%s,addr=%s state=%s', table, name, addr, value)
elseif type(value) == 'string' then
  body = string.format('%s,name=%s,addr=%s value=%q', table, name, addr, value)
else
  log('invalid data type', addr, type(value))
  return
end

Currently this script sends values for all objects. There should be some filtering implemented so only the required data is pushed.

ok, now it's collecting data.... and yes, I need to filter them.

I guess I have to modify the function knx_callback(event), but my object addresses are not in a specific range, so I need to implement a sort of list of addresses to send.
Reply


Messages In This Thread
massive data logging - by gdimaria - 05.09.2022, 16:22
RE: massive data logging - by admin - 06.09.2022, 10:08
RE: massive data logging - by gdimaria - 07.09.2022, 07:42
RE: massive data logging - by admin - 07.09.2022, 07:47
RE: massive data logging - by gdimaria - 14.09.2022, 11:14
RE: massive data logging - by admin - 14.09.2022, 11:33
RE: massive data logging - by gdimaria - 15.09.2022, 09:05
RE: massive data logging - by admin - 15.09.2022, 09:23
RE: massive data logging - by gdimaria - 15.09.2022, 10:04
RE: massive data logging - by admin - 15.09.2022, 12:55
RE: massive data logging - by gdimaria - 16.09.2022, 10:26
RE: massive data logging - by admin - 19.09.2022, 06:10

Forum Jump: