daily pastebin goal
25%
SHARE
TWEET

[Lua]Zeitschalt Uhr

DerMarten Jul 4th, 2013 34 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top