- 接口说明
- 获 取账号信息
- 气象站
- 网关
- lora节点
- 摄像头
- 虫情灯Y型&Z型
- 虫情灯B型
- 土壤墒情
- 孢子仪
- 变频器
- 管式墒情
- 杀虫灯
- 水质监测
- 施肥机
- 性诱测报灯
获取气象站最新采集数据
GET
https://console.sciento.cn/wopen/v1/{tenantId}/device/weather/eui/collection
请求参数
Path 参数
tenantId
string
申请应用的租户id
示例值:
{{tenantId}}
Query 参数
page
string
当前页面
示例值:
1
size
string
页面大小
示例值:
10
eui
string
设备编号
示例值:
866156056359881
Header 参数
Authorization
array[string]
必需
示例值:
["{{token}}"]
Content-Type
string
必需
示例值:
application/x-www-form-urlencoded
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location -g --request GET 'https://console.sciento.cn/wopen/v1//device/weather/eui/collection?page=1&size=10&eui=866156056359881' \
--header 'Authorization: ' \
--header 'Content-Type: application/x-www-form-urlencoded'
返回响应
🟢200成功
application/json
Body
object {0}
示例
{
"type": true,
"code": 200,
"data": {
"totalPages": 3,
"totalElements": 6,
"numberOfElements": 2,
"size": 2,
"number": 1,
"content": [
{
"id": 113, //自增id , 采集id,collectionId
"name": "2#空气湿度",
"newestData": 58.7, // 最新数据
"newestTime": "2021-09-17 21:58:16", //最新上传时间
"node": "2", //采集节点
"circuit": "airH", //采集回路
"sensorType": "airH",
, //传感器类型
"protocol": "simple", //采集协议
"extraNode": null, //lora采集字段
"fileUrl": null,
"typeId": null,
"concentratorId": 70, //网关id
"online": 1, //是否在线
"concentratorName": null, //网关名称
"eui": null, //网关编号
"deviceType": null, //设备类型
"altitude": null, //海拔
"unit": "%", //单位
"description": null //描述
} more...数组形式数组中的值与上面对象类似
],
"empty": false
}
}
修改于 2023-09-28 09:30:26