keeping events

Support and queries relating to all previous versions of ZoneMinder
Locked
jameswilson
Posts: 5111
Joined: Wed Jun 08, 2005 8:07 pm
Location: Midlands UK

keeping events

Post by jameswilson »

If an event happens and i want to store it on dvd cd etc how do i go about this
User avatar
cordel
Posts: 5210
Joined: Fri Mar 05, 2004 4:47 pm
Location: /USA/Washington/Seattle

Post by cordel »

There are may ways to accomplish this depending on what utilitys you have installed on the machine. ZM does not have a interface as of yet (Is on the wish list though) to do it.
You can use any of the programs that burn CD's like cdrecord, and Kb3.
Kb3 is pretty good if you don't like command line that cdrecord uses.

I have started (planning stage now) setting a lay out that would allow you to select the events you want from the web interface and it would send the events and folders, generate an html page of the database info (so you still have the feel of zm event log) to a folder so that it can be burned to CD or zip/tar and downloaded to be burned. A few other things would be have it converted to mpg so that it's more compact but then I like the JPeg as it holds more detail (would be an option and the user could decide).
Would also be able to use cambozola server to stream the jpegs to the client hopefully but not sure if this is even possible without a webserver but non the less something I'll be looking at.
So it is in planning but I have some paying projects not releated to ZM that take presidence so maybe by the end of the year I'll have the first release to test out.
Regards,
Cordel
User avatar
zoneminder
Site Admin
Posts: 5215
Joined: Wed Jul 09, 2003 2:07 pm
Location: Bristol, UK
Contact:

Post by zoneminder »

There is an 'export' feature in 1.21.1. It might help you do what you are after.

Phil
jameswilson
Posts: 5111
Joined: Wed Jun 08, 2005 8:07 pm
Location: Midlands UK

Post by jameswilson »

Yeah it might where does it export it too?

*edit*Opps just noticed im on 1.21.0 thats why i couldnt find it sorry

SOunds great
jameswilson
Posts: 5111
Joined: Wed Jun 08, 2005 8:07 pm
Location: Midlands UK

Post by jameswilson »

if i click on export and tick all the boxes it fails and says 'export faile' there is another php error i think about failing to create directory

Exporting

Warning: opendir(events/New/578): failed to open dir: No such file or directory in /var/www/html/zm/zm_export_funcs.php on line 196

Warning: fopen(events/New/578/zmEventDetail.html): failed to open stream: No such file or directory in /var/www/html/zm/zm_export_funcs.php on line 213
Can't open event detail export file 'zmEventDetail.html'
User avatar
cordel
Posts: 5210
Joined: Fri Mar 05, 2004 4:47 pm
Location: /USA/Washington/Seattle

Post by cordel »

From upgrading throught the versions the folders are the camera ID and now there is a symlink that has the camera name pointed to the corrasponding ID that is missing for you. If you add the symlinks you will find that the export function will work.
The other option would be to go into the exportfunctions.php file and chaange all the variables to use the monitor ID instead of the name.
You will find this is really easy.
In what ever editor your comfortable with open zm_export_funcs.php
at line 194 change the following

Code: Select all

		$event_path = sprintf( "%s/%s/%d", ZM_DIR_EVENTS, $event['MonitorName'], $event['Id'] );

TO this

		$event_path = sprintf( "%s/%s/%d", ZM_DIR_EVENTS, $event['MonitorId'], $event['Id'] );
Phil, maybe this should be commited into the code as the event names were the old way and now we're useing the key from the database.
Cheers,
Cordel
jameswilson
Posts: 5111
Joined: Wed Jun 08, 2005 8:07 pm
Location: Midlands UK

Post by jameswilson »

Thanks Cordel I have changed this as above but i get this

Exporting

Warning: opendir(events//681): failed to open dir: No such file or directory in /var/www/html/zm/zm_export_funcs.php on line 196

Warning: fopen(events//681/zmEventDetail.html): failed to open stream: No such file or directory in /var/www/html/zm/zm_export_funcs.php on line 213
Can't open event detail export file 'zmEventDetail.html'

*edit oops id is case sensitive chaged that and i dont get the error anymore
Locked