Page 1 of 1
How to access JPG of monitor?
Posted: Wed Jul 18, 2007 10:13 pm
by cadillackid
I am using ZM as part of my home automation system.. one thing i havent been able to find is if there is a "current" JPG of each monitor... meaning if I wanted t osay access that monitor directly from my home automation system what filename and what directory would I look for the current pic of the monitor regardless of alarm status. im not looking for the images of events.. those are stored in my events path and are there.. this would be so say when the doorbell rings my wall mounted screen would pop up with the current images of the front door.. i can refresh this automatically or I could call a URL and show a streaming JPG...
any help is appreciated
-Christopher
Posted: Wed Jul 18, 2007 10:19 pm
by cordel
If you bring up a monitor window and click the stills link, you should be able to right click on the image and get the link for the current jpeg in the properties window. This will provide you with what your after.
Posted: Thu Jul 19, 2007 3:32 pm
by cadillackid
that works.. except im looking for an actual file.. something I could store in a directory that could be SMB shared so my home automation PC can pick it up.. as a web page it makes things much more difficult to integrate. is there a way to get an actual file extracted from the current video of the monitor?
-Christopher
Posted: Thu Jul 19, 2007 4:12 pm
by cordel
Yes you can pull a jpeg through zmu
zmu --help
Posted: Mon Jul 23, 2007 4:24 pm
by vaineh
how do you specify where to put the images grabbed using zmu?
i want to put it into a script and then cronjob but using zmu it will only put the images in the same working directory as the script is run in.
Posted: Sun Jul 29, 2007 11:19 pm
by Fixer
vaineh wrote:how do you specify where to put the images grabbed using zmu?
i want to put it into a script and then cronjob but using zmu it will only put the images in the same working directory as the script is run in.
The classic unix way to do this is to run several commands inside brackets.
ie :-
Code: Select all
(cd /home/hauto/mypics ; zmu -m 6 -i)
The first part cd's to wherever you want the image, then the second command is run in that location. Just make sure that the user running the task has permissions to execute zmu and can write in the target directory.
--
Fixer