Mariomarco

Clock

Jun 1st, 2013
105
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.28 KB | None | 0 0
  1. local monitor = peripheral.wrap("front")
  2.  
  3. local function getTime(Tformat)
  4.     local site = http.get("http://mariomarco.funpic.de/others/TIME.php?format=" .. Tformat)
  5.     return site.readAll()
  6. end
  7.  
  8. while true do
  9. monitor.setCursorPos(1,1)
  10. monitor.write(getTime("G:i"))
  11. sleep(60)
  12. end
Advertisement
Add Comment
Please, Sign In to add comment