Page 1 of 1

getting an extra " in

Posted: Sat Apr 04, 2020 2:32 am
by skyking
I m revisiting the old axis days on my new build, and tried getting on-camera motion detection going. I have it all set up and tested, but I am getting an extra set of quotes in the trigger script. Here is the log line:
Can't find monitor '"2' for message '"2|on 25|5|cause|text|showtext"'
I think that leading double quote is mucking it up. I have it working on older installs fine, it was slick when you had 20+ cameras and you could dump some of the processor load off.
This is what I have in the axis camera 207w trigger text
2|on 25|5|cause|text|showtext
I have the camera set to nodect and enabled.
Debian Buster x86_64

OK I see here the mods needed on zmtrigger to strip out the "

Code: Select all

   sub handleMessage{
       my $connection = shift;
       my $message = shift;
       #  CUA  - Axis camera send the message quoted with"
       #  CUA  - Also Axis camera cannot save the plus sign which
       #  CUA  - possibly exists in the 1|on+20|score|cause|text|showtext formatted msg
       $message=~ s/^\"//g;
       $message=~ s/\"$//g;
       $message=~ s/on /on\+/;
       #  CUA - end of modifications
       my ( $id, $action, $score, $cause, $text, $showtext ) = split( /\|/, $message );
But the file looks different than the old days. Any suggestions where to insert those changes?

Re: getting an extra " in

Posted: Sat Apr 04, 2020 3:09 pm
by iconnor
Hasn't changed that much. insert that at line 357. I have merged it and will release it in 1.34.9.

Re: getting an extra " in

Posted: Sat Apr 04, 2020 5:00 pm
by skyking
thanks Man, I will be sure to pass it along. :D
Works like a charm.