NAYOTA API
  1. 数据记录类接口
NAYOTA API
  • 产品介绍
  • 应用场景
  • 常见问题
  • 生成token凭证
    • 生成token凭证教程
    • 获取token
      POST
  • 入门实例DEMO
    • 获取温度传感器测量数据
    • 获取空开状态数据
    • 获取摄像头图像数据
    • 获取电表统计数据
  • 设备分组类接口
    • 接口调用实例
    • 根据条件查询通用设备信息
      GET
    • 根据条件查询检测设备信息
      GET
    • 根据条件查询控制设备信息
      GET
    • 通过id查询单个设备信息
      GET
    • 通过id查询单个检测设备信息
      GET
    • 通过id查询单个控制设备信息
      GET
  • 数据记录类接口
    • 接口调用实例
    • 通过id查询检测器检测数据记录
      GET
    • 通过id查询控制器控制数据记录
      GET
    • 根据条件查询消息推送记录
      GET
    • 通过id查询视频录制记录
      GET
  • 能耗统计类接口
    • 接口调用实例
    • 根据条件查询设备层级信息
      GET
    • 根据条件查询分项区间信息
      GET
    • 通过id查询设备层级统计数据
      GET
    • 通过id查询分项区间统计数据
      GET
    • 查询单个层级月度能耗统计
      GET
  • 部门层级类接口
    • 根据条件查询部门层级信息
    • 通过id查询单个部门层级信息
  • 图像监控类接口
    • 接口调用实例
    • 根据条件查询人脸信息
    • 根据条件查询摄像头信息
    • 通过id查询单个摄像头信息
  • 用户组织类接口
    • 根据条件查询用户信息列表
    • 通过id查询单个用户信息
  • 未命名接口
    GET
  1. 数据记录类接口

通过id查询检测器检测数据记录

GET
https://ds.25soft.com/api-v1/check-records
检测数据记录就是检测节点所采集的数据的记录,可以用来监测和分析各种监测值。通过这个接口,我们可以输入一个id来查询对应的检测数据记录,快速获取所需的数据信息。

请求参数

Query 参数
check
string 
可选
检测器id,如:温度传感器id
示例值:
6453169c78de59a899f75640
Header 参数
Authorization
string 
可选
示例值:
Bearer {{token}}

示例代码

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request GET 'https://ds.25soft.com/api-v1/check-records?check=6453169c78de59a899f75640' \
--header 'Authorization: Bearer {{token}}'

返回响应

🟢200成功
application/json
Body
code
number 
是否成功
必需
data
object 
返回数据
必需
rows
array [object {7}] 
当前返回的设备对象列表
可选
示例
{
    "code": 0,
    "data": {
        "rows": [
            {
                "isSimulation": false,
                "_id": "6454812f750fd23cf03fdb05",
                "recordTime": "2023-05-05T04:08:15.288Z",
                "value": 28,
                "valueStr": null,
                "check": {
                    "value": "28",
                    "valueStr": null,
                    "_id": "6453169c78de59a899f75640",
                    "line": false,
                    "boardConfigStr": "{}",
                    "canRead": true,
                    "name": "温度A",
                    "sort": null,
                    "company": "℃",
                    "icon": null,
                    "interval": null,
                    "rosterName": null,
                    "precision": null,
                    "control": "5feaed768c1afe001bca0f3f",
                    "parentName": "Hardware",
                    "parent": "6453169278de59b200f75614",
                    "shortAddress": "tempA",
                    "creator": "5da994550dc418001b95d36f",
                    "createdAt": "2023-05-04T02:21:16.460Z",
                    "updatedAt": "2023-05-05T04:49:05.891Z",
                    "__v": 0,
                    "ai_offlineAt": null,
                    "valueAt": "2023-05-05T04:08:15.288Z"
                },
                "__v": 0
            },
            {
                "isSimulation": false,
                "_id": "64547c7c750fd2539833981f",
                "recordTime": "2023-05-05T03:48:12.661Z",
                "value": 28,
                "valueStr": null,
                "check": {
                    "value": "28",
                    "valueStr": null,
                    "_id": "6453169c78de59a899f75640",
                    "line": false,
                    "boardConfigStr": "{}",
                    "canRead": true,
                    "name": "温度A",
                    "sort": null,
                    "company": "℃",
                    "icon": null,
                    "interval": null,
                    "rosterName": null,
                    "precision": null,
                    "control": "5feaed768c1afe001bca0f3f",
                    "parentName": "Hardware",
                    "parent": "6453169278de59b200f75614",
                    "shortAddress": "tempA",
                    "creator": "5da994550dc418001b95d36f",
                    "createdAt": "2023-05-04T02:21:16.460Z",
                    "updatedAt": "2023-05-05T04:49:05.891Z",
                    "__v": 0,
                    "ai_offlineAt": null,
                    "valueAt": "2023-05-05T04:08:15.288Z"
                },
                "__v": 0
            },
            {
                "isSimulation": false,
                "_id": "64547a23750fd269242d5168",
                "recordTime": "2023-05-05T03:38:11.504Z",
                "value": 28,
                "valueStr": null,
                "check": {
                    "value": "28",
                    "valueStr": null,
                    "_id": "6453169c78de59a899f75640",
                    "line": false,
                    "boardConfigStr": "{}",
                    "canRead": true,
                    "name": "温度A",
                    "sort": null,
                    "company": "℃",
                    "icon": null,
                    "interval": null,
                    "rosterName": null,
                    "precision": null,
                    "control": "5feaed768c1afe001bca0f3f",
                    "parentName": "Hardware",
                    "parent": "6453169278de59b200f75614",
                    "shortAddress": "tempA",
                    "creator": "5da994550dc418001b95d36f",
                    "createdAt": "2023-05-04T02:21:16.460Z",
                    "updatedAt": "2023-05-05T04:49:05.891Z",
                    "__v": 0,
                    "ai_offlineAt": null,
                    "valueAt": "2023-05-05T04:08:15.288Z"
                },
                "__v": 0
            },
            {
                "isSimulation": false,
                "_id": "645477ca750fd2a1c8272d56",
                "recordTime": "2023-05-05T03:28:10.214Z",
                "value": 28,
                "valueStr": null,
                "check": {
                    "value": "28",
                    "valueStr": null,
                    "_id": "6453169c78de59a899f75640",
                    "line": false,
                    "boardConfigStr": "{}",
                    "canRead": true,
                    "name": "温度A",
                    "sort": null,
                    "company": "℃",
                    "icon": null,
                    "interval": null,
                    "rosterName": null,
                    "precision": null,
                    "control": "5feaed768c1afe001bca0f3f",
                    "parentName": "Hardware",
                    "parent": "6453169278de59b200f75614",
                    "shortAddress": "tempA",
                    "creator": "5da994550dc418001b95d36f",
                    "createdAt": "2023-05-04T02:21:16.460Z",
                    "updatedAt": "2023-05-05T04:49:05.891Z",
                    "__v": 0,
                    "ai_offlineAt": null,
                    "valueAt": "2023-05-05T04:08:15.288Z"
                },
                "__v": 0
            },
            {
                "isSimulation": false,
                "_id": "64547571750fd2702b20ed31",
                "recordTime": "2023-05-05T03:18:09.015Z",
                "value": 28,
                "valueStr": null,
                "check": {
                    "value": "28",
                    "valueStr": null,
                    "_id": "6453169c78de59a899f75640",
                    "line": false,
                    "boardConfigStr": "{}",
                    "canRead": true,
                    "name": "温度A",
                    "sort": null,
                    "company": "℃",
                    "icon": null,
                    "interval": null,
                    "rosterName": null,
                    "precision": null,
                    "control": "5feaed768c1afe001bca0f3f",
                    "parentName": "Hardware",
                    "parent": "6453169278de59b200f75614",
                    "shortAddress": "tempA",
                    "creator": "5da994550dc418001b95d36f",
                    "createdAt": "2023-05-04T02:21:16.460Z",
                    "updatedAt": "2023-05-05T04:49:05.891Z",
                    "__v": 0,
                    "ai_offlineAt": null,
                    "valueAt": "2023-05-05T04:08:15.288Z"
                },
                "__v": 0
            },
            {
                "isSimulation": false,
                "_id": "645470be750fd22c3b148f58",
                "recordTime": "2023-05-05T02:58:06.645Z",
                "value": 28,
                "valueStr": null,
                "check": {
                    "value": "28",
                    "valueStr": null,
                    "_id": "6453169c78de59a899f75640",
                    "line": false,
                    "boardConfigStr": "{}",
                    "canRead": true,
                    "name": "温度A",
                    "sort": null,
                    "company": "℃",
                    "icon": null,
                    "interval": null,
                    "rosterName": null,
                    "precision": null,
                    "control": "5feaed768c1afe001bca0f3f",
                    "parentName": "Hardware",
                    "parent": "6453169278de59b200f75614",
                    "shortAddress": "tempA",
                    "creator": "5da994550dc418001b95d36f",
                    "createdAt": "2023-05-04T02:21:16.460Z",
                    "updatedAt": "2023-05-05T04:49:05.891Z",
                    "__v": 0,
                    "ai_offlineAt": null,
                    "valueAt": "2023-05-05T04:08:15.288Z"
                },
                "__v": 0
            },
            {
                "isSimulation": false,
                "_id": "64546e65750fd234ba0e923a",
                "recordTime": "2023-05-05T02:48:05.295Z",
                "value": 28,
                "valueStr": null,
                "check": {
                    "value": "28",
                    "valueStr": null,
                    "_id": "6453169c78de59a899f75640",
                    "line": false,
                    "boardConfigStr": "{}",
                    "canRead": true,
                    "name": "温度A",
                    "sort": null,
                    "company": "℃",
                    "icon": null,
                    "interval": null,
                    "rosterName": null,
                    "precision": null,
                    "control": "5feaed768c1afe001bca0f3f",
                    "parentName": "Hardware",
                    "parent": "6453169278de59b200f75614",
                    "shortAddress": "tempA",
                    "creator": "5da994550dc418001b95d36f",
                    "createdAt": "2023-05-04T02:21:16.460Z",
                    "updatedAt": "2023-05-05T04:49:05.891Z",
                    "__v": 0,
                    "ai_offlineAt": null,
                    "valueAt": "2023-05-05T04:08:15.288Z"
                },
                "__v": 0
            },
            {
                "isSimulation": false,
                "_id": "64546c0c750fd21a77088d8e",
                "recordTime": "2023-05-05T02:38:04.009Z",
                "value": 29,
                "valueStr": null,
                "check": {
                    "value": "28",
                    "valueStr": null,
                    "_id": "6453169c78de59a899f75640",
                    "line": false,
                    "boardConfigStr": "{}",
                    "canRead": true,
                    "name": "温度A",
                    "sort": null,
                    "company": "℃",
                    "icon": null,
                    "interval": null,
                    "rosterName": null,
                    "precision": null,
                    "control": "5feaed768c1afe001bca0f3f",
                    "parentName": "Hardware",
                    "parent": "6453169278de59b200f75614",
                    "shortAddress": "tempA",
                    "creator": "5da994550dc418001b95d36f",
                    "createdAt": "2023-05-04T02:21:16.460Z",
                    "updatedAt": "2023-05-05T04:49:05.891Z",
                    "__v": 0,
                    "ai_offlineAt": null,
                    "valueAt": "2023-05-05T04:08:15.288Z"
                },
                "__v": 0
            },
            {
                "isSimulation": false,
                "_id": "645469b2750fd2e888024692",
                "recordTime": "2023-05-05T02:28:02.828Z",
                "value": 29,
                "valueStr": null,
                "check": {
                    "value": "28",
                    "valueStr": null,
                    "_id": "6453169c78de59a899f75640",
                    "line": false,
                    "boardConfigStr": "{}",
                    "canRead": true,
                    "name": "温度A",
                    "sort": null,
                    "company": "℃",
                    "icon": null,
                    "interval": null,
                    "rosterName": null,
                    "precision": null,
                    "control": "5feaed768c1afe001bca0f3f",
                    "parentName": "Hardware",
                    "parent": "6453169278de59b200f75614",
                    "shortAddress": "tempA",
                    "creator": "5da994550dc418001b95d36f",
                    "createdAt": "2023-05-04T02:21:16.460Z",
                    "updatedAt": "2023-05-05T04:49:05.891Z",
                    "__v": 0,
                    "ai_offlineAt": null,
                    "valueAt": "2023-05-05T04:08:15.288Z"
                },
                "__v": 0
            },
            {
                "isSimulation": false,
                "_id": "64546500750fd26403f62cda",
                "recordTime": "2023-05-05T02:07:59.803Z",
                "value": 29,
                "valueStr": null,
                "check": {
                    "value": "28",
                    "valueStr": null,
                    "_id": "6453169c78de59a899f75640",
                    "line": false,
                    "boardConfigStr": "{}",
                    "canRead": true,
                    "name": "温度A",
                    "sort": null,
                    "company": "℃",
                    "icon": null,
                    "interval": null,
                    "rosterName": null,
                    "precision": null,
                    "control": "5feaed768c1afe001bca0f3f",
                    "parentName": "Hardware",
                    "parent": "6453169278de59b200f75614",
                    "shortAddress": "tempA",
                    "creator": "5da994550dc418001b95d36f",
                    "createdAt": "2023-05-04T02:21:16.460Z",
                    "updatedAt": "2023-05-05T04:49:05.891Z",
                    "__v": 0,
                    "ai_offlineAt": null,
                    "valueAt": "2023-05-05T04:08:15.288Z"
                },
                "__v": 0
            }
        ]
    }
}
修改于 2023-07-26 03:11:41
上一页
接口调用实例
下一页
通过id查询控制器控制数据记录
Built with