The Features Menu :: Pan & Tilt


param.cgi?cmd=ptzctrl

Pan, Tilt & Zoom Control

  • act: Camera movement: [left, right, down, up, stop, focusin, focusout, zoomout, zoomin, tour, hscan, vscan]
  • step: 0 continuous movement or number of steps [1-100]
  • speed: Speed of the movement [0-10]

Example

SET: http://admin:instar@192.168.2.168/param.cgi?cmd=ptzctrl&step=0&-act=right&-speed=10

cmd="ptzctrl";
response="200";
SET: http://admin:instar@192.168.2.168/param.cgi?cmd=ptzctrl&step=0&act=stop

cmd="ptzctrl";
response="200";
SET: http://admin:instar@192.168.2.168/param.cgi?cmd=ptzctrl&step=1&-act=up&-speed=10

cmd="ptzctrl";
response="200";

param.cgi?cmd=ptzpreset (deprecated)

Pan, Tilt Preset

  • act: Go to preset goto, delete postion del, get postion information get or save current position to preset set
  • index: Preset position slot [1-8]
  • set: Is preset set to a position [0,1]
  • name: Custom position name

Example

SET: http://admin:instar@192.168.2.168/param.cgi?cmd=ptzpreset&act=goto&index=2

cmd="ptzpreset";
response="200";
SET: http://192.168.2.168/param.cgi?cmd=ptzpreset&act=set&index=8&user=admin&pwd=instar

cmd="ptzpreset";
response="200";

param.cgi?cmd=getptzpreset

Pan, Tilt Preset

  • act: Go to preset goto or get positions get
  • index: Preset position slot [1-8]
  • set: Is preset set to a position [0,1]
  • name: Custom position name

Example

SET: http://admin:instar@192.168.2.168/param.cgi?cmd=getptzpreset&act=goto&index=2

cmd="getptzpreset";
response="200";
SET: http://192.168.2.168/param.cgi?cmd=getptzpreset&act=get&user=admin&pwd=instar

cmd="getptzpreset";
set[1]="1";
name[1]="position name 1";
set[2]="1";
name[2]="position name 2";
set[3]="1";
name[3]="position name 3";
set[4]="1";
name[4]="position name 4";
set[5]="1";
name[5]="position name 5";
set[6]="0";
name[6]="";
set[7]="0";
name[7]="";
set[8]="0";
name[8]="";
response="200";
SET: http://192.168.2.168/param.cgi?cmd=getptzpreset&act=get&index=1&user=admin&pwd=instar

cmd="getptzpreset";
set="1";
name="12345";
response="200";

param.cgi?cmd=setptzpreset

Pan, Tilt Preset

  • act: Delete specified preset del or save current position to preset set
  • index: Preset position slot [1-8]
  • set: Is preset set to a position [0,1]
  • name: Custom position name

Example

SET: http://admin:instar@192.168.2.168/param.cgi?cmd=setptzpreset&act=set&index=2&name=position2

cmd="setptzpreset";
response="200";
SET: http://192.168.2.168/param.cgi?cmd=setptzpreset&act=del&index=8&user=admin&pwd=instar

cmd="setptzpreset";
response="200";

param.cgi?cmd=getptzattr

Get Park Position Parameter

  • selfdet: Activate PTZ self-calibration (Required for Preset Postions and PTZ Tour) [0,1]
  • movehome: Activate PTZ home position (go to preset position after reboot) [0,1]
  • home: Set home position [1-8]
  • alarmmask: Surpress motion detection during pan&tilt an zoom [0,1]
  • gotoalarmpos: Activate alarm position (go to preset position during alarm) [0,1]
  • alarmpos: Set alarm position [1-8]
  • speed: Speed of the movement [0-10]

Example

GET: http://admin:instar@192.168.2.168/param.cgi?cmd=getptzattr

cmd="getptzattr";
selfdet="1";
movehome="1";
home="2";
alarmmask="1";
gotoalarmpos="0";
alarmpos="5";
speed="9";
response="200";
GET: http://192.168.2.168/param.cgi?cmd=getptzattr&user=admin&pwd=instar

cmd="getptzattr";
selfdet="1";
movehome="1";
home="2";
alarmmask="1";
gotoalarmpos="0";
alarmpos="5";
speed="9";
response="200";
GET: http://admin:instar@192.168.2.168/param.cgi?cmd=setptzattr&movehome=1&home=8

cmd="getptzattr";
response="200";

param.cgi?cmd=getptztimerpreset

Get Park Position Parameter

  • tp_enable: Activate PTZ park position (go to preset position after interval) [0,1]
  • tp_index: Set park position [1-8]
  • tp_interval: Set park interval in seconds [1-120]

Example

GET: http://admin:instar@192.168.2.168/param.cgi?cmd=getptztimerpreset

cmd="getptztimerpreset";
tp_enable="0";
tp_index="7";
tp_interval="50";
response="200";
GET: http://192.168.2.168/param.cgi?cmd=getptztimerpreset&user=admin&pwd=instar

cmd="getptztimerpreset";
tp_enable="0";
tp_index="7";
tp_interval="50";
response="200";
GET: http://admin:instar@192.168.2.168/param.cgi?cmd=setptztimerpreset&tp_enable=1&tp_index=8

cmd="setptztimerpreset";
response="200";