This is what I get from api/monitors/2.json. The Monitor_Status only shows "Connected", not one of Idle, Alarm, Alert. Also, I thought I read that Monitor_Status is not available in earlier versions of ZM and I was hoping to support those, although its not a requirement.
Code: Select all
{
"monitor": {
"Monitor": {
"Id": "2",
"Name": "PTZ",
"Notes": null,
"ServerId": "0",
"StorageId": "2",
"Type": "Ffmpeg",
"Function": "Modect",
"Enabled": "1",
"LinkedMonitors": "",
"Triggers": "",
"Device": "\/dev\/video0",
"Channel": "0",
"Format": "255",
"V4LMultiBuffer": null,
"V4LCapturesPerFrame": "1",
"Protocol": "rtsp",
"Method": "rtpRtsp",
"Host": "user:password@ip-camera2",
"Port": "554",
"SubPath": "",
"Path": "rtsp:\/\/user:password@ip-camera2\/live",
"Options": null,
"User": null,
"Pass": null,
"Width": "1920",
"Height": "1080",
"Colours": "4",
"Palette": "0",
"Orientation": "ROTATE_0",
"Deinterlacing": "0",
"DecoderHWAccelName": null,
"DecoderHWAccelDevice": null,
"SaveJPEGs": "3",
"VideoWriter": "1",
"OutputCodec": null,
"OutputContainer": null,
"EncoderParameters": "# Lines beginning with # are a comment \r\n# For changing quality, use the crf option\r\n# 1 is best, 51 is worst quality\r\n#crf=23",
"RecordAudio": "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": "1",
"ImageBufferCount": "30",
"WarmupCount": "2",
"PreEventCount": "15",
"PostEventCount": "15",
"StreamReplayBuffer": "0",
"AlarmFrameCount": "2",
"SectionLength": "600",
"MinSectionLength": "10",
"FrameSkip": "0",
"MotionFrameSkip": "0",
"AnalysisFPSLimit": "5.00",
"AnalysisUpdateDelay": "0",
"MaxFPS": "30.000",
"AlarmMaxFPS": "30.00",
"FPSReportInterval": "100",
"RefBlendPerc": "6",
"AlarmRefBlendPerc": "6",
"Controllable": "0",
"ControlId": null,
"ControlDevice": null,
"ControlAddress": null,
"AutoStopTimeout": null,
"TrackMotion": "0",
"TrackDelay": null,
"ReturnLocation": "-1",
"ReturnDelay": null,
"DefaultRate": "100",
"DefaultScale": "100",
"DefaultCodec": "auto",
"SignalCheckPoints": "10",
"SignalCheckColour": "#0000c0",
"WebColour": "red",
"Exif": false,
"Sequence": "2",
"TotalEvents": "37",
"TotalEventDiskSpace": "434525663",
"HourEvents": "0",
"HourEventDiskSpace": "0",
"DayEvents": "1",
"DayEventDiskSpace": "9388570",
"WeekEvents": "5",
"WeekEventDiskSpace": "50392474",
"MonthEvents": "15",
"MonthEventDiskSpace": "187283227",
"ArchivedEvents": "0",
"ArchivedEventDiskSpace": null,
"ZoneCount": "1",
"Refresh": null
},
"Monitor_Status": {
"MonitorId": "2",
"Status": "Connected",
"CaptureFPS": "14.29",
"AnalysisFPS": "5.26",
"CaptureBandwidth": "154519"
}
}
}