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.

System parameters
#10
(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.
Reply


Messages In This Thread
System parameters - by baggins - 09.03.2017, 12:37
RE: System parameters - by baggins - 12.03.2017, 22:26
RE: System parameters - by buuuudzik - 13.03.2017, 07:16
RE: System parameters - by admin - 13.03.2017, 07:31
RE: System parameters - by baggins - 13.03.2017, 07:58
RE: System parameters - by admin - 13.03.2017, 07:59
RE: System parameters - by baggins - 13.03.2017, 08:12
RE: System parameters - by Thomas - 13.03.2017, 10:33
RE: System parameters - by buuuudzik - 13.03.2017, 19:29
RE: System parameters - by admin - 13.03.2017, 10:59

Forum Jump: