Page 1 of 1

Event to stop/start Zoneminder

Posted: Tuesday 21 August 2018 20:46
by Daylights
I have Domoticz with Security Panel configured on an Ubuntu 16.04 LTS server. The same server runs Zoneminder to record events for several camera's when it detects motion. My Zoneminder events just get filled up with videos when I am home, so no need to have Zoneminder running while I am home. So I was thinking to stop the Zoneminder service whenever the security state in Domoticz is disarmed.

I created a simple 'service zoneminder stop' bash script that stops the Zoneminder service. For testing purposes I set the script permissions to 777, it works when I run it in a terminal as either the 'domoticz' user or 'root'. But when I create a simple Blockly event that runs the script when I switch on a dummy switch, I get an error in the log:

Error executing script command (/home/domoticz/scripts/stop_zoneminder.sh). returned: 256

I get the feeling there should me a more elegant way to do this, but this is the only way I could think of. Anyone?

Re: Event to stop/start Zoneminder

Posted: Saturday 25 August 2018 14:37
by Daylights
Anyone?

Re: Event to stop/start Zoneminder

Posted: Saturday 25 August 2018 17:53
by HansieNL
Maybe this link https://stackoverflow.com/questions/373 ... -that-mean can give you a hint.

Re: Event to stop/start Zoneminder

Posted: Sunday 21 October 2018 12:44
by royson
You don't really need to stop zoneminder completely, just change the camera status to "monitor" instead of "modect".

Not that you where asking, just thought I might point that out if you'd missed it.

Have you managed to somehow get pictures from zoneminder to be presented in Domoticz?

Skickat från min CLT-L29 via Tapatalk