Shell script for downloading images from Foscam IP camera

Below a script that downloads images from your Foscam IP camera.

#!/bin/bash
timestamp=`date +%Y%m%d%H%M%S`
camera=IP.AD.RE.SS
username=camerausername
password=Secret
photodir="./dirname/"

wget -O ${photodir}${timestamp}.jpg http://${camera}:10080/snapshot.cgi?user=${username}\&pwd=${password}

One thought to “Shell script for downloading images from Foscam IP camera”

  1. When I initially commented I clicked the “Notify me when new comments are added” checkbox and now
    each time a comment is added I get four emails with the same comment.
    Is there any way you can remove me from that service? Thank you!

Leave a Reply

Your email address will not be published. Required fields are marked *