[TOC=2]
## 获取所有电费电价
>[danger] 注意
> 筛选类型只能有三个选项 day 天 month 月 year 年
> 筛选类型选择之后对应的时间字符串格式也要对应
> day --- 2019-11-12
> month ---- 2019-11
> year ---- 2019
~~~[api]
get:/device_statistics/electricity_bill
*string:filter_type=day#筛选类型
*string:filter_date=2019-12-12#时间格式字符串,默认昨天
int:device_type=0#设备类型,不按类型区分可以不填
int:group_id=-1#分组序号,不按照分组筛选可以不填
<<<
day
{
"code": 0,
"data": {
"list": [
{
"peak_E": 0,
"valley_E": 0,
"flat_E": 0,
"fees": 0,
"time": 0,
"P": 0,
"E": 0,
"detail_time": "2019-11-14 00:00:00",
"label": "00"
},
***
{
"peak_E": 0,
"valley_E": 0,
"flat_E": 0,
"fees": 0,
"time": 23,
"P": 0,
"E": 0,
"detail_time": "2019-11-14 23:00:00",
"label": "23"
}
]
}
}
<<<
month
{
"code": 0,
"data": {
"list": [
{
"peak_E": 0,
"valley_E": 0,
"flat_E": 0,
"fees": 0,
"time": 1,
"P": 0,
"E": 0,
"detail_time": "2019-11-01",
"label": "11-01"
},
***
{
"peak_E": 0,
"valley_E": 0,
"flat_E": 0,
"fees": 0,
"time": 30,
"P": 0,
"E": 0,
"detail_time": "2019-11-30",
"label": "11-30"
}
]
}
}
<<<
year
{
"code": 0,
"data": {
"list": [
{
"peak_E": 0,
"valley_E": 0,
"flat_E": 0,
"fees": 0,
"time": 1,
"P": 0,
"E": 0,
"detail_time": "2019-01",
"label": "19-01"
},
***
{
"peak_E": 0,
"valley_E": 0,
"flat_E": 0,
"fees": 0,
"time": 12,
"P": 0,
"E": 0,
"detail_time": "2019-12",
"label": "19-12"
}
]
}
}
<<<
error
~~~
## 所有设备电价导出
~~~[api]
get:/device_statistics/all_battery_export
*string:filter_type=day#筛选类型
*string:filter_date=2019-12-12#时间格式字符串,默认昨天
int:device_type=0#设备类型,不按类型区分可以不填
int:group_id=-1#分组序号,不按照分组筛选可以不填
<<<
success
<<<
error
~~~
## 单个设备电价
~~~[api]
get:/device_statistics/single_battery
*string:filter_type=day#筛选类型
*string:filter_date=2019-12-12#时间格式字符串,默认昨天
*string:sn=1111111111#设备序列号
<<<
day
{
"code": 0,
"data": {
"list": [
{
"peak_E": 0,
"valley_E": 0,
"flat_E": 0,
"fees": 0,
"time": 0,
"P": 0,
"E": 0,
"detail_time": "2019-11-14 00:00:00",
"label": "00"
},
***
{
"peak_E": 0,
"valley_E": 0,
"flat_E": 0,
"fees": 0,
"time": 23,
"P": 0,
"E": 0,
"detail_time": "2019-11-14 23:00:00",
"label": "23"
}
]
}
}
<<<
month
{
"code": 0,
"data": {
"list": [
{
"peak_E": 0,
"valley_E": 0,
"flat_E": 0,
"fees": 0,
"time": 1,
"P": 0,
"E": 0,
"detail_time": "2019-11-01",
"label": "11-01"
},
***
{
"peak_E": 0,
"valley_E": 0,
"flat_E": 0,
"fees": 0,
"time": 30,
"P": 0,
"E": 0,
"detail_time": "2019-11-30",
"label": "11-30"
}
]
}
}
<<<
year
{
"code": 0,
"data": {
"list": [
{
"peak_E": 0,
"valley_E": 0,
"flat_E": 0,
"fees": 0,
"time": 1,
"P": 0,
"E": 0,
"detail_time": "2019-01",
"label": "19-01"
},
***
{
"peak_E": 0,
"valley_E": 0,
"flat_E": 0,
"fees": 0,
"time": 12,
"P": 0,
"E": 0,
"detail_time": "2019-12",
"label": "19-12"
}
]
}
}
<<<
error
~~~
## 单个设备电价导出
>[info] export_type 可选值
| 可选值 | 说明 |
| --- | --- |
| battery | 电量(默认) |
| fees | 电费 |
~~~[api]
get:/device_statistics/single_battery_export
*string:filter_type=day#筛选类型
*string:filter_date=2019-12-12#时间格式字符串,默认昨天
*string:sn=1111111111#设备序列号
string:export_type=battery#导出数据类型
<<<
success
<<<
error
~~~
## 单个设备详细数据
~~~[api]
get:/device_statistics/single_detail_data
*string:filter_date=2019-11-12#默认昨天
*String:sn=1111111#设备序号
<<<
day
{
"code": 0,
"data": {
"list": [
{
"P": 0,
"E": 0,
"V": 0,
"T_RUN": 0,
"T_min": 0,
"T_agv": 0,
"hum_open": null,
"temp_status": 0,
"T_max": 0,
"time": 0,
"fees": 0,
"detail_time": "2019-11-16 00:00:00",
"label": "00"
},
***
{
"P": 0,
"E": 0,
"V": 0,
"T_RUN": 0,
"T_min": 0,
"T_agv": 0,
"hum_open": null,
"temp_status": 0,
"T_max": 0,
"time": 23,
"fees": 0,
"detail_time": "2019-11-16 23:00:00",
"label": "23"
}
]
}
}
<<<
error
~~~
## 详细数据导出
>[info] 暂时只导出温度数据
~~~[api]
get:/device_statistics/detail_export
*string:filter_date=2019-11-12#默认昨天
*String:sn=1111111#设备序号
<<<
success
<<<
error
~~~
## 加热设备排行
~~~[api]
get:/device_statistics/heating_rank
*string:filter_type=day#筛选类型
*string:filter_date=2019-12-21#筛选时间
*int:device_type=0#设备类型
*int:group_id=-1#设备分组 id
<<<
success
{
"code": 0,
"data": {
"list": [
{
"sn": "746814001072",
"num": 0
},
***
{
"sn": "748000000460",
"num": 0
}
]
}
}
<<<
error
~~~
## 累计在线排行
~~~[api]
get:/device_statistics/online_rank
*string:filter_type=day#筛选类型
*string:filter_date=2019-12-21#筛选时间
*int:device_type=0#设备类型
*int:group_id=-1#设备分组 id
<<<
success
{
"code": 0,
"data": {
"list": [
{
"sn": "746814001072",
"num": 0
},
***
{
"sn": "748000000460",
"num": 0
}
]
}
}
<<<
error
~~~
## 耗电量排行
~~~[api]
get:/device_statistics/battery_rank
*string:filter_type=day#筛选类型
*string:filter_date=2019-12-21#筛选时间
*int:device_type=0#设备类型
*int:group_id=-1#设备分组 id
<<<
success
{
"code": 0,
"data": {
"list": [
{
"sn": "746814001072",
"num": 0
},
***
{
"sn": "748000000460",
"num": 0
}
]
}
}
<<<
error
~~~
## 排行数据导出
>[info] export_type 可选值
| 可选值 | 说明 |
| --- | --- |
| battery | 电量 |
| heat | 加热排行 |
| online | 在线排行 |
~~~[api]
get:/device_statistics/rank_export
*string:filter_type=day#筛选类型
*string:filter_date=2019-12-21#筛选时间
*int:device_type=0#设备类型
*int:group_id=-1#设备分组 id
string:export_type=battery#导出数据类型
<<<
success
<<<
error
~~~
## 单个设备计算和数据
~~~[api]
get:/device_statistics/all_detail
*string:filter_type=day#筛选类型
*string:filter_date=2019-11-12#默认昨天
*String:sn=1111111#设备序号
<<<
success
{
"code": 0,
"data": {
"list": [
{
"P": 0,
"E": 0,
"V": 0,
"T_RUN": 0,
"T_min": 0,
"T_agv": 0,
"hum_open": -1,
"temp_status": 0,
"T_max": 0,
"time": 0,
"detail_time": "2019-11-16 00:00:00",
"label": "00"
},
***
{
"P": 0,
"E": 0,
"V": 0,
"T_RUN": 0,
"T_min": 0,
"T_agv": 0,
"hum_open": -1,
"temp_status": 0,
"T_max": 0,
"time": 23,
"detail_time": "2019-11-16 23:00:00",
"label": "23"
}
]
}
}
<<<
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 - 数据统计
- 号段申请
- 数据库
- 登录注销
- 申请用户
- 申请记录
- 用户申请
- 文件上传
- 生产管理
- 登录注册
- 提供接口