Integrated wordclock into main
This commit is contained in:
parent
c431d93895
commit
67434714ee
8
main.lua
8
main.lua
@ -1,5 +1,6 @@
|
|||||||
dofile("wlancfg.lua")
|
dofile("wlancfg.lua")
|
||||||
dofile("timecore.lua")
|
dofile("timecore.lua")
|
||||||
|
dofile("wordclock.lua")
|
||||||
|
|
||||||
timezoneoffset=1
|
timezoneoffset=1
|
||||||
|
|
||||||
@ -32,5 +33,12 @@ tmr.alarm(1, 1000, 1 ,function()
|
|||||||
time = getTime(sec, timezoneoffset)
|
time = getTime(sec, timezoneoffset)
|
||||||
print("Time : " , sec)
|
print("Time : " , sec)
|
||||||
print("Local time : " .. time.year .. "-" .. time.month .. "-" .. time.day .. " " .. time.hour .. ":" .. time.minute .. ":" .. time.second)
|
print("Local time : " .. time.year .. "-" .. time.month .. "-" .. time.day .. " " .. time.hour .. ":" .. time.minute .. ":" .. time.second)
|
||||||
|
|
||||||
|
words = display_timestat(time.hour, time.minute)
|
||||||
|
for key,value in pairs(words) do
|
||||||
|
if (value > 0) then
|
||||||
|
print(key,value)
|
||||||
|
end
|
||||||
|
end
|
||||||
end)
|
end)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user