Re: Lua Time variable

It didnt work…
Any idea ?

this is what I get :

LuaTest 1.6

Lua file: /etc/cmh-ludl/luatest.lua

Results
Runtime error: Line 1: attempt to index global ‘t’ (a nil value)

Locals
[main]

Print output
(none)

Code
1 local minNum = tonumber(t.min)
2 if minNum <= 9 then
3 minStr = tostring(minNum)
4 minStr = “0” … minStr
5 else
6 minStr = t.min
7 end
8
9 hours = os.date(‘*t’,os.time())[“hour”]
10 pushover ("Door open at ",hours … “:” … minStr, “1”, " ", " ", “Gamelan”)