Page 1 of 1
Is it possible to enable/disable alarms externally
Posted: Mon Nov 24, 2014 4:56 pm
by Doume
First of all, hello to all members
I'm a noob about Zoneminder, and I'm currently discovering it.
Congratulations to all developers/contributors !
My first goal is to have a simple command to enable alarms on all cameras of a group, with a simple command (a shell script, a perl script, or a cgi script callable from a web page)
in brief, avoid necessity to connect to zm, and activate alarm for each camera....
Is it possible to change a value in Mysql database, or to call a perl tool to do that ?
Thanks
Re: Is it possible to enable/disable alarms externally
Posted: Mon Nov 24, 2014 6:08 pm
by Nerre
As far as I understand the easiest solution is to set up different Run-states, I've set upp Home and Away, where Home has all cameras on Monitor och Away have them all on Modect.
It should be possible to switch Run-state from the command line (I don't remember the exact command though, haven't set it up yet).
Re: Is it possible to enable/disable alarms externally
Posted: Mon Nov 24, 2014 7:12 pm
by Doume
Thanks for answer
That seems to be a good idea, but I've to understand how to configure many Run_States....
In the meantime, I've tried the 'zmu' command, like :
Code: Select all
root@server:~# zmu -m 4 -v -E --username admin --password my_pass
Monitor 4(Outside)
Enabling event generation
root@server:~#
the zmu utility return a positive ack, but nothing happens : The camera don't switch , and does'nt detect alarms....
Re: Is it possible to enable/disable alarms externally
Posted: Tue Nov 25, 2014 7:04 am
by Nerre
Re: Is it possible to enable/disable alarms externally
Posted: Tue Nov 25, 2014 6:20 pm
by Doume
Thanks, Nerre !
I'll try that : It's not easy to discover this kind of feature : Have to know the 'status' has to be clicked !
And the logic to store / activate a run_state in the popup window is'nt really 'intuitive' ....
Re: Is it possible to enable/disable alarms externally
Posted: Wed Nov 26, 2014 9:03 am
by Doume
The management of run_state seems to be a bit hazardous....
Sometimes Modect works, sometimes not !
Is it possible to check which run_state is running at a moment ?
the console only displays 'Running'
Re: Is it possible to enable/disable alarms externally
Posted: Wed Nov 26, 2014 9:59 am
by Nerre
zmpkg.pl status
Or is it that command that just returns Running?
Re: Is it possible to enable/disable alarms externally
Posted: Wed Nov 26, 2014 2:54 pm
by Doume
Nerre wrote:zmpkg.pl status
Or is it that command that just returns Running?
yep, only 'running'
