Hello
I've a water gauge which returns pulses.
I want to show water consumption for the last 1 hour.
Do you have any idea how to do it in LM way?
If no is this correct hack?
No, it isn't.
Object doesn't have dstraw. How to convert address to dstraw integer?
Bingo! knxlib.encodega('1/1/1')
I've a water gauge which returns pulses.
I want to show water consumption for the last 1 hour.
Do you have any idea how to do it in LM way?
If no is this correct hack?
Code:
object=grp.find('1/1/1')
obj_addressraw = object.dstraw
query = "
select count() from FROM objectlog WHERE objectlog.address="..obj_addressraw.." AND logtime>=os.microtime()-3600"
count = db:getall(query)
No, it isn't.
Object doesn't have dstraw. How to convert address to dstraw integer?
Bingo! knxlib.encodega('1/1/1')
LM5Lp, firmware: 2018.08.22 and 2021.12.15, FlashSYS v2, ARMv7 Processor rev 5 (v7l), kernel 4.4.151 and 4.4.259