Ouch. That's what I get for hand-editing patches before posting.
Very sorry to have messed you around like this.
In zm_zone.cpp, line 201, there's a line that reads
It should read
Updated patch with this one-liner change is at
http://www.dgmo.org-a.googlepages.com/motion-1-2.diff
It will also log the deviation values like
Code: Select all
May 15 08:08:00 localhost zma_m4[4511]: INF [Average 3.523838, pixels 39878 (10, 10, 10)]
May 15 08:08:00 localhost zma_m4[4511]: INF [Average 3.536901, pixels 39909 (10, 10, 10)]
May 15 08:08:00 localhost zma_m4[4511]: INF [Average 3.438239, pixels 38775 (10, 10, 10)]
May 15 08:08:00 localhost zma_m4[4511]: INF [Average 3.276509, pixels 38875 (10, 10, 9)]
May 15 08:08:00 localhost zma_m4[4511]: INF [Average 3.191593, pixels 37573 (9, 10, 9)]
Values above 2.5 after considered an alarm. The pixels is the number of pixels considered to be alarming, and the (r,g,b) are the average deviation in Reg,Green and Blue values (will be non-zero when the overall lighting levels change).
Edit: Hmm. And maybe apply this one too:
Code: Select all
diff --git a/src/zm_zone.cpp b/src/zm_zone.cpp
index f1e59ec..49d5c1c 100644
--- a/src/zm_zone.cpp
+++ b/src/zm_zone.cpp
@@ -211,6 +211,7 @@ bool Zone::CheckAlarms( const Image *delta_image )
#endif
return( true );
}
+ return false;
if ( !alarm_pixels )
{