MoCord Mode - Alarm Sound always plays? correct behavior?
MoCord Mode - Alarm Sound always plays? correct behavior?
I have set my zoneminder 1.22.3 box up and when I set it up in MoCord mode it always plays the .wav file that I have put in the options dialog box.
Ideally it would only play the sound file when actual motion is being recorded.
Is this normal behavior for the sound file to continuously play in mocord mode even when no motion alarm has been triggered?
If anyone is curious you can check it out at
http://166.70.204.130:82/zm
username "guest"
password "guest"
to see what I mean..
cheers,
Paul
Ideally it would only play the sound file when actual motion is being recorded.
Is this normal behavior for the sound file to continuously play in mocord mode even when no motion alarm has been triggered?
If anyone is curious you can check it out at
http://166.70.204.130:82/zm
username "guest"
password "guest"
to see what I mean..
cheers,
Paul
man oh man
Oh good! So it's not just me...
I thought it a bit odd..
cheers!
Paul
I thought it a bit odd..
cheers!
Paul
interesting!
I found a bug! How exciting.. hehe
great piece of software I must admit though!
cheers,
Paul
great piece of software I must admit though!
cheers,
Paul
- zoneminder
- Site Admin
- Posts: 5215
- Joined: Wed Jul 09, 2003 2:07 pm
- Location: Bristol, UK
- Contact:
Yes, this does look wrong.
You could try editing zm_html_view_watchstatus.php and finding the lines
and change them to
I _think_ that might fix it, but I haven't tested it myself
You could try editing zm_html_view_watchstatus.php and finding the lines
Code: Select all
$new_alarm = ( $status > STATE_PREALARM && $last_status <= STATE_PREALARM );
$old_alarm = ( $status <= STATE_PREALARM && $last_status > STATE_PREALARM );
Code: Select all
$new_alarm = ( $status > STATE_PREALARM && $status <= STATE_ALERT && $last_status <= STATE_PREALARM );
$old_alarm = ( $status <= STATE_PREALARM && $last_status > STATE_PREALARM && $last_status <= STATE_ALERT );
Phil
I'm going to ask hopefully before I decide to make the change and rebuild but could this be the issue???
zm_monitor.cpp line 1155 zm-1.22.3
should the first line not be
I don't have anything left for a test bed so it depends on when my couriosity gets the best of me as to when I give it a shot.
zm_monitor.cpp line 1155 zm-1.22.3
Code: Select all
else if ( state != PREALARM )
{
Info(( "%s: %03d - Gone into prealarm state", name, image_count ));
shared_data->state = state = PREALARM;
}
Code: Select all
else if ( state == PREALARM )
i can try to recompile
I found that line you refer to.. I'll try to recompile and give it a shot.. and get back to you..
cheers!
Paul
cheers!
Paul
recompile
Curiously,
I'm not very well versed with recompiling.. if I want to recompile without overwriting all the configuration files i've made do I just simply go through the
./configure
make
and leave out the make install and just copy one of the binaries on top of the existing binaries? zm_monitor goes into what? zmc? or can I run make install without worry?
cheers,
Paul
I'm not very well versed with recompiling.. if I want to recompile without overwriting all the configuration files i've made do I just simply go through the
./configure
make
and leave out the make install and just copy one of the binaries on top of the existing binaries? zm_monitor goes into what? zmc? or can I run make install without worry?
cheers,
Paul
The only file you should have to be concerned about is zm.conf thats in /etc or /user/local/etc depending on how you configured ZM. Just make a copy named zm.conf.bak so you don't lose your database settings. Check the config.log in the source folder so that you make sure you use the same configure line ( It's allmost the top of the file and will be overwitten when you rebuild). Then you can do your make clean, ./configure.... , make, make install.
but your method should work as well, just make a backup of the source file.
but your method should work as well, just make a backup of the source file.
bummer
Well I changed the line to == and it did get rid of the "Force Alarm" option on the page, but did not solve the sound playing over and over again.. would ssh access help on this machine?
it's only being used for this purpose - so if it gets guzzied up no worries..
cheers,
Paul
it's only being used for this purpose - so if it gets guzzied up no worries..
cheers,
Paul