Hi all,
Here's my first contribution to ZoneMinder.
The following script (bash - created on Ubuntu 10.04-64bit) creates an AVI per ZoneMinder monitor that contains the events of the last 24hrs.
The resulting .avi can then be uploaded to PicasaWebAlbums by using the google-cli utility (http://code.google.com/p/googlecl/).
You will need to provide a Picasa user name and an Album named SecurityCam, and go through the process of creating a google token for the user that will run the script (/home/%user%/.google).
If you don't want to upload to Picasa, simply comment out the google line and the rm -rf lines.
Since the scripts was truncated by the BB code, here's a direct link.
http://code.google.com/p/zm24hrsvid/dow ... h&can=2&q=
Enjoy.
Last 24hrs video for each Monitor
Last 24hrs video for each Monitor
Last edited by duduke on Mon Dec 06, 2010 12:13 pm, edited 1 time in total.
this is an excellent way of doing it... puts my method to shame but...
without really analyzing it to much id say a large chunk of the script is missing after and including the ending of the line...
without really analyzing it to much id say a large chunk of the script is missing after and including the ending of the line...
Code: Select all
for (( i=0; i<cameraNum> /tmp/${cameraList[$i]}.list