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.

Wiser for KNX, hours counter
#8
(12.06.2018, 14:11)Ruslan25 Wrote: Thanks a lot. One more question.
Under setpoint you wrote 20 and its in seconds, how can I convert to hours. Because I want visualize how many hours is left


Skickat från min iPhone med Tapatalk

To be honest with you I never ever used this block Smile.  I looked on the code behind and it is already in hours. 

Code:
   local hours = (os.time() - start) / 3600
   return hours, setpoint - hours, hours > setpoint and true or nil
The 20 should be 20 hours
------------------------------
Ctrl+F5
Reply


Messages In This Thread
Wiser for KNX, hours counter - by Ruslan25 - 11.06.2018, 09:50
RE: Wiser for KNX - by Daniel - 11.06.2018, 11:25
RE: Wiser for KNX - by Ruslan25 - 11.06.2018, 14:26
RE: Wiser for KNX, hours counter - by Daniel - 12.06.2018, 08:19
Wiser for KNX, hours counter - by Ruslan25 - 12.06.2018, 12:12
RE: Wiser for KNX, hours counter - by Daniel - 12.06.2018, 12:23
Wiser for KNX, hours counter - by Ruslan25 - 12.06.2018, 14:11
RE: Wiser for KNX, hours counter - by Daniel - 12.06.2018, 14:26
RE: Wiser for KNX, hours counter - by Daniel - 12.06.2018, 14:40
Wiser for KNX, hours counter - by Ruslan25 - 12.06.2018, 15:00
RE: Wiser for KNX, hours counter - by Daniel - 12.06.2018, 15:11
RE: Wiser for KNX, hours counter - by Daniel - 12.06.2018, 15:51
RE: Wiser for KNX, hours counter - by Daniel - 12.06.2018, 16:32
RE: Wiser for KNX, hours counter - by Daniel - 15.06.2018, 13:02
RE: Wiser for KNX, hours counter - by Daniel - 18.06.2018, 07:28
RE: Wiser for KNX, hours counter - by Daniel - 18.06.2018, 09:50
RE: Wiser for KNX, hours counter - by Daniel - 20.06.2018, 12:12
RE: Wiser for KNX, hours counter - by Daniel - 20.06.2018, 13:28
RE: Wiser for KNX, hours counter - by Daniel - 02.10.2018, 07:09
RE: Wiser for KNX, hours counter - by admin - 24.04.2023, 06:39

Forum Jump: