Page 1 of 1

Looking for ideas - Uploading images to a website

Posted: Tue Jun 23, 2009 6:50 pm
by btrotter
I am trying to think through something I would like to do, and thought I would toss the question out there for others to see if you had any good suggestions.

I currently run my 4 cameras in Mocord mode, so they are basically recording 24 hours a day.
I would like to grab a single frame every few minutes from each camera and upload it to a public facing website. That way I could set a few bookmarks on my Blackberry and be able to see if there were any cars in the driveway, is the garage door open, was the backdoor left open, etc.

I could just have four files uploaded from ZM to a website lets say every 5 minutes, then 5 minutes later, those files would be overwritten with the new ones, and so on.

Any ideas on how to do this easily?

Thanks,
Brian

Posted: Wed Jun 24, 2009 12:42 pm
by kylejohnson
I would use the FTP upload option that is built into ZM.
Enable ZM_OPT_UPLOAD, set the other options, and then create a filter and select "Upload Results" and configure whatever else you need.
Looks like ZM uploads in tar or zip format. You could either hack this to upload the files directly, or, if this is a linux server, make a cron script to ssh to the remote server, remove the old files, and unzip the new ones.

Posted: Wed Jun 24, 2009 1:21 pm
by btrotter
kylejohnson wrote:I would use the FTP upload option that is built into ZM.
Enable ZM_OPT_UPLOAD, set the other options, and then create a filter and select "Upload Results" and configure whatever else you need.
Looks like ZM uploads in tar or zip format. You could either hack this to upload the files directly, or, if this is a linux server, make a cron script to ssh to the remote server, remove the old files, and unzip the new ones.
I had looked at that, but thought it only uploaded events. Since I am running Mocord, it seems like everything would be an event.

Posted: Wed Jun 24, 2009 2:29 pm
by KeithB
btrotter wrote:
kylejohnson wrote:I would use the FTP upload option that is built into ZM.
Enable ZM_OPT_UPLOAD, set the other options, and then create a filter and select "Upload Results" and configure whatever else you need.
Looks like ZM uploads in tar or zip format. You could either hack this to upload the files directly, or, if this is a linux server, make a cron script to ssh to the remote server, remove the old files, and unzip the new ones.
I had looked at that, but thought it only uploaded events. Since I am running Mocord, it seems like everything would be an event.
You can have a second monitor for the camera, use the same parameters except its modect, and upload from that?

Posted: Tue Jul 07, 2009 1:30 am
by cordel
There are a few ways to manage this:

As described above. Not likely what you are looking for.

Create a script on the ZM server and use zmu to grab an image from the monitor you want, and do as you please (ftp, ssh, scp , etc)

Create a script on the web server and retrieve a jpeg still through zms on the ZM server.

Pretty sure that you can find all this in the Wiki if you have any questions.