Disable alerting temporarily

Forum for questions and support relating to the 1.24.x releases only.
Locked
kenrandrews
Posts: 4
Joined: Wed Oct 27, 2010 2:24 pm

Disable alerting temporarily

Post 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?
User avatar
jdhar
Posts: 125
Joined: Fri Oct 01, 2010 9:15 pm
Location: California

Post 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 :)
eyeZm, Native iPhone App for ZoneMinder: http://www.eyezm.com

Version 1.3 now available on iTunes, introduces Montage view, HTTPS/SSL support and H264 native streaming!

Subscribe to RSS feed for updates: http://www.eyezm.com/rssfeed.xml
kenrandrews
Posts: 4
Joined: Wed Oct 27, 2010 2:24 pm

Post 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.
Locked