Page 1 of 1
Disable alerting temporarily
Posted: Fri Oct 29, 2010 3:59 pm
by kenrandrews
I want to setup up Zoneminder to send an email based on motion detection, but one of the zones is my front door. I would love to setup a script to run to turn this on and off when I run the script, but I can't figure out the best way to do this. The only way I can think of so far is to disable the SMTP on the server somehow, but I imagine there is a better way to do it through editing a config file for Zone Minder. Any ideas where I could start looking?
Posted: Fri Oct 29, 2010 4:33 pm
by jdhar
I don't use notifications, so I can't give you a hardened script that I've tested... but assuming you are turning notifications on/off through the 'Email' tab in options, something like this may work:
http://<server>/<path>/index.php?view=options&tab=mail&action=options&newConfig[ZM_OPT_EMAIL]=<0>
That should change the value of ZM_OPT_EMAIL to either 1 or 0. Let me know if that works for you
Posted: Fri Oct 29, 2010 5:44 pm
by kenrandrews
Thanks this seems to be exactly what I was working for. I am going to setup email alerts tonight and I will let you know if this works.