Advertisement
DerMarten

[Lua]Zeitschalt Uhr

Jul 4th, 2013
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.35 KB | None | 0 0
  1. -- Zeitschalt Uhr --
  2. tro = true
  3. while tro do
  4.     local time = os.time()
  5.     shell.run("clear")
  6.     print(time)
  7.     os.sleep(0.0001)
  8. if time == 18.6 then
  9.     shell.run("clear")
  10.     print("Licht an")
  11.     shell.run("redset bottom true")
  12.     os.sleep(2)
  13. end
  14. if time == 7.0 then
  15.     shell.run("clear")
  16.     print("Licht aus")
  17.     shell.run("redset bottom false")
  18.     os.sleep(2)
  19. end
  20. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement