Page 1 of 1

How can i get a frame?

Posted: Tue Oct 04, 2005 10:38 am
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

PLEASE HELP ME

Posted: Wed Oct 05, 2005 8:11 am
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.

Posted: Wed Oct 05, 2005 11:29 am
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

Posted: Wed Oct 05, 2005 4:43 pm
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.

Posted: Wed Oct 05, 2005 4:47 pm
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

Posted: Wed Oct 05, 2005 4:56 pm
by yakermalo
thanks James, I'll do it with wget, with the -o option and the rest of the work with C or ruby

Posted: Wed Oct 05, 2005 6:42 pm
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