28
5. API for Acquiring/Changing Parameters of VN-E4 _
5.4. Alarm Setting
Example
When acquiring setting of Object 1
Example of Response
Interpretation
Acquire the parameter of the specified object. This object is used by the API for setting FTP. Specify the
number of object(number) between the range of 1 to 8.
Setting JPEG Parameters Added to FTP from VN-E4
Format
Example
Example of Response
Interpretation
Perform setting for the specified object. This object is used by the API for setting FTP. Specify the number of
object(number) between the range of 1 to 8. The maximum value for prerec/postrec is 60. In addition, input
CH and frame size for each object are fixed and cannot be changed.
Acquiring Alarm Action from VN-E4
Format
/api/param?application.event(Number).action
Example
When acquiring action of Alarm No. 1
/api/param?application.event(1).action
Example of Response
application.event(1).action=mailto/[email protected]/none/
Message&200 OK
Acquisition of input CH:
/api/param?application.object(1).source
Acquisition of frame size:
/api/param?application.object(1).framesize
Acquisition of frame rate:
/api/param?application.object(1).framerate
Acquisition of BeforeTrigger:
/api/param?application.object(1).prerec
Acquisition of AfterTrigger:
/api/param?application.object(1).postrec
Acquisition of input CH:
application.object(1).source=video.input(01)&200
OK
Acquisition of frame size:
application.object(1).framesize=vga&200 OK
Acquisition of frame rate:
application.object(1).framerate=10&200 OK
Acquisition of BeforeTrigger:
application.object(1).prerec=2&200 OK
Acquisition of AfterTrigger:
application.object(1).postrec=2&200 OK
Setting of frame rate:
/api/param?application.object(Number).framerate=data
Setting of BeforeTrigger:
/api/param?application.object(Number).prerec=data
Setting of AfterTrigger:
/api/param?application.object(Number).postrec=data
Set frame rate to 5 fps:
/api/param?application.object(1).framerate=5
Set BeforeTrigger to 3
seconds:
/api/param?application.object(1).prerec=3
Set AfterTrigger to 3
seconds:
/api/param?application.object(1).postrec=3
Setting of frame rate:
application.object(1).framerate&200 OK
Setting of BeforeTrigger:
application.object(1).prerec&200 OK
Setting of AfterTrigger:
application.object(1).postrec&200 OK