Skip to content

Instantly share code, notes, and snippets.

@cyberstackover
Created April 7, 2018 16:19
Show Gist options
  • Save cyberstackover/4842a0b692f8c114cd173604096c1219 to your computer and use it in GitHub Desktop.
Save cyberstackover/4842a0b692f8c114cd173604096c1219 to your computer and use it in GitHub Desktop.
require goproh4, request, fs
function getFile()
listMedia() then ▹ list captured images
getLatestImage()
end
end function
request.get(10.5.5.9) ▹ get request to GoPro API
.on(response.code == 200)
setBurstMode() then ▹ set GoPro to burst mode
startCapture()
status = wait() ▹ get GoPro status
if(status == ready)
getFile() then
sendData() ▹ send image
end
end if
else
print “not ready”
end else
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment