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?
Event to stop/start Zoneminder
Moderator: leecollings
- HansieNL
- Posts: 957
- Joined: Monday 28 September 2015 15:13
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: Event to stop/start Zoneminder
Maybe this link https://stackoverflow.com/questions/373 ... -that-mean can give you a hint.
Blah blah blah
-
- Posts: 13
- Joined: Friday 10 November 2017 20:56
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: Event to stop/start Zoneminder
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
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
Who is online
Users browsing this forum: No registered users and 1 guest