EnableAlarms or DisableAlarms with Command Line

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

EnableAlarms or DisableAlarms with Command Line

Post by shistace » Mon Feb 23, 2015 8:00 pm

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: 1510
Joined: Sun Mar 01, 2015 12:12 pm

Re: EnableAlarms or DisableAlarms with Command Line

Post by asker » Wed Mar 25, 2015 5:24 pm

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
Please don't ask me questions via PM. Please post in these forums or GitHub.

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 » Wed Mar 25, 2015 6:23 pm

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: 1510
Joined: Sun Mar 01, 2015 12:12 pm

Re: EnableAlarms or DisableAlarms with Command Line

Post by asker » Wed Mar 25, 2015 7:48 pm

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.
Please don't ask me questions via PM. Please post in these forums or GitHub.

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

Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests