Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- print("working..")
- sec={1,2,3,4,5,6}
- while true do
- x=1
- while x<3 do
- term.setCursorPos(1,1)
- timeHandle = http.get("http://worldtimeapi.org/api/timezone/Europe/Berlin")
- time = textutils.unserializeJSON(timeHandle.readLine())
- sec[1]=sec[2]
- sec[2]=time.unixtime
- print(sec[1],"|",sec[2])
- print(sec[2]-sec[1])
- term.setCursorPos(1,1)
- term.clear()
- term.write(sec[2]-sec[1])
- sleep(1)
- x=x+1
- end
- end
Add Comment
Please, Sign In to add comment