空调插座大功率电器负荷监测算法API
接受空调插座实时采集到的电荷信息,当插座监控到有功功率>1000W时,开始采集30秒的连续电荷信息,将采集到的电荷信息,使用tcp协议传输到服务器端, 通过算法检测该电荷信息是空调还是其它大功率电器。若为空调,返回不报警;若非空调,返回大功率电器报警。
空调负荷监测报警:http://[2001:da8:270:2021::139]:80/api/air_conditioning_detection/
GET、POST
参数名 | 类型 | 参数说明 | 备注 |
---|---|---|---|
air_data | string | 空调数据 | json |
{"air_data": [{"powerSate": "POWER_ON", "voltage": "224", "electric_Current": "8.277", "activePower": "1848.5", "apparentPower": "1854.0", "powerFactor": "0.99", "electricity": "0.071", "temperature": "26.7 "}, {"powerSate": "POWER_ON", "voltage": "224", "electric_Current": "8.277", "activePower": "1848.5", "apparentPower": "1854.0", "powerFactor": "0.99", "electricity": "0.071", "temperature": "26.8 "}, {"powerSate": "POWER_ON", "voltage": "224", "electric_Current": "8.277", "activePower": "1848.5", "apparentPower": "1854.0", "powerFactor": "0.99", "electricity": "0.071", "temperature": "26.8 "}, {"powerSate": "POWER_ON", "voltage": "224", "electric_Current": "8.274", "activePower": "1848.9", "apparentPower": "1853.3", "powerFactor": "0.99", "electricity": "0.073", "temperature": "26.8 "}, {"powerSate": "POWER_ON", "voltage": "224", "electric_Current": "8.274", "activePower": "1848.9", "apparentPower": "1853.3", "powerFactor": "0.99", "electricity": "0.073", "temperature": "26.8 "}, {"powerSate": "POWER_ON", "voltage": "224", "electric_Current": "8.274", "activePower": "1848.9", "apparentPower": "1853.3", "powerFactor": "0.99", "electricity": "0.073", "temperature": "26.8 "}, {"powerSate": "POWER_ON", "voltage": "224", "electric_Current": "8.275", "activePower": "1849.1", "apparentPower": "1853.6", "powerFactor": "0.99", "electricity": "0.074", "temperature": "26.8 "}, {"powerSate": "POWER_ON", "voltage": "224", "electric_Current": "8.275", "activePower": "1849.1", "apparentPower": "1853.6", "powerFactor": "0.99", "electricity": "0.074", "temperature": "26.8 "}, {"powerSate": "POWER_ON", "voltage": "224", "electric_Current": "8.273", "activePower": "1848.2", "apparentPower": "1853.2", "powerFactor": "0.99", "electricity": "0.076", "temperature": "26.9 "}, {"powerSate": "POWER_ON", "voltage": "224", "electric_Current": "8.273", "activePower": "1848.2", "apparentPower": "1853.2", "powerFactor": "0.99", "electricity": "0.076", "temperature": "26.9 "}, {"powerSate": "POWER_ON", "voltage": "224", "electric_Current": "8.273", "activePower": "1848.2", "apparentPower": "1853.2", "powerFactor": "0.99", "electricity": "0.076", "temperature": "26.9 "}, {"powerSate": "POWER_ON", "voltage": "223", "electric_Current": "8.273", "activePower": "1848.9", "apparentPower": "1847.9", "powerFactor": "1.00", "electricity": "0.077", "temperature": "27.0 "}, {"powerSate": "POWER_ON", "voltage": "223", "electric_Current": "8.273", "activePower": "1848.9", "apparentPower": "1847.9", "powerFactor": "1.00", "electricity": "0.077", "temperature": "27.0 "}, {"powerSate": "POWER_ON", "voltage": "223", "electric_Current": "8.273", "activePower": "1848.9", "apparentPower": "1847.9", "powerFactor": "1.00", "electricity": "0.077", "temperature": "27.0 "}, {"powerSate": "POWER_ON", "voltage": "224", "electric_Current": "8.273", "activePower": "1848.5", "apparentPower": "1853.1", "powerFactor": "0.99", "electricity": "0.078", "temperature": "27.0 "}, {"powerSate": "POWER_ON", "voltage": "224", "electric_Current": "8.273", "activePower": "1848.5", "apparentPower": "1853.1", "powerFactor": "0.99", "electricity": "0.078", "temperature": "27.0 "}, {"powerSate": "POWER_ON", "voltage": "223", "electric_Current": "8.278", "activePower": "1848.9", "apparentPower": "1851.1", "powerFactor": "0.99", "electricity": "0.080", "temperature": "27.0 "}, {"powerSate": "POWER_ON", "voltage": "223", "electric_Current": "8.278", "activePower": "1848.9", "apparentPower": "1851.1", "powerFactor": "0.99", "electricity": "0.080", "temperature": "27.1 "}, {"powerSate": "POWER_ON", "voltage": "223", "electric_Current": "8.278", "activePower": "1848.9", "apparentPower": "1851.1", "powerFactor": "0.99", "electricity": "0.080", "temperature": "27.1 "}, {"powerSate": "POWER_ON", "voltage": "223", "electric_Current": "8.273", "activePower": "1849.7", "apparentPower": "1852.1", "powerFactor": "0.99", "electricity": "0.081", "temperature": "27.1 "}, {"powerSate": "POWER_ON", "voltage": "223", "electric_Current": "8.273", "activePower": "1849.7", "apparentPower": "1852.1", "powerFactor": "0.99", "electricity": "0.081", "temperature": "27.1 "}, {"powerSate": "POWER_ON", "voltage": "224", "electric_Current": "8.281", "activePower": "1851.2", "apparentPower": "1854.9", "powerFactor": "0.99", "electricity": "0.082", "temperature": "27.1 "}, {"powerSate": "POWER_ON", "voltage": "224", "electric_Current": "8.281", "activePower": "1851.2", "apparentPower": "1854.9", "powerFactor": "0.99", "electricity": "0.082", "temperature": "27.1 "}, {"powerSate": "POWER_ON", "voltage": "224", "electric_Current": "8.281", "activePower": "1851.2", "apparentPower": "1854.9", "powerFactor": "0.99", "electricity": "0.082", "temperature": "27.1 "}, {"powerSate": "POWER_ON", "voltage": "224", "electric_Current": "8.283", "activePower": "1850.0", "apparentPower": "1855.3", "powerFactor": "0.99", "electricity": "0.084", "temperature": "27.2 "}, {"powerSate": "POWER_ON", "voltage": "224", "electric_Current": "8.283", "activePower": "1850.0", "apparentPower": "1855.3", "powerFactor": "0.99", "electricity": "0.084", "temperature": "27.2 "}, {"powerSate": "POWER_ON", "voltage": "224", "electric_Current": "8.283", "activePower": "1850.0", "apparentPower": "1855.3", "powerFactor": "0.99", "electricity": "0.084", "temperature": "27.2 "}, {"powerSate": "POWER_ON", "voltage": "224", "electric_Current": "8.277", "activePower": "1849.4", "apparentPower": "1854.0", "powerFactor": "0.99", "electricity": "0.085", "temperature": "27.2 "}, {"powerSate": "POWER_ON", "voltage": "224", "electric_Current": "8.277", "activePower": "1849.4", "apparentPower": "1854.0", "powerFactor": "0.99", "electricity": "0.085", "temperature": "27.3 "}, {"powerSate": "POWER_ON", "voltage": "224", "electric_Current": "8.277", "activePower": "1849.4", "apparentPower": "1854.0", "powerFactor": "0.99", "electricity": "0.085", "temperature": "27.3"}]}
参数名 | 类型 | 参数说明 | 备注 |
---|---|---|---|
equipmentType | string | 设备类型 | KT 代表空调 其他自定义 |
errmsg | bool | 错误码 | 服务端返回正常true |
isAlarm | bool | 是否告警 | 设备为大功率电器返回true 设备为空调返回false |
isok | bool | 操作结果 | 服务端返回正常true 异常为false |
matchingDegree | float | 匹配度 | 匹配度 没有就是0 |
{
"equipmentType": "KT",
"errmsg": 200,
"isAlarm": true,
"isok": true,
"matchingDegree": 0
}