elnardu

Untitled

Jan 18th, 2018
55
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.21 KB | None | 0 0
  1. shell.run("pastebin", "get", "4nRg9CHU", "json")
  2. os.loadAPI("json")
  3.  
  4. while 1 do
  5. str = http.get("http://localhost:5000/dummy").readAll()
  6. obj = json.decode(str)
  7. redstone.setOutput("right", obj.open)
  8. sleep(1)
  9. end
Add Comment
Please, Sign In to add comment