Page 1 of 1
Save camera image ever minute to a location
Posted: Monday 23 May 2016 12:07
by wonderlander
I'm running on a Windows Home Server and I'd like to upload an image from one of my IP cameras directly to an FTP site every 60 seconds.
Failing that if I could just set it up to save in a folder every 60 seconds that would be a good start, ideally always with the same name, over writing the file already there.
Re: Save camera image ever minute to a location
Posted: Monday 23 May 2016 14:39
by bbqkees
If you have a Hikvision camera it can do that from within the camera webinterface.
Re: Save camera image ever minute to a location
Posted: Monday 23 May 2016 16:54
by wonderlander
This camera doesn't have that function which was why I resorting to Domoticz
Re: Save camera image ever minute to a location
Posted: Thursday 10 November 2016 12:50
by maomanna
make a bash script that takes a snapshot.
I believe that Thinkpad has a script on his bitbucket.
After making that bash script, make a cron that runs every minute.
something like this
Code: Select all
#!/bin/sh
today=`/bin/date '+%d-%m-%Y__%H-%M-%S'`; #Used to generate filename
IP="ip_of_camera" # IP address Camera
#Ping IP-address of camera to see if it's online, otherwise we don't have to $
if ping -c 1 $IP > /dev/null ; then #Grab snapshot
#Get Snapshot from camera
wget "http://ip_of_camera/pah_of_snapshot (foscam example: cgi-bin/CGIProxy.fcgi?cmd=snapPicture2&usr="user"&pwd="password"") -O location/for/taken/snapshot/camera1-$today.jpeg
#Send snapshot to FTP
scp /location/for/taken/snapshot/camera1-$today <username>@<hostname>:<destination path>