Does anyone know how this can be done
If time between 22:00 and 23:00 then
And does may someone know how i get the unixtime via luup ?
Does anyone know how this can be done
If time between 22:00 and 23:00 then
And does may someone know how i get the unixtime via luup ?
If you are going to program in LUA you need to RTFM
http://www.lua.org/manual/5.1/manual.html
Check out os.date and os.time
And does may someone know how i get the unixtime via luup ?[code]local curtime = os.time()[/code]
Does anyone know how this can be doneIf time between 22:00 and 23:00 then
local dtT = os.date("*t")
if (dtT.hour >= 22) and (dtT.hour < 23) then
And as @RichardTSchaefer advised…
Best Home Automation shopping experience. Shop at Ezlo!
© 2024 Ezlo Innovation, All Rights Reserved. Terms of Use | Privacy Policy | Forum Rules