13.03.2017, 19:29
(13.03.2017, 10:33)Thomas Wrote: Hi
How about KNX BUS load? Is there this value available in LM?
Thank you.
You can also do something like this:
Code:
-- Checking how many object from database was updated in last 5 seconds
delta=os.microtime() - 5
query = "SELECT name FROM objects WHERE updatetime>" .. delta
updated = db:getall(query)
log(#updated)
It gives an info about how many objects from database was updated in the last 5 seconds(if 1 object was updated a few times in this 5 seconds it would't be counted). You can also change this 5 second to other value e.g. 1s.