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.
Save camera image ever minute to a location
Moderator: leecollings
-
- Posts: 2
- Joined: Saturday 25 April 2015 17:17
- Target OS: Windows
- Domoticz version: V2.2339
- Location: Staffordshire, UK
- Contact:
- bbqkees
- Posts: 407
- Joined: Sunday 17 August 2014 21:01
- Target OS: Linux
- Domoticz version: 4.1x
- Location: The Netherlands
- Contact:
Re: Save camera image ever minute to a location
If you have a Hikvision camera it can do that from within the camera webinterface.
Bosch / Nefit / Buderus / Junkers / Worcester / Sieger EMS bus Wi-Fi MQTT Gateway and interface boards: https://bbqkees-electronics.nl/
-
- Posts: 2
- Joined: Saturday 25 April 2015 17:17
- Target OS: Windows
- Domoticz version: V2.2339
- Location: Staffordshire, UK
- Contact:
Re: Save camera image ever minute to a location
This camera doesn't have that function which was why I resorting to Domoticz
-
- Posts: 94
- Joined: Monday 30 November 2015 16:21
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: Save camera image ever minute to a location
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
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>
Who is online
Users browsing this forum: No registered users and 1 guest