Created
September 10, 2012 15:01
-
-
Save pdp7/3691350 to your computer and use it in GitHub Desktop.
Latitude location export for chumby
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
LOCATE_HOME="$HOME/locate" | |
UPLOADR_HOME="${LOCATE_HOME}/uploadr" | |
CUTY_HOME="${LOCATE_HOME}/CutyCapt" | |
IMAGE_DIR="${HOME}/images" | |
VDISPLAY=87 | |
URL='http://www.google.com/latitude/apps/badge/api?user=9019870671957975903&type=iframe&maptype=roadmap' | |
export FLICKR_UPLOADR_PY_API_KEY=515af04789bacc913dfd1eefaf1923ee | |
export FLICKR_UPLOADR_PY_SECRET=cceb46e3419eeb96 | |
rm -rf ${IMAGE_DIR}/*.png | |
pkill -9 Xvfb | |
rm -f /tmp/.X$VDISPLAY-lock | |
Xvfb :$VDISPLAY -screen 0 1024x768x16 & | |
export DISPLAY=:$VDISPLAY | |
${CUTY_HOME}/CutyCapt --url=$URL --out=${IMAGE_DIR}/`date +%Y-%m-%d_%H-%M-%S`.png | |
python ${UPLOADR_HOME}/uploadr.py -d | |
pkill -9 Xvfb | |
rm -f /tmp/.X$VDISPLAY-lock |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment