Last 24hrs video for each Monitor

If you've made a patch to quick fix a bug or to add a new feature not yet in the main tree then post it here so others can try it out.
Post Reply
duduke
Posts: 2
Joined: Sun Dec 05, 2010 2:50 pm

Last 24hrs video for each Monitor

Post 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.
Last edited by duduke on Mon Dec 06, 2010 12:13 pm, edited 1 time in total.
Dreded
Posts: 26
Joined: Fri Dec 03, 2010 1:33 am

Post 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 
duduke
Posts: 2
Joined: Sun Dec 05, 2010 2:50 pm

Post 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.
Post Reply