Advertisement
Guest User

Untitled

a guest
Feb 28th, 2015
190
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.38 KB | None | 0 0
  1. mon = peripheral.wrap("back")
  2. day = os.day()
  3. time = os.time()
  4.  
  5. mon.setTextScale(3)
  6. while true do
  7. mon.clear
  8. mon.setCursorPos(1,1)
  9. mon.write(http.get("http://www.tado87.be/computercraft/heure.php").readAll())
  10. mon.setCursorPos(1,2)
  11. mon.write(textutils.formatTime(time, true))
  12. mon.setCursorPos(1,3)
  13. mon.write("Jour "..day)
  14. day = os.day()
  15. time = os.time()
  16. sleep(0.3)
  17. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement