EnableAlarms or DisableAlarms with Command Line

Forum for questions and support relating to the 1.25.x releases only.
Locked
shistace
Posts: 2
Joined: Wed Feb 18, 2015 1:06 pm

EnableAlarms or DisableAlarms with Command Line

Post by shistace »

I want to Enable Alarms or Disable Alarms with crontab.
Is it possible ?


For example :
..
All Day, 9h am : enable alarms
All Day, 18h pm : Disable alarms
..

Thanks
User avatar
asker
Posts: 1553
Joined: Sun Mar 01, 2015 12:12 pm

Re: EnableAlarms or DisableAlarms with Command Line

Post by asker »

Do you mean "enable or disable recording" based on time of day ? If so, you can easily do it via crontab. You need to create run states
http://www.zoneminder.com/wiki/index.ph ... or_week.3F
shistace wrote:I want to Enable Alarms or Disable Alarms with crontab.
Is it possible ?


For example :
..
All Day, 9h am : enable alarms
All Day, 18h pm : Disable alarms
..

Thanks
I no longer work on zmNinja, zmeventnotification, pyzm or mlapi. I may respond on occasion based on my available time/interest.

Please read before posting:
How to set up logging properly
How to troubleshoot and report - ES
How to troubleshoot and report - zmNinja
ES docs
zmNinja docs
PacoLM
Posts: 971
Joined: Wed Dec 02, 2009 9:55 pm
Location: Spain

Re: EnableAlarms or DisableAlarms with Command Line

Post by PacoLM »

Asker, you are so kind documenting all your learnings! Good job!

After more than 15 years, no longer using ZM as surveillance system.
Now in the dark side, using a commercial system...
User avatar
asker
Posts: 1553
Joined: Sun Mar 01, 2015 12:12 pm

Re: EnableAlarms or DisableAlarms with Command Line

Post by asker »

PacoLM wrote:Asker, you are so kind documenting all your learnings! Good job!
Thank you PacoLM! I'm working on the last (and longest one) --> the zone definition article.
I no longer work on zmNinja, zmeventnotification, pyzm or mlapi. I may respond on occasion based on my available time/interest.

Please read before posting:
How to set up logging properly
How to troubleshoot and report - ES
How to troubleshoot and report - zmNinja
ES docs
zmNinja docs
Locked