Zoneminder and X10

Support and queries relating to all previous versions of ZoneMinder
Locked
dude77
Posts: 4
Joined: Thu Dec 04, 2008 9:54 am

Zoneminder and X10

Post by dude77 »

Hi Zoneminders,

Little issue with X10 and triggers, please assist.

I have installed ZM with a cm11 device and BTTV these are very linux friendly devices. ZM is loading and I can see picture on the screen. I have enabled the X10 support under options and left the X10 device to

Code: Select all

/dev/ttyS0
tail /tmp/zmx10.log -f shows that cm11 is talking to linux eg:

12/03/08 00:05:48.374589 zmx10[8917].INF [Got event - A05 ON]
12/03/08 00:06:25.174337 zmx10[8917].DBG [Loading tasks]
12/03/08 00:07:25.174333 zmx10[8917].DBG [Loading tasks]
12/03/08 00:08:06.234533 zmx10[8917].INF [Got event - A05 OFF]

under the video id1 I have enabled X10 triggers and in X10 tab I have added

X10 Activation String: 5
X10 Input Alarm String: 5

Now the cameras are set to 'Nodect'

I can not get the X10 alarms o start issuing a recording.

PLease point me in the right direction:

Do I need to edit the perl scripts?
zmx10.pl , zmtrigger.pl

does zmtrigger.pl need to be started?

I have installed the X10:: perl script plus the Device::Serial ect.



the whole setup is just to start recording when a ON signal is received and stop for OFF signal from the cm11 device. aka /dev/ttyS0

Please help

Thank you

Kind Regards
dude77
Posts: 4
Joined: Thu Dec 04, 2008 9:54 am

Post by dude77 »

Hi

I am not sure what the issue is with x10 under Zoneminder I mean the options are there under the the config but it simply does not work.


I have writen a bash script that starts a Forced alarm that I wanted to start from the zmx10.pl script, but when I start the bash script I noticed that the zmx10.pl script stops the recording.

Code: Select all

#!/bin/bash

set `zmu -m 1 -s` 'zmu -m 1 -a'
                if [ $1 -eq 0 ]; then $2
        else
        echo "not recording"
fi
14/12/2008 11:23:06.417773 zmx10[5332].DBG [cam-0 has active string '1']
14/12/2008 11:23:06.418014 zmx10[5332].DBG [Adding to device list, uc:1, ev:ON, mo:1, fu:start_active, li:0]
14/12/2008 11:23:06.418222 zmx10[5332].DBG [Adding to device list, uc:1, ev:OFF, mo:1, fu:stop_active, li:0]
14/12/2008 11:23:06.418407 zmx10[5332].DBG [cam-0 has alarm input string '1']
14/12/2008 11:23:06.418589 zmx10[5332].DBG [Adding to device list, uc:1, ev:ON, mo:1, fu:start_alarm, li:0]
14/12/2008 11:23:06.418775 zmx10[5332].DBG [Adding to device list, uc:1, ev:OFF, mo:1, fu:stop_alarm, li:0]
14/12/2008 11:23:28.947848 zmx10[5332].INF [Got event - A01 ON]
14/12/2008 11:24:03.746723 zmx10[5332].DBG [Applying ON_list for 1]
14/12/2008 11:24:06.746760 zmx10[5332].DBG [Loading tasks]
14/12/2008 11:24:06.747756 zmx10[5332].DBG [cam-0 has active string '1']
14/12/2008 11:24:06.748002 zmx10[5332].DBG [Adding to device list, uc:1, ev:ON, mo:1, fu:start_active, li:0]
14/12/2008 11:24:06.748210 zmx10[5332].DBG [Adding to device list, uc:1, ev:OFF, mo:1, fu:stop_active, li:0]
14/12/2008 11:24:06.748398 zmx10[5332].DBG [cam-0 has alarm input string '1']
14/12/2008 11:24:06.748583 zmx10[5332].DBG [Adding to device list, uc:1, ev:ON, mo:1, fu:start_alarm, li:0]
14/12/2008 11:24:06.748777 zmx10[5332].DBG [Adding to device list, uc:1, ev:OFF, mo:1, fu:stop_alarm, li:0]
14/12/2008 11:24:16.737879 zmx10[5332].INF [Got event - A01 ON]
14/12/2008 11:24:18.536702 zmx10[5332].DBG [Applying OFF_list for 1]
What does need to happen for the config via web frontend to actually work.

now this makes me think that the zmx10.pl list only works when already recording or something in that lines.

Here is my monitor config:

Code: Select all

sudo zmu -m 1 -q
Id : 1
Name : cam-0
Type : Local
Device : /dev/video0
Channel : 0
Format : 0
Width : 640
Height : 480
Palette : 4
Colours : 3
Event Prefix : Event-
Label Format : %N - %y/%m/%d %H:%M:%S
Label Coord : 0,0
Image Buffer Count : 40
Warmup Count : 25
Pre Event Count : 10
Post Event Count : 10
Stream Replay Buffer : 1000
Alarm Frame Count : 1
Section Length : 600
Maximum FPS : 5.00
Alarm Maximum FPS : 25.00
Reference Blend %ge : 7
Track Motion : 0
Function: 6 - Externally Triggered only, no Motion Detection
Zones : 1
  Id : 1
  Label : All
  Type: 1 - Active
  Shape : 4 points
    0: 0,0
    1: 639,0
    2: 639,479
    3: 0,479
  Alarm RGB : ff0000
  Check Method: 3 - Blobs
  Min Pixel Threshold : 25
  Max Pixel Threshold : 0
  Min Alarm Pixels : 9216
  Max Alarm Pixels : 230400
  Filter Box : 3,3
  Min Filter Pixels : 9216
  Max Filter Pixels : 230400
  Min Blob Pixels : 6144
  Max Blob Pixels : 0
  Min Blobs : 1
  Max Blobs : 0
Please assist if posible.

Thank you

Kind Regards
Locked