zoneminder icon indicating copy to clipboard operation
zoneminder copied to clipboard

Axis API V2 needs to be updated to allow " cameraId=<##> " to append to GET /axis-cgi/com/ptz.cgi

Open IanWardell opened this issue 4 years ago • 5 comments

Describe Your Environment

  • Version of ZoneMinder release version v1.34.16.
  • How you installed ZoneMinder Docker Container https://hub.docker.com/r/quantumobject/docker-zoneminder/
  • Full name and version of OS
  • Browser name and version Brave - Version 1.11.97 Chromium: 84.0.4147.89 (Official Build) (64-bit) Firefox- 78.0.2 (64-bit)

If the issue concerns a camera

  • Make and Model : conico (Axis PTZ )
  • resolution 1080p However I am connecting to TinyCam. Tiny cam IS able to contro the Conico PTZ.

Describe the bug In Control Axis API v2 the ?cameraid=### option does not work. Here is what the PTZ command looks like from tinycam GET /axis-cgi/com/ptz.cgi?cameraId=###&continuouspantiltmove=100,0

Here is what it looks like from zoneminder, note the lack of cameraID. When I add it to the URL it doesn't work, I need to change it in the PTZ config...I was hoping someone else already had working one.

GET /axis-cgi/com/ptz.cgi?rpan=-40

To Reproduce Steps to reproduce the behavior:

  1. setup tinycam app

  2. enable server

  3. setup two ptz cameras

  4. add tinycam server to zoneminder

  5. ensure both cameras are showing up with their respective streams using the following format source: http://:8083/axis-cgi/mjpg/video.cgi?camera=<camera #>&user=&pwd= Control-Type: :@192.168.1.157:8083

  6. try to select a specific camera for PTZ I tried with - control device, I Tried to add it to the end of the url, I tried setting Control Device to "/axis-cgi/com/ptz.cgi?cameraId=1"

Expected behavior I expect to be able to pass ?cameraId=1 to tinycam . Tinycam log shows: GET /axis-cgi/com/ptz.cgi?rpan=-40 when it should say GET /axis-cgi/com/ptz.cgi**?cameraId=1**&rpan=-40

IanWardell avatar Jul 23 '20 02:07 IanWardell

Thanks for opening your first issue here! Just a reminder, this forum is for Bug Reports only. Be sure to follow the issue template!

welcome[bot] avatar Jul 23 '20 02:07 welcome[bot]

Thanks for opening your first issue here! Just a reminder, this forum is for Bug Reports only. Be sure to follow the issue template!

Thanks bot, this is in fact a bug report. API needs to look like the following, except as a perl script. note the /ptz.cgi?camera=%CAMERANO% section

<request name="PtzMoveRelLeft">/axis-cgi/com/ptz.cgi?camera=%CAMERANO%&amp;continuouspantiltmove=-100,0</request>

IanWardell avatar Jul 24 '20 21:07 IanWardell

bump -- if someone knows how I can update this file myself and have it load with zoneminder I can do that. I tried editing the file however zoneminder would not recognize the new edits.

IanWardell avatar Sep 27 '20 23:09 IanWardell

you have to restart the control daemon to get it to pick up your changes. sudo zmdc.pl restart /usr/bin/zmcontrol.pl --id 1

connortechnology avatar Sep 28 '20 12:09 connortechnology

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Jun 11 '21 01:06 stale[bot]