Event to stop/start Zoneminder

Post Reply
Daylights
Posts: 26
Joined: Monday 08 January 2018 11:55
Target OS: -
Domoticz version:
Contact:

Event to stop/start Zoneminder

Post by Daylights » Tuesday 21 August 2018 20:46

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?

Daylights
Posts: 26
Joined: Monday 08 January 2018 11:55
Target OS: -
Domoticz version:
Contact:

Re: Event to stop/start Zoneminder

Post by Daylights » Saturday 25 August 2018 14:37

Anyone?

User avatar
HansieNL
Posts: 454
Joined: Monday 28 September 2015 15:13
Target OS: Raspberry Pi
Domoticz version:
Contact:

Re: Event to stop/start Zoneminder

Post by HansieNL » Saturday 25 August 2018 17:53

Maybe this link https://stackoverflow.com/questions/373 ... -that-mean can give you a hint.
Blah blah blah

royson
Posts: 13
Joined: Friday 10 November 2017 21:56
Target OS: Raspberry Pi
Domoticz version:
Contact:

Re: Event to stop/start Zoneminder

Post by royson » Sunday 21 October 2018 12:44

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


Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests