Toshiba Toshiba Security Camera User Manual


 
TOSHIBA Network Camera - IK-WB15A - SDK (Ver 1.00.SC)
©TOSHIBA Corp.
18
1.3 Alarm Settings
wbsetcamalarm.cgi
1.3.1 Syntax
1) http://<camip>/api/wbsetcamalarm.cgi?type=Default
2) http://<camip>/api/wbsetcamalarm.cgi?type=AlarmType[&Mode=<value>][&InputPolarity=<value>]
3) http://<camip>/api/wbsetcamalarm.cgi?type=MotionDetection[&Mode=<value>]
4) http://<camip>/api/wbsetcamalarm.cgi?type=HoldingOutTime[&Time=<value>]
1.3.2 Input
Item Type Entry name Entry value Std.val Unit
Reset to Default type=Default - - -
Alarm functions Mode 1:OFF 2:Alarm In 3:Ext. Control In 1
Input type
type=AlarmType
InputPolarity 1:Normal Opened 2:Normal Closed 1
Motion detection Mode 1:OFF 2:ON 1
Motion sensitivity
type=MotionDetection
Sensitivity 1:HIGH 2:MIDDLE 3:LOW 1
Output hold time type=HoldingOutTime Time 1/5/10/15/30/60 5 second
Log output control of cgi common to all types OpeLog No/Yes [default: Yes] (omissible) -
1.3.3 Output
Code Status Code Status Code Status
20 OK 32 InvalidValue 92 CriticalErro
r
30 InvalidType 33 InvalidOperand
31 InvalidEntr
y
34 NoEntryData
1.3.4 Example
1) http://10.1.0.1/api/wbsetcamalarm.cgi?type=Default
2) http://10.1.0.1/api/wbsetcamalarm.cgi?type=AlarmType&Mode=2&InputPolarity=1
3) http://10.1.0.1/api/wbsetcamalarm.cgi?type=MotionDetection&Mode=2
4) http://10.1.0.1/api/wbsetcamalarm.cgi?type=HoldingOutTime&Time=10
1.3.5 Notes
1) If only type=<value> is entered and then <entry>=<value> is not entered, no setting is performed. (type=Default is an exception.)
2) Multiple type=<value> cannot be enumerated simultaneously. This API must be started for each type.
3) For only entered item, setting is performed. For the other items, their existing values are held.
4) When OpeLog=No is entered, a log related to API start/end is not output. When it is omitted, it is regarded as OpeLog=Yes.