Das Alarm Menü :: Alarm Bereiche


param.cgi?cmd=getmdattr

Set Alarm Areas Parameter

  • enable[1, 2, 3, 4]: Dis/Enable Alarm Detection Area 1 - 4: [1-4]
  • x[1, 2, 3, 4]: X-Axis Offset of Alarm Area Origin [0, FRAME_MAX_SIZE_W - 101]
  • y[1, 2, 3, 4]: Y-Axis Offset of Alarm Area Origin [0, FRAME_MAX_SIZE_H - 101]
  • w[1, 2, 3, 4]: Alarm Area Width [10 - (100, FRAME_MAX_SIZE_W)] Pixel
  • h[1, 2, 3, 4]: Alarm Area Height [100, FRAME_MAX_SIZE_H] Pixel
  • s[1, 2, 3, 4]: Detection Sensitivity [1-100]
  • rect[1, 2, 3, 4]: Use rectangular coordinates x,y,w,h to draw detection areas or polygon coordinates polyX, polyY [0,1]
  • polyX[1, 2, 3, 4]: Set rect to 0 to use these polygon x-coordinates to draw the detection areas.
  • polyY[1, 2, 3, 4]: Set rect to 0 to use these polygon y-coordinates to draw the detection areas.

max width and max height depend on video resolution

Example

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

cmd="getmdattr";
enable[1]="1";
rect[1]="1";
s[1]="80";
x[1]="0";
y[1]="0";
w[1]="1280";
h[1]="720";
polyX[1]="0,10,10,0";
polyY[1]="0,0,10,10";
enable[2]="1";
rect[2]="1";
s[2]="80";
x[2]="1280";
y[2]="0";
w[2]="1280";
h[2]="720";
polyX[2]="0,10,10,0";
polyY[2]="0,0,10,10";
enable[3]="1";
rect[3]="1";
s[3]="80";
x[3]="0";
y[3]="720";
w[3]="1280";
h[3]="720";
polyX[3]="0,10,10,0";
polyY[3]="0,0,10,10";
enable[4]="1";
rect[4]="1";
s[4]="80";
x[4]="1280";
y[4]="720";
w[4]="1280";
h[4]="720";
polyX[4]="0,10,10,0";
polyY[4]="0,0,10,10";
response="200";
GET: http://admin:instar@192.168.2.168/param.cgi?cmd=getmdattr&area=1

cmd="getmdattr";
enable="1";
rect="1";
s="80";
x="0";
y="0";
w="1280";
h="720";
polyX="0,10,10,0";
polyY="0,0,10,10";
response="200";
SET: http://admin:instar@192.168.2.168/param.cgi?cmd=setmdattr&area=1&enable=0&rect=1&s=50&x=0&y=0&w=1920&h=1080&area=2&enable=0&rect=1&s=50&x=1680&y=0&w=240&h=240&area=3&enable=0&rect=1&s=50&x=0&y=840&w=240&h=240&area=4&enable=0&rect=1&s=50&x=1680&y=840&w=240&h=240

cmd="setmdattr";
response="200";
SET: http://admin:instar@192.168.2.168/param.cgi?cmd=setmdattr&area=1&enable=1&s=50&rect=0&polyX=0,10,100,0&polyY=0,0,10,100

cmd="setmdattr";
response="200";

param.cgi?cmd=getmdtime

Enable timed Alarm Areas

Enable detection area 1&2 during the day and 3&4 during the night:

  • ta_enable: Enable alarm area shedule [0,1]
  • ta_day: Enables Area 1 & 2 at time X [0 - 86399] seconds
  • ta_night: Enables Area 3 & 4 at time X [0 - 86399] seconds

The sum of those two times has to be 24h [86400s] spanning the entire day.

Example

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

cmd="getmdtime";
ta_enable="1";
ta_day="42026";
ta_night="19168";
response="200";
SET: http://admin:instar@192.168.2.168/param.cgi?cmd=setmdtime&ta_enable=1

cmd="setmdtime";
response="200";