Skip to content

猫眼设置

设置猫眼工作模式

  1. 请求链接: /lockSetting/updateCatEyeConfig

  2. 请求方式: POST

  3. 参数说明:

名称类型是否必需示例描述
lockIdintY500锁ID
catEyeConfigarrayY[]看下方参数

catEyeConfig 格式说明:

  • catEyeMode: 猫眼模式,看常量表:猫眼工作模式
  • catEyeModeConfig: 自定义模式下配置(当 catEyeMode 为自定义模式时启用)
    • recordMode: 录像时段 0全天 1自定义时间
    • recordStartTime: 自定义时间开始(自定义时间需要填)
    • recordEndTime: 自定义时间结束(自定义时间需要填)
    • recordTime: 有人出现时录像 0:不录像 1:立即录像 5/10/15/30/60秒之后录像(自定义模式才启用)
    • detectionDistance: 人体侦测距离 0:0.8米 1:1.5米 2:3.0米(自定义模式才启用)
    • realTimeMode: 实时画面 0发生事件时查看 1实时查看
json
{
  "catEyeConfig": [
    {
      "catEyeMode": 3,
      "catEyeModeConfig": {
        "recordMode": 1,
        "recordStartTime": 480,
        "recordEndTime": 1080,
        "recordTime": 10,
        "detectionDistance": 0.8,
        "realTimeMode": 0
      }
    }
  ]
}
  1. 返回参数及示例:
参数类型描述
statusInt状态码
statusTextString提示信息
contentString返回数据
errorCodeInt错误码
descriptionString描述
errorMsgString错误信息
json
{
  "errorCode": 0,
  "description": "表示成功或是。",
  "errorMsg": "success or means yes"
}

设置自动亮屏

  1. 请求链接: /lockSetting/updateCatEyeConfig

  2. 请求方式: POST

  3. 参数说明:

名称类型是否必需示例描述
lockIdintY500锁ID
autoLightScreenintY1开关0/1
  1. 返回参数及示例:
参数类型描述
statusInt状态码
statusTextString提示信息
contentString返回数据
errorCodeInt错误码
descriptionString描述
errorMsgString错误信息
json
{
  "errorCode": 0,
  "description": "表示成功或是。",
  "errorMsg": "success or means yes"
}

设置亮屏持续时间

  1. 请求链接: /lockSetting/updateCatEyeConfig

  2. 请求方式: POST

  3. 参数说明:

名称类型是否必需示例描述
lockIdintY500锁ID
autoLightScreenTimeintY1持续时间:1~60秒
  1. 返回参数及示例:
参数类型描述
statusInt状态码
statusTextString提示信息
contentString返回数据
errorCodeInt错误码
descriptionString描述
errorMsgString错误信息
json
{
  "errorCode": 0,
  "description": "表示成功或是。",
  "errorMsg": "success or means yes"
}

设置逗留警告

  1. 请求链接: /lockSetting/updateCatEyeConfig

  2. 请求方式: POST

  3. 参数说明:

名称类型是否必需示例描述
lockIdintY500锁ID
stayWarnintY1开关0/1
  1. 返回参数及示例:
参数类型描述
statusInt状态码
statusTextString提示信息
contentString返回数据
errorCodeInt错误码
descriptionString描述
errorMsgString错误信息
json
{
  "errorCode": 0,
  "description": "表示成功或是。",
  "errorMsg": "success or means yes"
}

设置异常警告

  1. 请求链接: /lockSetting/updateCatEyeConfig

  2. 请求方式: POST

  3. 参数说明:

名称类型是否必需示例描述
lockIdintY500锁ID
abnormalWarnintY1开关0/1
  1. 返回参数及示例:
参数类型描述
statusInt状态码
statusTextString提示信息
contentString返回数据
errorCodeInt错误码
descriptionString描述
errorMsgString错误信息
json
{
  "errorCode": 0,
  "description": "表示成功或是。",
  "errorMsg": "success or means yes"
}

鑫泓佳智能硬件通信协议文档