微振物联网平台(对外)
  1. 报警日志
微振物联网平台(对外)
  • 授权相关
    • 通过accessKey和accessKeySecret获取Authorization
      POST
  • 系统:字典详情管理
    • 查询字典详情
      GET
    • 查询多个字典详情
      GET
  • 设备相关
    • 领航盾,未来星,振动小卫士
      • 加工数据
        • 根据设备ID查询设备振动数据
    • 通用
      • 设备信息
        • 根据ID查询面板配置
        • 查询主机信息
        • 根据设备Mac查询主机信息
        • 查询显示配置详情
      • 首页
        • 后台首页
      • 报警日志
        • 根据机床id获取报警日志详情
          GET
        • 根据机床id获取报警日志分页
          GET
        • 根据报警日志logId获取报警视频列表
          POST
      • 设备状态
        • 查询主机工作状态(区间)
        • 查询主机工作状态
      • 设备使用率相关
        • 实时数据
          • 设备指定时间当天每半小时使用率
          • 根据设备ID查询设备实时稼动率信息
          • 根据设备名称查询最新稼动率数据
          • 根据主机ID查询主机实时数据
          • 根据机床ID或Mac查询设备指定日期历史数据
        • 历史统计数据
          • 查询主机日周月报信息按部门分组
          • 查询主机月报信息按部门分组
          • 查询主机日周月报信息按设备分组
          • 查询操机员月报信息
          • 查询主机月报信息
          • 日报查询主机信息
          • 查询主机每天每班历史稼动率
        • 快照
          • 根据ID查询快照通知详情
    • 互联测控
      • 加工数据
        • 查询指定日期班次程序号使用情况
        • 根据设备Mac获取sensor列表
        • 根据机床ID或设备Mac查询设备振动数据
        • 根据设备列表查询探测器索引列表
        • 查询探测器索引设置列表
      • 主机数据
        • 获取主机刀具或场景信息
    • 数据大屏
      • 查询大屏全局配置
      • 查询主机日周月报信息大屏按部门分组
      • 根据部门ID获取稼动率看板数据(动态看板)
      • 根据设备ID查询主机多天稼动率
      • 根据设备Mac查询设备使用率最新历史信息
      • 根据设备Mac查询设备使用率历史记录
  1. 报警日志

根据机床id获取报警日志分页

GET
/api/wzDeviceLogData
小程序设备相关接口

请求参数

Query 参数
machineId
integer 
机床ID
可选
page
integer 
页码
可选
size
integer 
页容量
可选
sort
string 
排序规则
可选

示例代码

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request GET '/api/wzDeviceLogData?machineId=&page&size&sort'

返回响应

🟢200ok
application/json
Body
content
array [object {41}] 
必需
autoRatioState
integer 
自适应加工状态
必需
complexChannelNum
integer 
复合通道
必需
currentSchedule
integer 
当前班次
必需
dataTime
integer 
报警时间
必需
detectorHigh
integer 
高通
必需
detectorLow
integer 
低通
必需
detectorOffset
integer 
G00补偿
必需
detectorState
integer 
继电器输出配置
必需
detectorType
integer 
探测器类型
必需
detectorWarn
integer 
探测器报警界限
必需
deviceName
string 
设备名称
必需
g01MultiWarnAdd
integer 
G01多次报警补偿
必需
id
integer 
自增id
必需
isInitiativePull
boolean 
是否允许主动拉取
必需
isStop
boolean 
是否停机
必需
isUnusual
boolean 
是否异常0正常1异常
必需
isVideoExists
boolean 
是否存在报警视频
必需
isVideoValid
boolean 
是否有效报警视频
必需
knifeDia
integer 
刀具直径
必需
knifeLen
integer 
刀具长度
必需
knifeNum
integer 
刀具ID
必需
knifeR
integer 
刀具R角
必需
knifeRemark
string 
刀具备注
必需
knifeType
integer 
刀具类型
必需
logId
string 
日志ID,唯一索引
必需
mark
string 
备注
必需
material
integer 
加工材料
必需
maxChannelNum
integer 
最大值通道
必需
netTime
integer 
网络时间
必需
newestLogAddr
integer 
最新日志位置
必需
pushKnifeTime
integer 
抬刀时间
必需
realValue
integer 
报警实际值
必需
sceneChangeDelay
integer 
场景切换延时
必需
sceneControl
integer 
减倍率4b_加倍率3b_场景自学习1b
必需
sceneLearnTime
integer 
场景自学时长
必需
sceneName
string 
场景名称
必需
sceneNum
integer 
场景号
必需
specialSceneNum
integer 
特殊场景编号
必需
state
boolean 
状态
必需
workMode
integer 
加工模式
必需
deviceLocation
string 
设备位置
可选
totalElements
integer 
总条数
必需
示例
{
    "content": [
        {
            "autoRatioState": 1,
            "complexChannelNum": 5,
            "currentSchedule": 1,
            "dataTime": 1714822557014,
            "detectorHigh": 0,
            "detectorLow": 0,
            "detectorOffset": 100.0,
            "detectorState": 1,
            "detectorType": 5,
            "detectorWarn": 347.0,
            "deviceName": "aee94c7cbc3b",
            "g01MultiWarnAdd": 100,
            "id": 3143976,
            "isInitiativePull": false,
            "isStop": true,
            "isUnusual": true,
            "isVideoExists": true,
            "isVideoValid": true,
            "knifeDia": 0.0,
            "knifeLen": 0.0,
            "knifeNum": 21,
            "knifeR": 0.0,
            "knifeRemark": "T21",
            "knifeType": 2,
            "logId": "4831472271989987837",
            "mark": "磨损",
            "material": 7,
            "maxChannelNum": 5,
            "netTime": 1714822557000,
            "newestLogAddr": 0,
            "pushKnifeTime": 0,
            "realValue": 348.0,
            "sceneChangeDelay": 0,
            "sceneControl": 0,
            "sceneLearnTime": 0,
            "sceneName": "T21",
            "sceneNum": 1,
            "specialSceneNum": 0,
            "state": true,
            "workMode": 6
        },
        {
            "autoRatioState": 1,
            "complexChannelNum": 3,
            "currentSchedule": 1,
            "dataTime": 1714808144671,
            "detectorHigh": 0,
            "detectorLow": 0,
            "detectorOffset": 100.0,
            "detectorState": 1,
            "detectorType": 9,
            "detectorWarn": 4161.0,
            "deviceName": "aee94c7cbc3b",
            "g01MultiWarnAdd": 100,
            "id": 3143753,
            "isInitiativePull": false,
            "isStop": true,
            "isUnusual": true,
            "isVideoExists": true,
            "isVideoValid": true,
            "knifeDia": 0.0,
            "knifeLen": 0.0,
            "knifeNum": 21,
            "knifeR": 0.0,
            "knifeRemark": "T21",
            "knifeType": 2,
            "logId": "491967529468110637",
            "mark": "刀粒崩",
            "material": 7,
            "maxChannelNum": 3,
            "netTime": 1714808144000,
            "newestLogAddr": 0,
            "pushKnifeTime": 0,
            "realValue": 4614.0,
            "sceneChangeDelay": 0,
            "sceneControl": 0,
            "sceneLearnTime": 0,
            "sceneName": "T21",
            "sceneNum": 1,
            "specialSceneNum": 0,
            "state": true,
            "workMode": 6
        },
        {
            "autoRatioState": 1,
            "complexChannelNum": 4,
            "currentSchedule": 1,
            "dataTime": 1714723510993,
            "detectorHigh": 90,
            "detectorLow": 10,
            "detectorOffset": 100.0,
            "detectorState": 1,
            "detectorType": 6,
            "detectorWarn": 10050.0,
            "deviceName": "aee94c7cbc3b",
            "g01MultiWarnAdd": 100,
            "id": 3143277,
            "isInitiativePull": false,
            "isStop": true,
            "isUnusual": true,
            "isVideoExists": true,
            "isVideoValid": true,
            "knifeDia": 0.0,
            "knifeLen": 0.0,
            "knifeNum": 1,
            "knifeR": 0.0,
            "knifeRemark": "T1",
            "knifeType": 1,
            "logId": "8232893099339420204",
            "mark": "更换刀粒",
            "material": 6,
            "maxChannelNum": 4,
            "netTime": 1714723511000,
            "newestLogAddr": 0,
            "pushKnifeTime": 0,
            "realValue": 10219.0,
            "sceneChangeDelay": 0,
            "sceneControl": 0,
            "sceneLearnTime": 0,
            "sceneName": "T1",
            "sceneNum": 1,
            "specialSceneNum": 0,
            "state": true,
            "workMode": 5
        },
        {
            "autoRatioState": 1,
            "complexChannelNum": 4,
            "currentSchedule": 1,
            "dataTime": 1714262762103,
            "detectorHigh": 90,
            "detectorLow": 10,
            "detectorOffset": 100.0,
            "detectorState": 1,
            "detectorType": 6,
            "detectorWarn": 10050.0,
            "deviceName": "aee94c7cbc3b",
            "g01MultiWarnAdd": 100,
            "id": 3141750,
            "isInitiativePull": false,
            "isStop": true,
            "isUnusual": true,
            "isVideoExists": true,
            "isVideoValid": true,
            "knifeDia": 0.0,
            "knifeLen": 0.0,
            "knifeNum": 1,
            "knifeR": 0.0,
            "knifeRemark": "T1",
            "knifeType": 1,
            "logId": "8029637746621244910",
            "mark": "有铁块",
            "material": 6,
            "maxChannelNum": 4,
            "netTime": 1714262762000,
            "newestLogAddr": 0,
            "pushKnifeTime": 0,
            "realValue": 10076.0,
            "sceneChangeDelay": 0,
            "sceneControl": 0,
            "sceneLearnTime": 0,
            "sceneName": "T1",
            "sceneNum": 1,
            "specialSceneNum": 0,
            "state": true,
            "workMode": 5
        },
        {
            "autoRatioState": 1,
            "complexChannelNum": 4,
            "currentSchedule": 1,
            "dataTime": 1714262720223,
            "detectorHigh": 90,
            "detectorLow": 10,
            "detectorOffset": 100.0,
            "detectorState": 1,
            "detectorType": 6,
            "detectorWarn": 10050.0,
            "deviceName": "aee94c7cbc3b",
            "g01MultiWarnAdd": 100,
            "id": 3141747,
            "isInitiativePull": false,
            "isStop": true,
            "isUnusual": true,
            "isVideoExists": true,
            "isVideoValid": true,
            "knifeDia": 0.0,
            "knifeLen": 0.0,
            "knifeNum": 1,
            "knifeR": 0.0,
            "knifeRemark": "T1",
            "knifeType": 1,
            "logId": "5683142726957391310",
            "mark": "异常",
            "material": 6,
            "maxChannelNum": 4,
            "netTime": 1714262720000,
            "newestLogAddr": 0,
            "pushKnifeTime": 0,
            "realValue": 10133.0,
            "sceneChangeDelay": 0,
            "sceneControl": 0,
            "sceneLearnTime": 0,
            "sceneName": "T1",
            "sceneNum": 1,
            "specialSceneNum": 0,
            "state": true,
            "workMode": 5
        },
        {
            "autoRatioState": 1,
            "complexChannelNum": 2,
            "currentSchedule": 2,
            "dataTime": 1714147949478,
            "detectorHigh": 0,
            "detectorLow": 0,
            "detectorOffset": 100.0,
            "detectorState": 1,
            "detectorType": 8,
            "detectorWarn": 5566.0,
            "deviceName": "aee94c7cbc3b",
            "g01MultiWarnAdd": 100,
            "id": 3141190,
            "isInitiativePull": false,
            "isStop": true,
            "isUnusual": true,
            "isVideoExists": true,
            "isVideoValid": true,
            "knifeDia": 0.0,
            "knifeLen": 0.0,
            "knifeNum": 21,
            "knifeR": 0.0,
            "knifeRemark": "T21",
            "knifeType": 2,
            "logId": "8243629765431701806",
            "mark": "刀粒异常",
            "material": 7,
            "maxChannelNum": 2,
            "netTime": 1714147949000,
            "newestLogAddr": 0,
            "pushKnifeTime": 0,
            "realValue": 5664.0,
            "sceneChangeDelay": 0,
            "sceneControl": 0,
            "sceneLearnTime": 0,
            "sceneName": "T21",
            "sceneNum": 1,
            "specialSceneNum": 0,
            "state": true,
            "workMode": 6
        },
        {
            "autoRatioState": 1,
            "complexChannelNum": 5,
            "currentSchedule": 1,
            "dataTime": 1714122459249,
            "detectorHigh": 0,
            "detectorLow": 0,
            "detectorOffset": 100.0,
            "detectorState": 1,
            "detectorType": 5,
            "detectorWarn": 182.0,
            "deviceName": "aee94c7cbc3b",
            "g01MultiWarnAdd": 100,
            "id": 3141119,
            "isInitiativePull": false,
            "isStop": true,
            "isUnusual": true,
            "isVideoExists": true,
            "isVideoValid": true,
            "knifeDia": 0.0,
            "knifeLen": 0.0,
            "knifeNum": 29,
            "knifeR": 0.0,
            "knifeRemark": "T29",
            "knifeType": 0,
            "logId": "3688671681969240333",
            "mark": "刀具磨损",
            "material": 0,
            "maxChannelNum": 5,
            "netTime": 1714122459000,
            "newestLogAddr": 0,
            "pushKnifeTime": 0,
            "realValue": 183.0,
            "sceneChangeDelay": 0,
            "sceneControl": 0,
            "sceneLearnTime": 0,
            "sceneName": "T29",
            "sceneNum": 1,
            "specialSceneNum": 0,
            "state": true,
            "workMode": 0
        },
        {
            "autoRatioState": 1,
            "complexChannelNum": 5,
            "currentSchedule": 1,
            "dataTime": 1712464030255,
            "detectorHigh": 0,
            "detectorLow": 0,
            "detectorOffset": 100.0,
            "detectorState": 217,
            "detectorType": 5,
            "detectorWarn": 425.0,
            "deviceLocation": "0",
            "deviceName": "aee94c7cbc3b",
            "g01MultiWarnAdd": 0,
            "id": 3125938,
            "isInitiativePull": false,
            "isStop": false,
            "isUnusual": true,
            "isVideoExists": true,
            "isVideoValid": true,
            "knifeNum": 1,
            "logId": "473877050117784702",
            "mark": "刀具磨损",
            "maxChannelNum": 5,
            "netTime": 1712464030000,
            "newestLogAddr": 0,
            "pushKnifeTime": 0,
            "realValue": 480.0,
            "sceneChangeDelay": 0,
            "sceneControl": 0,
            "sceneLearnTime": 0,
            "sceneName": "T1",
            "sceneNum": 1,
            "state": true
        }
    ],
    "totalElements": 8
}
🟠401Unauthorized
🟠403Forbidden
🟠404Not Found
上一页
根据机床id获取报警日志详情
下一页
根据报警日志logId获取报警视频列表
Built with