Advertisement
programcreator

GPSsetup

Feb 18th, 2015
277
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.19 KB | None | 0 0
  1. x,y,z = gps.locate()
  2. print(x,y,z)
  3.  
  4. local file = fs.open("startup","w")
  5. file.write("shell.run(\"gps host "..tonumber(x).." "..tonumber(y).." "..tonumber(z).."\")")
  6. file.close()
  7. os.reboot()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement