Looking for ideas - Uploading images to a website

Forum for questions and support relating to the 1.24.x releases only.
Locked
btrotter
Posts: 57
Joined: Tue Jan 15, 2008 3:31 pm

Looking for ideas - Uploading images to a website

Post 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
kylejohnson
Posts: 260
Joined: Tue Aug 21, 2007 1:42 pm
Location: Baltimore, MD

Post 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.
btrotter
Posts: 57
Joined: Tue Jan 15, 2008 3:31 pm

Post 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.
KeithB
Posts: 77
Joined: Thu Jun 07, 2007 4:23 pm
Location: uk

Post 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?
User avatar
cordel
Posts: 5210
Joined: Fri Mar 05, 2004 4:47 pm
Location: /USA/Washington/Seattle

Post 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.
Locked