Is it possible to enable/disable alarms externally

Forum for questions and support relating to the 1.27.x releases only.
Locked
User avatar
Doume
Posts: 6
Joined: Mon Nov 24, 2014 4:05 pm

Is it possible to enable/disable alarms externally

Post 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
Linux satellite receivers, and Home automation hobbies
Nerre
Posts: 100
Joined: Thu Sep 25, 2014 10:22 am

Re: Is it possible to enable/disable alarms externally

Post 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).
User avatar
Doume
Posts: 6
Joined: Mon Nov 24, 2014 4:05 pm

Re: Is it possible to enable/disable alarms externally

Post 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....
Linux satellite receivers, and Home automation hobbies
User avatar
Doume
Posts: 6
Joined: Mon Nov 24, 2014 4:05 pm

Re: Is it possible to enable/disable alarms externally

Post 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' ....
Linux satellite receivers, and Home automation hobbies
User avatar
Doume
Posts: 6
Joined: Mon Nov 24, 2014 4:05 pm

Re: Is it possible to enable/disable alarms externally

Post 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'
Linux satellite receivers, and Home automation hobbies
Nerre
Posts: 100
Joined: Thu Sep 25, 2014 10:22 am

Re: Is it possible to enable/disable alarms externally

Post by Nerre »

zmpkg.pl status

Or is it that command that just returns Running?
User avatar
Doume
Posts: 6
Joined: Mon Nov 24, 2014 4:05 pm

Re: Is it possible to enable/disable alarms externally

Post by Doume »

Nerre wrote:zmpkg.pl status

Or is it that command that just returns Running?
yep, only 'running' :(
Linux satellite receivers, and Home automation hobbies
Locked