Page 1 of 1

Last 24hrs video for each Monitor

Posted: Sun Dec 05, 2010 3:06 pm
by duduke
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.

Posted: Sun Dec 05, 2010 10:35 pm
by Dreded
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...

Code: Select all

for (( i=0; i<cameraNum> /tmp/${cameraList[$i]}.list 

Posted: Mon Dec 06, 2010 7:47 am
by duduke
I double checked, and the code is the same.

I will try to run it again from the post just to be safe.