Zoneminder filter actions

Support and queries relating to all previous versions of ZoneMinder
Locked
rchurch
Posts: 31
Joined: Thu Feb 16, 2006 3:55 pm

Zoneminder filter actions

Post by rchurch »

Is it possible run all the actions specified in a filter, and do they run in the order listed?
User avatar
zoneminder
Site Admin
Posts: 5215
Joined: Wed Jul 09, 2003 2:07 pm
Location: Bristol, UK
Contact:

Post by zoneminder »

Yes you can select as many as you like. I think they are pretty much in a rational order, e.g. it won't delete until last, and only then if the previous actions worked. So if the upload fails then the event will not be deleted.
Phil
jameswilson
Posts: 5111
Joined: Wed Jun 08, 2005 8:07 pm
Location: Midlands UK

Post by jameswilson »

Thats good i didnt know that myself
James Wilson

Disclaimer: The above is pure theory and may work on a good day with the wind behind it. etc etc.
http://www.securitywarehouse.co.uk
rchurch
Posts: 31
Joined: Thu Feb 16, 2006 3:55 pm

Post by rchurch »

I just applied a filter that Archives, Create Videos and Deletes, but I can't find the videos and archives in the web interface.

I thought Archiving and Videoing would just delete the jpegs and leave the created videos present in the interface, but somewhat separated or distinguished from the current events
User avatar
zoneminder
Site Admin
Posts: 5215
Joined: Wed Jul 09, 2003 2:07 pm
Location: Bristol, UK
Contact:

Post by zoneminder »

Archiving just flags the events as 'archive' and a bit more precious. You need to 'upload' probably if you want them saved somewere. Creating videos will create the vid in the event directory, which in your filter, is then deleted!

Deletion removes everything related to the event, files and db entries alike.
Phil
sick347
Posts: 85
Joined: Tue Mar 28, 2006 5:19 pm

Post by sick347 »

Is there a way to set a "pointer" to a path that you would like to upload the archieved events too?

thanks
-frank
got my eye on you!
User avatar
zoneminder
Site Admin
Posts: 5215
Joined: Wed Jul 09, 2003 2:07 pm
Location: Bristol, UK
Contact:

Post by zoneminder »

There is the ZM_UPLOAD_FTP_REM_DIR option. Does this not do what you are after?
Phil
sick347
Posts: 85
Joined: Tue Mar 28, 2006 5:19 pm

Post by sick347 »

Yeah I saw that, cool feature.

What I'd like to do is to move the archived events off the local HDD to an external HDD (like an external USB HDD). I'd like to keep all the archive features that enable auto archiving etc.

I guess I can run the archive tool THEN run the FTP tool....BOTH automatically and in that order?


thanks
-frank
got my eye on you!
User avatar
zoneminder
Site Admin
Posts: 5215
Joined: Wed Jul 09, 2003 2:07 pm
Location: Bristol, UK
Contact:

Post by zoneminder »

I'm not sure I quite understand what you are trying to do. The 'archive' element of filters just sets a bit in the db saying the event is archived, and is therefore a little more protected from being deleted etc and easier to access. It doesn't go anywhere else.
Phil
sick347
Posts: 85
Joined: Tue Mar 28, 2006 5:19 pm

Post by sick347 »

ok I see what you are saying.

I need to move the events OFF the local system to an external HDD.

For instance, when my local system's HDD becomes ~80% FULL I need to keep the events but I also need to MOVE them OFF the local system to a long term storage medium.

Is there a method to do this within zoneminder?

-frank
got my eye on you!
User avatar
zoneminder
Site Admin
Posts: 5215
Joined: Wed Jul 09, 2003 2:07 pm
Location: Bristol, UK
Contact:

Post by zoneminder »

Using ftp to upload them and delete is the builtin method. However you can create a script to do anything you like and apply this in a filter. E.g. if you wanted to rsync them instead then this would be the place to do it.

Ross (rdmelin) created a script that would save the associated db information which would probably be useful if you ever wanted to reimport the events into ZM in the future. I can't remember the link but if you look for his recent posts you should find it.
Phil
Locked