ZoneMinder / zoneminder

ZoneMinder is a free, open source Closed-circuit television software application developed for Linux which supports IP, USB and Analog cameras.
http://www.zoneminder.com/
GNU General Public License v2.0
5.13k stars 1.22k forks source link

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

Open IanWardell opened 4 years ago

IanWardell commented 4 years ago

Describe Your Environment

If the issue concerns a camera

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

welcome[bot] commented 4 years ago

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

IanWardell commented 4 years ago

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 commented 4 years ago

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.

connortechnology commented 4 years ago

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

stale[bot] commented 3 years ago

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.