Page 1 of 1

Latest image

Posted: Fri Jan 19, 2018 1:05 pm
by Maximo1970
Hi Everyone,

I've done a search of the forum and not found the answer, although it appears to have been asked in different ways a few times in the past.

I'm currently building a home automation system that can interface with Zoneminder for controls and events. As part of my solution I'd like to be able to display the most recently captured image from each of my cameras. I'm not looking for a live feed as that would create to much load both across my network and on the servers that make up my home automation solution. What I'm looking for is either the last image from a motion event or an image that's sort of in a timelapse, say every 90 seconds.

Does anyone have any suggestions on what's possible?

Cheers,

Garry

Re: Latest image

Posted: Fri Jan 19, 2018 4:22 pm
by Paranoid
You can grab the latest image with the following command:

Code: Select all

zmu -m 1 -i -U username -P password
Run it every 90 seconds (or however often you want) and store the image on a web server so you can grab it whenever you want.

Re: Latest image

Posted: Sun Jan 21, 2018 12:47 am
by rockedge
or something like this for monitor 1 in this example:

Code: Select all

http://your-zm-server/cgi-bin/nph-zms?mode=single&scale=100&monitor=1

Re: Latest image

Posted: Thu Jan 25, 2018 10:11 am
by Maximo1970
Thanks guys, very helpful.

Re: Latest image

Posted: Tue Aug 14, 2018 12:27 pm
by Undutchable
Hi Maximo,

I'm also interested in such solution for HA.
How did you accomplish the 90 sec interval grabbing?

Re: Latest image

Posted: Fri Aug 17, 2018 11:26 am
by Maximo1970
I'll be honest and say I got distracted by another project and didn't fully implement this. I did trial it out to start with, and just used the URL access within a screen page on my HA solution, but couldn't get a clean enough image. Hence why I got distracted.