[TOC=2]
## 分組分類環圖數據
~~~[api]
get:/device_statistics_v3/get_ring_data
*string:filter_type=type#篩選數據類型
<<<
success
參數和三個設備參數解析一致
分組 多了一個 group_id // 分組 id
類型 多了一個 type // 設備類型
<<<
group
{
"code": 0,
"data": {
"list": [
{
"peak_E": 42.1,
"peak_fee": 36.38,
"valley_E": 20.44,
"valley_fee": 3.4,
"flat_E": 363.79,
"flat_fee": 93.48,
"E_fee": 133.26,
"E": 426.33,
"group_id": 6,
"name": "辦公室"
},
]
}
}
<<<
type
{
"code": 0,
"data": {
"list": [
{
"peak_E": 42.09,
"peak_fee": 36.37,
"valley_E": 20.44,
"valley_fee": 3.4,
"flat_E": 363.72,
"flat_fee": 93.47,
"E_fee": 133.24,
"E": 426.25,
"type": 6,
"name": "智能開關"
},
]
}
}
<<<
error
~~~
## 所有設備電量電費
~~~[api]
get:/device_statistics_v3/all_electricity_charge
*string:filter_type=day#篩選類型
*string:filter_date=2019-02-02#篩選時間
<<<
success
數據結構和單個設備一致
<<<
error
~~~
## 設備類型電量、電費
~~~[api]
get:/device_statistics_v3/type_electricity_charge
*int:type=0#設備類型 0 為全部設備類型
*string:filter_type=day#篩選類型
*string:filter_date=2019-02-02#篩選時間
<<<
success
數據結構和單個設備一致
<<<
error
~~~
## 分組設備電量、電費
~~~[api]
get:/device_statistics_v3/group_electricity_charge
*string:filter_type=day#篩選類型
*string:filter_date=2019-02-02#篩選時間
<<<
success
數據結構和單個設備一致
<<<
error
~~~
和單個設備一樣返回數據只是沒有電價
## 單個設備電量、電費
| 參數 | 可選值 |
| --- | --- |
| filter_type | <p>day 天</p><p>month 月</p><p>year 年</p><p>years 年份</p> |
~~~[api]
get:/device_statistics_v3/single_electricity_charge
*string:sn=850300000531#設備序列號
*string:filter_type=day#篩選類型
*string:filter_date=2020-04-04#默認昨天
<<<
success
day 返回 00 ~ 23 點的數據
month 返回對應月份的數據 1 ~ 31 號
year 返回 1 ~ 12 月的數據
years 返回已上報的數據的年份數據
返回字段說明
peak_fee // 峰段電費(元)
peak_E // 峰段電量(kW·h)
valley_fee // 谷段電費(元)
valley_E // 谷段電量(kW·h)
flat_fee // 平段電費(元)
flat_E // 平段電量(kW·h)
unit_price // 電費單價(元)
E_fee // 累計電費(元)
E // 累計電量(kW·h)
time // 時間 天是時刻 月是每天 年是每月 年份是每年
detail_time // 詳細的時間
label // 時間簡寫
<<<
day
{
"code": 0,
"data": {
"list": [
{
"peak_fee": 0,
"peak_E": 0,
"valley_fee": 0,
"valley_E": 0,
"flat_fee": 0,
"flat_E": 0,
"unit_price": 1,
"E_fee": 0,
"E": 0,
"time": 0,
"detail_time": "2019-11-26 00:00:00",
"label": "00"
},
{
"peak_fee": 0,
"peak_E": 0,
"valley_fee": 0,
"valley_E": 0,
"flat_fee": 0,
"flat_E": 0,
"unit_price": 1,
"E_fee": 0,
"E": 0,
"time": 23,
"detail_time": "2019-11-26 23:00:00",
"label": "23"
}
]
}
}
<<<
month
{
"code": 0,
"data": {
"list": [
{
"peak_fee": 0,
"peak_E": 0,
"valley_fee": 0,
"valley_E": 0,
"flat_fee": 0,
"flat_E": 0,
"unit_price": 0,
"E_fee": 0,
"E": 0,
"time": 1,
"detail_time": "2019-11-01",
"label": "11-01"
},
{
"peak_fee": 0,
"peak_E": 0,
"valley_fee": 0.01,
"valley_E": 0.07,
"flat_fee": 0,
"flat_E": 0,
"unit_price": 0,
"E_fee": 0.01,
"E": 0.07,
"time": 29,
"detail_time": "2019-11-29",
"label": "11-29"
}
]
}
}
<<<
year
{
"code": 0,
"data": {
"list": [
{
"peak_fee": 0,
"peak_E": 0,
"valley_fee": 0,
"valley_E": 0,
"flat_fee": 0,
"flat_E": 0,
"unit_price": 0,
"E_fee": 0,
"E": 0,
"time": 1,
"detail_time": "2019-01",
"label": "19-01"
},
{
"peak_fee": 0.01,
"peak_E": 0.01,
"valley_fee": 0.08,
"valley_E": 0.53,
"flat_fee": 0.06,
"flat_E": 0.2,
"unit_price": 0,
"E_fee": 0.15,
"E": 0.74,
"time": 12,
"detail_time": "2019-12",
"label": "19-12"
}
]
}
}
<<<
years
{
"code": 0,
"data": {
"list": [
{
"peak_fee": 0.01,
"peak_E": 0.01,
"valley_fee": 0.14,
"valley_E": 0.9,
"flat_fee": 0.09,
"flat_E": 0.35,
"unit_price": 0,
"E_fee": 0.24,
"E": 1.26,
"time": "2019",
"detail_time": "2019",
"label": "2019"
},
{
"peak_fee": 0,
"peak_E": 0,
"valley_fee": 0.19,
"valley_E": 1.16,
"flat_fee": 0.22,
"flat_E": 0.68,
"unit_price": 0,
"E_fee": 0.41,
"E": 1.84,
"time": "2020",
"detail_time": "2020",
"label": "2020"
}
]
}
}
<<<
error
{
"code": -1,
"msg": "篩選類型不能為空"
}
~~~
- 文檔說明
- 更新日志
- 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 - 數據統計
- 號段申請
- 數據庫
- 登錄注銷
- 申請用戶
- 申請記錄
- 用戶申請
- 文件上傳
- 生產管理
- 登錄注冊
- 提供接口