Page 1 of 1
Creating Zones
Posted: Mon May 23, 2005 10:29 pm
by tim@pcs-alaska.com
I'm ready to setup my zones. I have two of my cameras working in MONITOR mode and they record 5-8 frames per sec in RECORD mode.
Now I'm trying to define the Zones for each monitor. Problem is I don't have a image when I click into the default zone or when I try to create one.
Did I miss something?
Posted: Tue May 24, 2005 11:04 am
by zoneminder
Check that ZM has permissions to write into the 'images' directory under your web root. Ordinarily it uses zmu to write out a zone image so you can try doing that manually (use the -z option) to check that part at least works.
Phil
Posted: Tue May 24, 2005 12:08 pm
by tim@pcs-alaska.com
zoneminder:/tmp# ls -l /var/www/images total 44
-rw-r--r-- 1 www-data www-data 17191 2005-05-24 03:32 Lobby-Zones.jpg
-rw-r--r-- 1 www-data www-data 22716 2005-05-21 17:56 Records-Zones.jpg
Permissions look good. Not sure how to use the zmu command....
Phil, can you give me an idea about the syntax?
My "Lobby" monitor is at 192.168.1.4:8001
I did get this:
zoneminder:/tmp# zmu -m 1 -q
Id : 1
Name : Lobby
Type : Remote
Host : 192.168.1.4
Port : 8001
Path : /nphMotionJpeg?Resolution=320x240&Quality=Standard
Width : 320
Height : 240
Palette : 4
Colours : 3
Event Prefix : Event-
Label Format : %%s - %y/%m/%d %H:%M:%S
Label Coord : 0,0
Image Buffer Count : 25
Warmup Count : 25
Pre Event Count : 10
Post Event Count : 10
Alarm Frame Count : 1
Section Length : 600
Maximum FPS : 7.00
Reference Blend %ge : 10
Track Motion : 0
Function: 2 - Monitor
Zones : 2
Id : 1
Label : All
Type: 1 - Active
Limits : 0,0 - 319,239
Alarm RGB : ff0000
Check Method: 3 - Blobs
Min Pixel Threshold : 25
Max Pixel Threshold : 0
Min Alarm Pixels : 2304
Max Alarm Pixels : 57600
Filter Box : 3,3
Min Filter Pixels : 2304
Max Filter Pixels : 57600
Min Blob Pixels : 1536
Max Blob Pixels : 0
Min Blobs : 1
Max Blobs : 0
Id : 4
Label : Lobby
Type: 1 - Active
Limits : 0,0 - 319,239
Alarm RGB : 000000
Check Method: 1 - Alarmed Pixels
Min Pixel Threshold : 0
Max Pixel Threshold : 0
Min Alarm Pixels : 0
Max Alarm Pixels : 0
Filter Box : 0,0
Min Filter Pixels : 0
Max Filter Pixels : 0
Min Blob Pixels : 0
Max Blob Pixels : 0
Min Blobs : 0
Max Blobs : 0
From /var/log/apache/errors.log:
[Tue May 24 03:54:34 2005] [error] [client 192.168.1.2] File does not exist: /usr/share/images/Lobby-Zones.jpg
[Tue May 24 03:55:49 2005] [error] [client 192.168.1.2] Directory index forbidden by rule: /usr/share/images/
BUT it does exist.....
zoneminder:/tmp# ls -l /var/www/images/Lobby-Zones.jpg
-rw-r--r-- 1 www-data www-data 17239 2005-05-24 03:54 /var/www/images/Lobby-Zones.jpg
I found an Alias directive in the /etc/apache/httpd.conf file for images/ -so I commented it out, then restarted apache and zm...
That did it!!
One last question. Now that I can define zones I should be able to setup Alarms? Is this correct? So ZM knows when to record?
Thanks for your help,
Tim
ZM 1.21, compiled from source
Debian Sarge
P4 1.7gz / 512MB Ram / 120GB drive
Posted: Tue May 24, 2005 12:30 pm
by zoneminder
Yes, you need to have zones defined to trigger alarms. However a default zone is created each time you define a monitor. This is set up with pretty vanilla settings but should be sufficient for simple motion detection. Just change your monitors to Modect mode and wander around in front of your cameras and you should get something generated.
Phil
Posted: Tue May 24, 2005 12:31 pm
by tim@pcs-alaska.com
Thanks Phil! You have really done great work here! I can't wait to do a write up with screen shots and share it with my Linux buddies!
Thanks again!