but i made a clock if you input text like 21:00 then press enter and press set timer
the clock moves to that time now i have included text time in to it and the lua was on os.dat(%I)...
but what it had to do is load the time and show text time ....


I suppose it's not impossible. If you won't find a solution, tomorrow I'll try to find one.dvo wrote:then i have again what i don't want i guess it shows the time from the clock and not the time of the set timer ....
both will not work i know that the other one works couse it runs on os time and not on the set timer
what i'm trying to make is that the lua the time out of the set timer loads instead of the real time
You'll find the skin in dvo's first post above.FreeRaider wrote:Out of curiosuty, can you post an example (a simple code or numerical) of what you want?
Here is the fix of your last problem. If you want that on the alarm clock the text indicate not the current time, but what you've set to the alarm, you'll have to work with the TextClock.lua. This file takes the hour and minute of the operating system and you'll want instead to take the Time variable from the Arc.ini and work with it. To achieve this, just replace thedvo wrote:lua had to be fixed couse lua says simply take the time of the operation system ....instead of hour and minutes out of the variable tried many ways but don't understand lua script yet ..
Code: Select all
hour = tonumber(os.date('%I'))
minute = tonumber(os.date('%M'))
Code: Select all
AlarmTime = SKIN:GetVariable('Time')
LenAlarmTime = string.find(AlarmTime, ':') - 1
hour = tonumber(string.sub(AlarmTime, 1, LenAlarmTime))
if hour > 12 then
hour = hour - 12
end
minute = tonumber(string.sub(AlarmTime, -2, -1))