How can i get a frame?

Support and queries relating to all previous versions of ZoneMinder
Locked
yakermalo
Posts: 12
Joined: Wed May 04, 2005 5:27 pm

How can i get a frame?

Post by yakermalo »

Hello, i would like to get a frame from mw axis 205 when somebody touch a door button.

I have a data card,programed in C where i get events from sensors, then i would like that when "sensor 3" be activated, zoneminder gets a frame, in wich i could set the time an date as name.


Could somebody help me with this script?

THANKS
yakermalo
Posts: 12
Joined: Wed May 04, 2005 5:27 pm

PLEASE HELP ME

Post by yakermalo »

Please, could you say me, how can I get a frame from my axis? with a linux command?


and how can I do that the frames be named with time and date.
jameswilson
Posts: 5111
Joined: Wed Jun 08, 2005 8:07 pm
Location: Midlands UK

Post by jameswilson »

im not sure of the whole command but you should be able to use a wget command. This doesnt requuire zoneminder though.

James
yakermalo
Posts: 12
Joined: Wed May 04, 2005 5:27 pm

Post by yakermalo »

Thanks but i dont know how to name it, i have proved with wget and works well but i don't know how to name the frames.
jameswilson
Posts: 5111
Joined: Wed Jun 08, 2005 8:07 pm
Location: Midlands UK

Post by jameswilson »

sorry mate nor me. Looks like your gonna need some script that runs and copies most recent jpeg and renames it in the new location, but i cant help on that. If i were to try id google for how to copy things via script etc and see how to do it via the command line, then once proven make a script. Scripts can i beleive be run as cron jobs at the frequency you set


James
yakermalo
Posts: 12
Joined: Wed May 04, 2005 5:27 pm

Post by yakermalo »

thanks James, I'll do it with wget, with the -o option and the rest of the work with C or ruby
User avatar
zoneminder
Site Admin
Posts: 5215
Joined: Wed Jul 09, 2003 2:07 pm
Location: Bristol, UK
Contact:

Post by zoneminder »

You can probably do it entirely in the shell if you use something like -o `date +'%s'`.jpg or something for the output of wget. That will datestamp your files, do 'man date' to get the list of date formats you can use.

Phil
Locked