[TOC=2]
## 數據上報
~~~[api]
post:/index/flat_statistics/save
<<<
數據上報格式
//上報的數據放到body里面格式如下
{
"sn":"748000003170",
"P":0, // 當前時間點前 60 分鐘平均功率
"E":0, // 當前時間點前 60 分鐘的累計電量
"time":1552270489, // 結束時間前一秒時間戳 08:59:59,代表這個時間點前 60 分鐘的數據
"T_RUN":0, // 當前時間點前 60 分鐘累計加熱時長 單位秒
"T_agv":16, // 當前時間點前 60 分鐘平均溫度
"temp_status": 0, // 當前時間前 60 分鐘設定溫度
"address":1, // 溫控器地址
}
<<<
success
{
"code": 0
}
<<<
error
{
"code": -1,
"msg": "設備序列號格式不正確"
}
~~~
## 在線數上報
~~~[api]
post:/index/flat_statistics/device_number
*string:sn=748000003170#設備序列號
*int:total=10#設備總數
*int:online=1#在線設備數
<<<
success
{
"code": 0
}
<<<
error
{
"code": -1,
"msg": "設備序列號格式不正確"
}
~~~
## 設備列表所有電量
~~~[api]
get:/index/flat_statistics/all_battery
*int:device_type=53#設備類型
*string:filter_type=day#篩選類型
*string:filter_date=2020-09-19#篩選時間
<<<
success
{
"code": 0,
"data": {
"list": [
{
"peak_E": 0,
"valley_E": 0,
"flat_E": 0,
"fees": 0,
"time": 0,
"P": 0,
"E": 0,
"detail_time": "2020-09-18 00:00:00",
"label": "00"
},
....
{
"peak_E": 0,
"valley_E": 0,
"flat_E": 0,
"fees": 0,
"time": 23,
"P": 0,
"E": 0,
"detail_time": "2020-09-18 23:00:00",
"label": "23"
}
],
"total_e": 0,
"total_fees": 0
}
}
<<<
error
~~~
## 設備列表數量統計
~~~[api]
post:/index/flat_statistics/get_device_number
*array:sn_list=['748011111111']#設備序列號數組
<<<
success
{
"code": 0,
"data": {
"total": 20,
"online": 12
}
}
<<<
error
~~~
## 單個設備電量
~~~[api]
get:/index/flat_statistics/single_device_electricity_bill
*string:sn=748000003170#設備序列號
*int:address=1#溫控器地址
*string:filter_type=day#篩選類型
*string:filter_date=2020-09-19#篩選時間
<<<
success
{
"code": 0,
"data": {
"list": [
{
"peak_E": 0,
"valley_E": 0,
"flat_E": 0,
"fees": 0,
"time": 0,
"P": 0,
"E": 0,
"detail_time": "2020-09-18 00:00:00",
"label": "00"
},
....
{
"peak_E": 0,
"valley_E": 0,
"flat_E": 0,
"fees": 0,
"time": 23,
"P": 0,
"E": 0,
"detail_time": "2020-09-18 23:00:00",
"label": "23"
}
],
"total_e": 0,
"total_fees": 0
}
}
<<<
error
~~~
## 單個設備溫度
~~~[api]
get:/index/flat_statistics/get_device_temp
*string:sn=748000003170#設備序列號
*int:address=1#溫控器地址
*string:filter_date=2020-09-19#篩選時間
<<<
success
{
"code": 0,
"data": {
"list": [
{
"T_agv": 0,
"temp_status": 0,
"time": 0,
"detail_time": "2020-09-16 00:00:00",
"label": "00"
},
{
"T_agv": 0,
"temp_status": 0,
"time": 23,
"detail_time": "2020-09-16 23:00:00",
"label": "23"
}
]
}
}
<<<
error
~~~
## 單個設備電量
~~~[api]
get:/index/flat_statistics/single_thermostat_battery
*string:sn=748000003170#設備序列號
*int:address=1#溫控器地址
*string:filter_type=day#篩選類型
*string:filter_date=2020-09-19#篩選時間
<<<
success
{
"code": 0,
"data": {
"list": [
{
"P": 0,
"E": 0,
"T_RUN": 0,
"T_agv": 0,
"temp_status": 0,
"time": 1,
"detail_time": "2020-09-01",
"label": "09-01"
},
{
"P": 0,
"E": 0,
"T_RUN": 0,
"T_agv": 0,
"temp_status": 0,
"time": 30,
"detail_time": "2020-09-30",
"label": "09-30"
}
]
}
}
<<<
error
~~~
- 文檔說明
- 更新日志
- Web App 更新日志
- 自用云平臺
- 鑫源云平臺
- 生產管理
- 數據展示平臺
- 云平臺 - v3
- 設備文檔
- KP0C0 - 0 - 0
- KP3C2 - 6 - 1
- K5C2 - 13 - 0
- KP1C2 - 18 - 0
- KP2C4 - 21 - 0
- K5C6 - 25 - 0
- KP5C1 - 27 - 0
- KD5P1 - 29 - 0
- KD5P5 - 46 - 0
- KP1C3 - 47 - 0
- KP1C4 - 48 - 0
- KP1C5 - 49 - 0
- KD4P6 - 53 - 0
- KP3C2 - 65 - 0
- KD5P8 - 72 - 0
- KP2C7 - 75 - 0
- KD5P601 - 76 - 0
- KD5P11 - 79 - 0
- KP01C1510 - 87 - 0
- KP03C0100 - 88 - 0
- KP01C1520 - 90 - 0
- 上報字段
- 數據庫
- 登錄注冊
- 手機注冊
- 郵箱注冊
- 用戶名注冊
- 個人資料
- 管理功能
- 代理相關
- 代理設備
- 授權設備
- 代理功能
- 用戶相關
- 用戶設備
- 用戶分組
- 權限相關
- 設備功能
- 設備分組
- 設備接口
- 數據統計
- 數據統計V2
- 數據統計V3
- 彩云8000 - 數據統計
- 號段申請
- 數據庫
- 登錄注銷
- 申請用戶
- 申請記錄
- 用戶申請
- 文件上傳
- 生產管理
- 登錄注冊
- 提供接口