Advertisement
toast_account_i_made

Untitled

Dec 17th, 2022 (edited)
46
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.33 KB | None | 0 0
  1. os.loadAPI("json")
  2.  
  3. while true do
  4. os.sleep(2.5)
  5. local request = http.get("http://e6fb-81-129-131-70.eu.ngrok.io/")
  6. local dat = json.decode(request.readAll())
  7. request.close()
  8.  
  9. term.clear()
  10. term.setCursorPos(1,1)
  11. term.setCursorBlink(true)
  12.  
  13. for i,v in ipairs(dat) do
  14. print(v)
  15. end
  16. end
  17.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement