The Alarm Menu :: Alarm Areas
param.cgi?cmd=getmdattr
Set Alarm Areas Parameter
enable[1, 2, 3, 4, 5, 6, 7, 8]
: Dis/Enable Alarm Detection Area 1 - 8: [1-8]x[1, 2, 3, 4, 5, 6, 7, 8]
: X-Axis Offset of Alarm Area Origin [0, FRAME_MAX_SIZE_W - 101]y[1, 2, 3, 4, 5, 6, 7, 8]
: Y-Axis Offset of Alarm Area Origin [0, FRAME_MAX_SIZE_H - 101]w[1, 2, 3, 4, 5, 6, 7, 8]
: Alarm Area Width [10 - (100, FRAME_MAX_SIZE_W)] Pixelh[1, 2, 3, 4, 5, 6, 7, 8]
: Alarm Area Height [100, FRAME_MAX_SIZE_H] Pixels[1, 2, 3, 4, 5, 6, 7, 8]
: Detection Sensitivity [1-100]name[1, 2, 3, 4, 5, 6, 7, 8]
: A string to name selected area (max. 32 character)rect[1, 2, 3, 4, 5, 6, 7, 8]
: Use rectangular coordinates x,y,w,h to draw detection areas or polygon coordinates polyX, polyY [0,1]polyX[1, 2, 3, 4, 5, 6, 7, 8]
: Setrect
to0
to use these polygon x-coordinates to draw the detection areas.polyY[1, 2, 3, 4, 5, 6, 7, 8]
: Setrect
to0
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]="0";
s[1]="80";
x[1]="0";
y[1]="0";
w[1]="1280";
h[1]="720";
polyX[1]="640,640,1920,1920";
polyY[1]="368,1088,1088,368";
name[1]="RED";
enable[2]="0";
rect[2]="0";
s[2]="80";
x[2]="1280";
y[2]="0";
w[2]="1280";
h[2]="720";
polyX[2]="1280,2560,2560,1280";
polyY[2]="0,0,720,720";
name[2]="";
enable[3]="0";
rect[3]="0";
s[3]="80";
x[3]="0";
y[3]="720";
w[3]="1280";
h[3]="720";
polyX[3]="0,1280,1280,0";
polyY[3]="720,720,1440,1440";
name[3]="";
enable[4]="0";
rect[4]="0";
s[4]="80";
x[4]="1280";
y[4]="720";
w[4]="1280";
h[4]="720";
polyX[4]="1280,2560,2560,1280";
polyY[4]="720,720,1440,1440";
name[4]="";
enable[5]="0";
rect[5]="1";
s[5]="80";
x[5]="0";
y[5]="0";
w[5]="1280";
h[5]="720";
polyX[5]="0,1280,1280,0";
polyY[5]="0,0,720,720";
name[5]="";
enable[6]="0";
rect[6]="1";
s[6]="80";
x[6]="1280";
y[6]="0";
w[6]="1280";
h[6]="720";
polyX[6]="1280,2560,2560,1280";
polyY[6]="0,0,720,720";
name[6]="";
enable[7]="0";
rect[7]="1";
s[7]="80";
x[7]="0";
y[7]="720";
w[7]="1280";
h[7]="720";
polyX[7]="0,1280,1280,0";
polyY[7]="720,720,1440,1440";
name[7]="";
enable[8]="0";
rect[8]="1";
s[8]="80";
x[8]="1280";
y[8]="720";
w[8]="1280";
h[8]="720";
polyX[8]="1280,2560,2560,1280";
polyY[8]="720,720,1440,1440";
name[8]="";
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 different detection areas for day and night:
ta_enable
: Enable alarm area shedule [0,1]ta_day
: Enables day areas at time X [0 - 86399] secondsta_night
: Enables night areas at time X [0 - 86399] secondsta_areas
: List of areas that will be active during the day interval
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="0";
ta_day="28800";
ta_night="64800";
ta_areas="1,2,5,6";
response="200";
SET: http://admin:instar@192.168.2.168/param.cgi?cmd=setmdtime&ta_enable=1
cmd="setmdtime";
response="200";