Skip to content

Instantly share code, notes, and snippets.

@mojoaxel
Created January 14, 2016 19:42
Show Gist options
  • Save mojoaxel/3ec9b3203bfc7f1619ef to your computer and use it in GitHub Desktop.
Save mojoaxel/3ec9b3203bfc7f1619ef to your computer and use it in GitHub Desktop.
Upload image from AirCam to Wunderground (FTP)
#!/bin/bash
# Download image from AirCam
curl --insecure -o image.jpg https://XXX.XXX.XXX.XXX/snapshot.cgi?chan=1
# create folder archive if it doesn't already exist
mkdir -p archive
# save image to archive
cp image.jpg archive/webcam_$(date +"%Y%m%d-%H%M").jpg
# upload image to Wunderground-FTP-Server
curl -T image.jpg ftp://webcam.wunderground.com --user USER:PASSWORD
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment