From 81169986be7afe7f8191f4aba793cb9d1bb20881 Mon Sep 17 00:00:00 2001 From: anlicheng Date: Thu, 7 Sep 2023 16:55:37 +0800 Subject: [PATCH] fix --- docs/north_data.md | 138 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 138 insertions(+) create mode 100644 docs/north_data.md diff --git a/docs/north_data.md b/docs/north_data.md new file mode 100644 index 0000000..0c62844 --- /dev/null +++ b/docs/north_data.md @@ -0,0 +1,138 @@ +# 水表 + +# 电表 + +# 智慧照明 + +## 数据上报 + +### 总能耗 + +```text + { + "key": "total_power", + "value": float, + "type": "AI", + "unit": "W.h", + "name": "总能耗", + "timestamp": int(10) + } +``` + +### 总运行时间 + +```text + { + "key": "total_runtime", + "value": float, + "type": "AI", + "unit": "h", + "name": "总运行时间", + "timestamp": int(10) + } +``` + +### 实时功率 + +```text + { + "key": "actual_power", + "value": float, + "type": "AI", + "unit": "W", + "name": "实时功率", + "timestamp": int(10) + } +``` + +### 使用次数 + +```text + { + "key": "use_times", + "value": int, + "type": "AI", + "unit": "次", + "name": "使用次数", + "timestamp": int(10) + } +``` + +## 事件上报 + +### 灯开关 +```text + { + "key": "light_switch", + "value": bool, 1: 开,0: 关 + "type": "SOE", + "unit": "", + "name": "开关", + "timestamp": int(10) + } +``` + +### 亮度变化 + +```text + { + "key": "light_brightness", + "value": int, 范围: 0 ~ 100 + "type": "SOE", + "unit": "", + "name": "亮度", + "timestamp": int(10) + } +``` + +### 变亮变暗时间 + +```text + { + "key": "light_change_time", + "value": int, 范围: 1 ~ 200 + "type": "SOE", + "unit": "", + "name": "变亮变暗时间", + "timestamp": int(10) + } +``` + +### 色温 + +```text + { + "key": "light_rgb", + "value": int, + "type": "SOE", + "unit": "", + "name": "色温", + "timestamp": int(10) + } +``` + +### RGB + +```text + { + "key": "light_rgb", + "value": string, + "type": "SOE", + "unit": "", + "name": "RGB", + "timestamp": int(10) + } +``` + +### 是否损坏 + +```text + { + "key": "light_status", + "value": int, 0: 正常, 1: 不没, 2: 不亮, 3: 异常波动 + "type": "SOE", + "unit": "", + "name": "是否损坏", + "timestamp": int(10) + } +``` \ No newline at end of file