WebRTC icon indicating copy to clipboard operation
WebRTC copied to clipboard

Simplify custom PTZ controls

Open Vinndimon opened this issue 3 years ago • 2 comments

I use a Chinese camera with XMEYE/Sofia. Its' PTZ is controlled with some Python scripts that look like this in my config:

#Street Camera PTZ control
shell_command:
  street_turn_right: python3 /config/python-dvr/right.py
  street_turn_left: python3 /config/python-dvr/left.py
  street_turn_up: python3 /config/python-dvr/up.py
  street_turn_down: python3 /config/python-dvr/down.py

Is it possible to just add shell commands as PTZ controls? Without extra complications such as creating scripts and services? Could you explain how to add my scripts into your integration's PTZ config?

Vinndimon avatar Oct 22 '21 10:10 Vinndimon

I also have a similar problem. It would be great if I could define what to be called once I press on a PTZ button. For instance currently I am using rest commands to control the camera's up,down,left,right, IR on/off; example for 'up' button is:

rest_command: bobo_room_cam_up: url: http://USERNAME:[email protected]:1024/cgi-bin/hi3510/ytup.cgi

geolos avatar Oct 31 '21 19:10 geolos

See here https://github.com/AlexxIT/WebRTC/wiki/PTZ-Config-Examples#icseedvr-ipnetsurveillancesofia

dbuezas avatar Jul 11 '23 22:07 dbuezas