Skip to content

Instantly share code, notes, and snippets.

@nilsmagnus
Created August 8, 2013 18:37
Show Gist options
  • Save nilsmagnus/6187408 to your computer and use it in GitHub Desktop.
Save nilsmagnus/6187408 to your computer and use it in GitHub Desktop.
take a picture from raspicam and upload to temploggerweb
#!/bin/bash
TIMESTAMP=`date`
raspistill -t 0 -w 640 -h 480 -q 70 -ex sports -o "image.jpg"
url=`curl http://temploggerweb.appspot.com/imageapi?url=get`
curl $url -X POST -F imageFile=@"image.jpg" -o imageuploadresult.txt
#curl http://temploggerweb.appspot.com/imageapi -X POST -F myFile=@"image.jpg"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment