Code: Select all
$ curl https://user:password@hmcz.duckdns.org/zm/api/host/getVersion.json
{
"version": "1.30.0",
"apiversion": "1.0"
}
$ curl https://user:password@hmcz.duckdns.org/zm/api/monitors.json
{
"monitors": [
{
"Monitor": {
"Id": "1",
"Name": "Kam61",
"ServerId": "0",
"Type": "Ffmpeg",
"Function": "Mocord",
"Enabled": "1",
"LinkedMonitors": "",
"Triggers": "",
"Device": "\/dev\/video0",
"Channel": "0",
"Format": "255",
"V4LMultiBuffer": false,
"V4LCapturesPerFrame": "1",
"Protocol": "",
"Method": "rtpRtsp",
"Host": "",
"Port": "80",
"SubPath": "",
"Path": "rtsp:\/\/...\/videoMain",
"Options": "",
"User": "",
"Pass": "",
"Width": "1280",
"Height": "720",
"Colours": "4",
"Palette": "0",
"Orientation": "0",
"Deinterlacing": "0",
"RTSPDescribe": false,
"Brightness": "-1",
"Contrast": "-1",
"Hue": "-1",
"Colour": "-1",
"EventPrefix": "Event-",
"LabelFormat": "%N - %d\/%m\/%y %H:%M:%S",
"LabelX": "0",
"LabelY": "0",
"LabelSize": "2",
"ImageBufferCount": "50",
"WarmupCount": "25",
"PreEventCount": "25",
"PostEventCount": "25",
"StreamReplayBuffer": "1000",
"AlarmFrameCount": "1",
"SectionLength": "600",
"FrameSkip": "0",
"MotionFrameSkip": "0",
"AnalysisFPS": "15.00",
"AnalysisUpdateDelay": "0",
"MaxFPS": "15.00",
"AlarmMaxFPS": "15.00",
"FPSReportInterval": "1000",
"RefBlendPerc": "6",
"AlarmRefBlendPerc": "6",
"Controllable": "0",
"ControlId": "0",
"ControlDevice": null,
"ControlAddress": null,
"AutoStopTimeout": null,
"TrackMotion": "0",
"TrackDelay": "0",
"ReturnLocation": "-1",
"ReturnDelay": "0",
"DefaultView": "Events",
"DefaultRate": "100",
"DefaultScale": "100",
"SignalCheckColour": "#0000c0",
"WebColour": "red",
"Exif": false,
"Sequence": "1"
}
},
{
"Monitor": {
"Id": "2",
"Name": "Kam62",
"ServerId": "0",
"Type": "Ffmpeg",
"Function": "Mocord",
"Enabled": "1",
"LinkedMonitors": "",
"Triggers": "",
"Device": "\/dev\/video0",
"Channel": "0",
"Format": "255",
"V4LMultiBuffer": false,
"V4LCapturesPerFrame": "1",
"Protocol": "",
"Method": "rtpRtsp",
"Host": "",
"Port": "80",
"SubPath": "",
"Path": "rtsp:\/\/...\/videoMain",
"Options": "",
"User": "",
"Pass": "",
"Width": "1280",
"Height": "720",
"Colours": "4",
"Palette": "0",
"Orientation": "0",
"Deinterlacing": "0",
"RTSPDescribe": false,
"Brightness": "-1",
"Contrast": "-1",
"Hue": "-1",
"Colour": "-1",
"EventPrefix": "Event-",
"LabelFormat": "%N - %d\/%m\/%y %H:%M:%S",
"LabelX": "0",
"LabelY": "0",
"LabelSize": "2",
"ImageBufferCount": "50",
"WarmupCount": "25",
"PreEventCount": "25",
"PostEventCount": "25",
"StreamReplayBuffer": "1000",
"AlarmFrameCount": "1",
"SectionLength": "600",
"FrameSkip": "0",
"MotionFrameSkip": "0",
"AnalysisFPS": "15.00",
"AnalysisUpdateDelay": "0",
"MaxFPS": "15.00",
"AlarmMaxFPS": "15.00",
"FPSReportInterval": "1000",
"RefBlendPerc": "6",
"AlarmRefBlendPerc": "6",
"Controllable": "0",
"ControlId": "0",
"ControlDevice": null,
"ControlAddress": null,
"AutoStopTimeout": null,
"TrackMotion": "0",
"TrackDelay": "0",
"ReturnLocation": "-1",
"ReturnDelay": "0",
"DefaultView": "Events",
"DefaultRate": "100",
"DefaultScale": "100",
"SignalCheckColour": "#0000c0",
"WebColour": "red",
"Exif": false,
"Sequence": "2"
}
"Monitor": {
"Id": "3",
"Name": "Kam63",
"ServerId": "0",
"Type": "Ffmpeg",
"Function": "Mocord",
"Enabled": "1",
"LinkedMonitors": "",
"Triggers": "",
"Device": "\/dev\/video0",
"Channel": "0",
"Format": "255",
"V4LMultiBuffer": false,
"V4LCapturesPerFrame": "1",
"Protocol": "",
"Method": "rtpRtsp",
"Host": "",
"Port": "80",
"SubPath": "",
"Path": "rtsp:\/\/...\/videoMain",
"Options": "",
"User": "",
"Pass": "",
"Width": "1280",
"Height": "720",
"Colours": "4",
"Palette": "0",
"Orientation": "0",
"Deinterlacing": "0",
"RTSPDescribe": false,
"Brightness": "-1",
"Contrast": "-1",
"Hue": "-1",
"Colour": "-1",
"EventPrefix": "Event-",
"LabelFormat": "%N - %d\/%m\/%y %H:%M:%S",
"LabelX": "0",
"LabelY": "0",
"LabelSize": "2",
"ImageBufferCount": "50",
"WarmupCount": "25",
"PreEventCount": "25",
"PostEventCount": "25",
"StreamReplayBuffer": "1000",
"AlarmFrameCount": "1",
"SectionLength": "600",
"FrameSkip": "0",
"MotionFrameSkip": "0",
"AnalysisFPS": "15.00",
"AnalysisUpdateDelay": "0",
"MaxFPS": "15.00",
"AlarmMaxFPS": "15.00",
"FPSReportInterval": "1000",
"RefBlendPerc": "6",
"AlarmRefBlendPerc": "6",
"Controllable": "0",
"ControlId": "0",
"ControlDevice": null,
"ControlAddress": null,
"AutoStopTimeout": null,
"TrackMotion": "0",
"TrackDelay": "0",
"ReturnLocation": "-1",
"ReturnDelay": "0",
"DefaultView": "Events",
"DefaultRate": "100",
"DefaultScale": "100",
"SignalCheckColour": "#0000c0",
"WebColour": "red",
"Exif": false,
"Sequence": "3"
}
},
{
"Monitor": {
"Id": "4",
"Name": "Kam64",
"ServerId": "0",
"Type": "Ffmpeg",
"Function": "Mocord",
"Enabled": "1",
"LinkedMonitors": "",
"Triggers": "",
"Device": "\/dev\/video0",
"Channel": "0",
"Format": "255",
"V4LMultiBuffer": false,
"V4LCapturesPerFrame": "1",
"Protocol": "",
"Method": "rtpRtsp",
"Host": "",
"Port": "80",
"SubPath": "",
"Path": "rtsp:\/\/...\/videoMain",
"Options": "",
"User": "",
"Pass": "",
"Width": "1280",
"Height": "720",
"Colours": "4",
"Palette": "0",
"Orientation": "0",
"Deinterlacing": "0",
"RTSPDescribe": false,
"Brightness": "-1",
"Contrast": "-1",
"Hue": "-1",
"Colour": "-1",
"EventPrefix": "Event-",
"LabelFormat": "%N - %d\/%m\/%y %H:%M:%S",
"LabelX": "0",
"LabelY": "0",
"LabelSize": "2",
"ImageBufferCount": "50",
"WarmupCount": "25",
"PreEventCount": "25",
"PostEventCount": "25",
"StreamReplayBuffer": "1000",
"AlarmFrameCount": "1",
"SectionLength": "600",
"FrameSkip": "0",
"MotionFrameSkip": "0",
"AnalysisFPS": "15.00",
"AnalysisUpdateDelay": "0",
"MaxFPS": "15.00",
"AlarmMaxFPS": "15.00",
"FPSReportInterval": "1000",
"RefBlendPerc": "6",
"AlarmRefBlendPerc": "6",
"Controllable": "0",
"ControlId": "0",
"ControlDevice": null,
"ControlAddress": null,
"AutoStopTimeout": null,
"TrackMotion": "0",
"TrackDelay": "0",
"ReturnLocation": "-1",
"ReturnDelay": "0",
"DefaultView": "Events",
"DefaultRate": "100",
"DefaultScale": "100",
"SignalCheckColour": "#0000c0",
"WebColour": "red",
"Exif": false,
"Sequence": "4"
}
},
{
"Monitor": {
"Id": "5",
"Name": "fdmon",
"ServerId": "0",
"Type": "Remote",
"Function": "Record",
"Enabled": "1",
"LinkedMonitors": "",
"Triggers": "",
"Device": "\/dev\/video0",
"Channel": "0",
"Format": "255",
"V4LMultiBuffer": false,
"V4LCapturesPerFrame": "1",
"Protocol": "http",
"Method": "simple",
"Host": "192.x.x.x",
"Port": "8080",
"SubPath": "",
"Path": "\/?action=stream",
"Options": "",
"User": "",
"Pass": "",
"Width": "1280",
"Height": "768",
"Colours": "3",
"Palette": "0",
"Orientation": "0",
"Deinterlacing": "0",
"RTSPDescribe": false,
"Brightness": "-1",
"Contrast": "-1",
"Hue": "-1",
"Colour": "-1",
"EventPrefix": "Event-",
"LabelFormat": "%N - %d\/%m\/%y %H:%M:%S",
"LabelX": "0",
"LabelY": "0",
"LabelSize": "2",
"ImageBufferCount": "50",
"WarmupCount": "25",
"PreEventCount": "25",
"PostEventCount": "25",
"StreamReplayBuffer": "1000",
"AlarmFrameCount": "1",
"SectionLength": "600",
"FrameSkip": "0",
"MotionFrameSkip": "0",
"AnalysisFPS": "15.00",
"AnalysisUpdateDelay": "0",
"MaxFPS": "15.00",
"AlarmMaxFPS": "15.00",
"FPSReportInterval": "1000",
"RefBlendPerc": "6",
"AlarmRefBlendPerc": "6",
"Controllable": "0",
"ControlId": "0",
"ControlDevice": null,
"ControlAddress": null,
"AutoStopTimeout": null,
"TrackMotion": "0",
"TrackDelay": "0",
"ReturnLocation": "-1",
"ReturnDelay": "0",
"DefaultView": "Events",
"DefaultRate": "100",
"DefaultScale": "100",
"SignalCheckColour": "#0000c0",
"WebColour": "red",
"Exif": false,
"Sequence": "5"
}
},
{
"Monitor": {
"Id": "6",
"Name": "Kam66",
"ServerId": "0",
"Type": "Ffmpeg",
"Function": "Record",
"Enabled": "1",
"LinkedMonitors": "",
"Triggers": "",
"Device": "\/dev\/video0",
"Channel": "0",
"Format": "255",
"V4LMultiBuffer": false,
"V4LCapturesPerFrame": "1",
"Protocol": "",
"Method": "rtpRtsp",
"Host": "",
"Port": "80",
"SubPath": "",
"Path": "rtsp:\/\/...\/videoMain",
"Options": "",
"User": "",
"Pass": "",
"Width": "1280",
"Height": "720",
"Colours": "4",
"Palette": "0",
"Orientation": "180",
"Deinterlacing": "0",
"RTSPDescribe": false,
"Brightness": "-1",
"Contrast": "-1",
"Hue": "-1",
"Colour": "-1",
"EventPrefix": "Event-",
"LabelFormat": "%N - %d\/%m\/%y %H:%M:%S",
"LabelX": "0",
"LabelY": "0",
"LabelSize": "2",
"ImageBufferCount": "50",
"WarmupCount": "25",
"PreEventCount": "25",
"PostEventCount": "25",
"StreamReplayBuffer": "1000",
"AlarmFrameCount": "1",
"SectionLength": "600",
"FrameSkip": "0",
"MotionFrameSkip": "0",
"AnalysisFPS": "7.00",
"AnalysisUpdateDelay": "0",
"MaxFPS": "7.00",
"AlarmMaxFPS": "7.00",
"FPSReportInterval": "1000",
"RefBlendPerc": "6",
"AlarmRefBlendPerc": "6",
"Controllable": "0",
"ControlId": "0",
"ControlDevice": null,
"ControlAddress": null,
"AutoStopTimeout": null,
"TrackMotion": "0",
"TrackDelay": "0",
"ReturnLocation": "-1",
"ReturnDelay": "0",
"DefaultView": "Events",
"DefaultRate": "100",
"DefaultScale": "100",
"SignalCheckColour": "#0000c0",
"WebColour": "red",
"Exif": false,
"Sequence": "6"
}
}
]
}