Page 1 of 1

Change zone sensitivity at night?

Posted: Sat Oct 03, 2009 1:39 am
by aperry
I read the FAQ on using run states to change between monitor, record, etc at certain times. However, I don't think it allows me to change the sensitivity of zones (if I want it to stay in modect). Is there any way to do this? Basically, I want zoneminder to be much more sensitive at night. My camera is used with a motion sensitive light, but my daytime sensitivity isn't quite triggering the thing to record when the light comes on.

Thanks in advance!
Aaron

Posted: Wed Oct 07, 2009 6:34 pm
by itl
no response? I'm wondering the same thing. On a bright sunny day, the feed is so bright it is completely washed out. I adjust it manually (which triggers an alarm) and then end up getting some cloud cover, and it gets too dark. Any way to account for this in ZM?

I am using a cheap Labtec Webcam Pro for my proof of concept with zm before spending $$$ on cameras. Do decent cameras somehow handle the adjustment of light?

Posted: Wed Oct 07, 2009 6:50 pm
by quietas
I think this is what you want:
http://www.zoneminder.com/wiki/index.ph ... or_week.3F

For example, from 7am I have all 14 of my 16 cameras running in record through the day, with the 2 remaining cameras set to mocord. At 7pm, I have the those 14 cameras set to mocord also.

Essentially you set up all your monitors in one manner, then save that state to Day. Set them up again in another manner, save that state as Night. Then you can create a crontab entry to activate Day at 7am with a second entry to activate Night at 7pm.

Posted: Wed Oct 07, 2009 7:25 pm
by aperry
As mentioned in the first post, I reviewed that FAQ and I do not think it accomplishes what's required here.

I'd like the individual zone settings to change at certain times. For example, during sunlight hours I want my zones to use the "best, low sensitivity" preset and then switch to "best, high sensitivity" at night time (when movement is harder to detect).

Thoughts?
Aaron

Posted: Wed Oct 07, 2009 8:59 pm
by quietas
I just tried and it seems that the zones do not change with the monitors when the state is changed.

Someone might know of a way to do it via command line though.

Posted: Wed Oct 07, 2009 10:23 pm
by aperry
Thanks, yeah, I also had tested it out and had similar results. It was hard for me to tell if I was doing everything correctly, so I'm glad that you validated it.

Aaron

Posted: Thu Oct 08, 2009 6:44 pm
by enzo86
The would be very helpful for those of us that setup preclusion zones during the day to to stop sun movement, where these features have no use at night and can lower sensitivity

Posted: Sun Oct 11, 2009 12:10 pm
by johnnytolengo
You can duplicate the monitor with different configuration and at night you just switch them.

Posted: Mon Oct 12, 2009 11:54 am
by aperry
That sounds like it will work. Thanks, I hadn't considered the idea of having more than one monitor configured for the same cam. Thanks!!

Aaron

Posted: Mon Oct 12, 2009 11:58 am
by bristoldave
Duplicate monitors seems like a really ugly way of doing it.

I've done it using cron jobs which load the SQL .MYI and MYD files from different backups depending on whether it's day or night - works for me.

I'll try and dig the thread out that explains it.

Posted: Mon Oct 12, 2009 12:31 pm
by aperry
bristoldave wrote:Duplicate monitors seems like a really ugly way of doing it.

I've done it using cron jobs which load the SQL .MYI and MYD files from different backups depending on whether it's day or night - works for me.

I'll try and dig the thread out that explains it.

Thanks. That sounds interesting and I'd love to see the details.

Aaron

Posted: Sun Nov 01, 2009 1:31 am
by enzo86
bristoldave wrote:Duplicate monitors seems like a really ugly way of doing it.

I've done it using cron jobs which load the SQL .MYI and MYD files from different backups depending on whether it's day or night - works for me.

I'll try and dig the thread out that explains it.
i am trying to do the same thing for night /day config

Posted: Sun Nov 29, 2009 9:51 pm
by Blazer
You are on the right track. I know someone who uses a php script to dynamically alter monitor/zone settings by tweaking values in the mysql database.

Posted: Tue Feb 09, 2010 6:48 pm
by ACTechWorld
Take a look at my app note at : http://www.tech-world.com/RSVSwitch/rsvan0017.php

There's an example in the code of using zmu to adjust brightness and contrast via perl and cron. No need to mess with the database.

There are some image tools to detect the brightness of a jpg image that you could also look at to do some dynamic adjustment by analyzing frames and then coding the brightness changes. That was beyond my needs, so I didn't really dig into it.

Posted: Tue Feb 09, 2010 10:55 pm
by Flav
I use a cgi/mysql script who modify database whith different config
juste a Update like this :

UPDATE `zm`.`Zones` SET `Name` = 'All',
`OverloadFrames` = '0' ... ... WHERE `Zones`.`Id` =4;