Search found 129 matches

by Paranoid
Fri Sep 15, 2017 6:37 pm
Forum: User Contributions
Topic: HikVision PTZ control
Replies: 39
Views: 126616

Re: HikVision PTZ control

Does your camera support "momentary" move space which is what the script is using for relative movement. Try this url: http://<yourcamera>/ISAPI/PTZCtrl/channels/1/capabilities The response is a block of XML describing the PTZ capabilities. If you see a section like this: <MomentaryPanTilt...
by Paranoid
Sat May 27, 2017 9:36 am
Forum: User Contributions
Topic: HikVision PTZ control
Replies: 39
Views: 126616

Re: HikVision PTZ control

You can get the width and height as follows: $xResolution = $self->{Monitor}{Width}; $yResolution = $self->{Monitor}{Height}; Tried it on mine and it looks to work okay. It also appears that for the Relative command they have switched X and Y which confused me at first. Handy tip: Every time you mak...
by Paranoid
Fri May 26, 2017 7:02 pm
Forum: User Contributions
Topic: HikVision PTZ control
Replies: 39
Views: 126616

Re: HikVision PTZ control

You should be able to find all the information you need here: http://oversea-download.hikvision.com/u ... ervice.pdf
by Paranoid
Thu Jan 19, 2017 12:56 pm
Forum: ZoneMinder 1.30.x
Topic: Modect stops recording even if there is still movement.
Replies: 5
Views: 3078

Re: Modect stops recording even if there is still movement.

The "Post Event Image Count" under buffers controls this behaviour. If you want an extra 20 seconds of non activity at 10 fps then set it to 200 (10 x 20). As for it not detecting humans, you need to adjust the the zone settings. See http://zoneminder.readthedocs.io/en/latest/userguide/def...
by Paranoid
Tue Dec 13, 2016 5:27 pm
Forum: ZoneMinder 1.30.x
Topic: Obtain Event Directory
Replies: 3
Views: 1929

Re: Obtain Event Directory

Code: Select all

DIR_EVENTS/<monitor id>/YY/MM/DD/.<event id>
YY = 2 digit year
MM = 2 digit month
DD = 2 digit day

The above is a softlink to the directory
by Paranoid
Mon Dec 12, 2016 5:27 pm
Forum: ZoneMinder 1.29.x
Topic: Rasbian help request
Replies: 15
Views: 6188

Re: Rasbian help request

That SQL is failing because of this:

Code: Select all

( E.Length <= 4 seconds )
so I'd guess your filter has the phrase "4 seconds" in it somewhere
by Paranoid
Sun Dec 11, 2016 11:12 pm
Forum: ZoneMinder 1.30.x
Topic: Request for help with control scripts
Replies: 7
Views: 4744

Re: Request for help with control scripts

I think you misunderstand. I mean using the move mapped ZoneMinder functionality to get an absolute x and y position to move to instead of having a text entry box. For example: sub moveMap { my $self = shift; my $params = shift; my $xcoord = $self->getParam( $params, 'xcoord', $self->{Monitor}{Width...
by Paranoid
Sun Dec 11, 2016 10:11 pm
Forum: ZoneMinder 1.30.x
Topic: Request for help with control scripts
Replies: 7
Views: 4744

Re: Request for help with control scripts

Q: Is there a built-in mechanism for the control HTML to display an input text box, and pass the entered text to the control script? None that I know of. Why don't you implement Move Mapped? With that you click directly on the image and your script gets passed the x and y coordinates. You can eithe...
by Paranoid
Sun Dec 11, 2016 2:30 pm
Forum: ZoneMinder 1.30.x
Topic: Email Questions with Events
Replies: 8
Views: 3636

Re: Email Questions with Events

What do you have EMAIL_HOST set to? Whatever you have it set to must have a mail server running.
Try the following:

Code: Select all

telnet localhost smtp
If it connects then your mail server is listening on the localhost interface so set EMAIL_HOST to localhost.
by Paranoid
Fri Dec 09, 2016 8:53 pm
Forum: ZoneMinder 1.30.x
Topic: Request for help with control scripts
Replies: 7
Views: 4744

Re: Request for help with control scripts

Also, some fiddling with these scripts has led me to the conclusion that if I make a change to the script file, the changed script file is not reread by the system. Apparently, I hafta close the camera monitor display, then disable the monitor (in the console) which uses it, and save that, and then...
by Paranoid
Fri Dec 09, 2016 8:34 pm
Forum: ZoneMinder 1.30.x
Topic: Request for help with control scripts
Replies: 7
Views: 4744

Re: Request for help with control scripts

Perl Tip: Have a look at where the perl variable is being created. You will see a line something like this: my $req = HTTP::Request->new(GET => "http://someurl/" ); The important bit is HTTP::Request (the bit before the ->new ). This tells you that the $req object is an HTTP::Request objec...
by Paranoid
Thu Nov 03, 2016 8:30 pm
Forum: User Contributions
Topic: HikVision PTZ control
Replies: 39
Views: 126616

Re: HikVision PTZ control

Thanks. Almost. We seem to have fixed the error, however now when you try to control, there is no response from the camera. I'm stuck. Sorry to bug about this but i am hoping my stupidity helps someone else out down the line. I've modified the code so as add some loging when authentication fails. C...
by Paranoid
Thu Nov 03, 2016 5:49 pm
Forum: User Contributions
Topic: HikVision PTZ control
Replies: 39
Views: 126616

Re: HikVision PTZ control

Running the perl gives me a 'Looks OK' Here is the output of: sudo zmcamtool.pl --export HikVision mysqldump: [Warning] Using a password on the command line interface can be insecure. INSERT INTO `Controls` VALUES (NULL,'HikVision','Local','',0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,...
by Paranoid
Wed Nov 02, 2016 8:51 pm
Forum: User Contributions
Topic: HikVision PTZ control
Replies: 39
Views: 126616

Re: HikVision PTZ control

OK. Sorry for the PTZ noob questions, but i have one more. I have setup the script & setup the control on ZM. When I try to move the camera, I am get an error: Control response was status = undefined message = /usr/bin/zmcontrol.pl --panspeed=65 --autostop --command=moveConLeft --id=20=> I set ...
by Paranoid
Wed Nov 02, 2016 1:19 pm
Forum: ZoneMinder 1.30.x
Topic: Hikvision DS-2DE4220-AE PTZ Control
Replies: 6
Views: 4190

Re: Hikvision DS-2DE4220-AE PTZ Control

I've posted the control script here