[TOC]
简要描述
请求URL
http://xgkj.hljnyxx.com/dongnongBackend/index.php//Home/Station/getRealTimeData
请求方式
参数
参数名 |
必选 |
说明 |
greenhouseId |
是 |
温室 ID |
terminalId |
是 |
采集器 ID |
返回示例
{
"func": [
{
"device_id": "528140",
"device_name": "海拔241"
},
{
"device_id": "528131",
"device_name": "土壤温度01"
}
],
"data": {
"528140": {
"value": 133.3,
"unit": "m"
},
"528131": {
"value": 10,
"unit": "℃"
}
},
"func_select": [
"海拔",
"土壤温度",
"土壤水分",
],
"create_time": "2023-03-22 09:00:00"
}
返回参数说明
参数名 |
说明 |
func |
各类型传感器的信息集合 |
+device_id |
传感器 ID ,用于显示对应数据 |
+device_name |
传感器名称 |
data |
各类型传感器的数据, 以传感器 ID 为键 |
+value |
数值 |
+unit |
单位 |
func_select |
下拉框里的值,表格内容依据此值进行筛选显示 |
create_time |
数据上传时间 |
备注