|
@@ -0,0 +1,844 @@
|
|
1
|
+# 鼎鼎开放平台
|
|
2
|
+
|
|
3
|
+鼎鼎开放平台旨在集成物联网设备,赋能合作第三方或内部开发人员,使之可以进行围绕设备、与业务无关的开发。第一版的开放平台开始于2021年1月,对接了深圳曼顿公司物联网空开的`HTTP`和`UDP`协议。
|
|
4
|
+
|
|
5
|
+# 版本历史
|
|
6
|
+
|
|
7
|
+| 版本 | 修订内容 | 修订人 | 发布日期 |
|
|
8
|
+| ----- | ------------------------------------------------------------ | ------ | --------- |
|
|
9
|
+| 1.0.0 | 第一次发布。功能包括:合闸、分断、获取实时数据。 | 季建新 | 2021.1.12 |
|
|
10
|
+| 1.0.1 | 兼容`UDP`协议 | 季建新 | 2021.2.21 |
|
|
11
|
+| 1.0.2 | `HTTP`协议电量查询,实现按月、按天、按小时查询。 | 季建新 | 2021.2.21 |
|
|
12
|
+| 1.0.3 | `UDP`协议电量查询,实现按月、按天、按小时查询。 | 季建新 | 2021.2.21 |
|
|
13
|
+| 1.0.4 | 获取`HTTP`协议模块是否在线; 模块和项目绑定;模块和项目解除绑定;获取60分钟内负荷; 获取任意多开关任意时间段内的电量。 | 季建新 | 2021.3.19 |
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+# 空气开关
|
|
18
|
+
|
|
19
|
+## 获取实时数据
|
|
20
|
+
|
|
21
|
+请求
|
|
22
|
+
|
|
23
|
+```
|
|
24
|
+POST http://47.103.61.198:5008/api/breaker/data
|
|
25
|
+
|
|
26
|
+Headers:
|
|
27
|
+
|
|
28
|
+Content-Type: application/json
|
|
29
|
+DD-Open-Key: d2ca79f1-4666-4ad5-953b-7ba5ee480fe0
|
|
30
|
+
|
|
31
|
+Body:
|
|
32
|
+
|
|
33
|
+{
|
|
34
|
+ "mac":"187ED53338C4"
|
|
35
|
+}
|
|
36
|
+```
|
|
37
|
+
|
|
38
|
+响应
|
|
39
|
+
|
|
40
|
+```
|
|
41
|
+{
|
|
42
|
+ "data": {
|
|
43
|
+ "serverinfo": {
|
|
44
|
+ "port": "12345",
|
|
45
|
+ "hardware": "T25",
|
|
46
|
+ "execleakcheck": "false",
|
|
47
|
+ "protocol_ver": "19",
|
|
48
|
+ "mac": "187ED53338C4",
|
|
49
|
+ "loginid": "187ED53338C4",
|
|
50
|
+ "gate": "",
|
|
51
|
+ "ip": "192.168.8.134",
|
|
52
|
+ "version": "1.3.08",
|
|
53
|
+ "loginpwd": "7a57a5a743894ae4",
|
|
54
|
+ "ssidpwd": "2803f88db851c67a",
|
|
55
|
+ "ssid": "DDINGW",
|
|
56
|
+ "timezoneId": "Asia/Shanghai",
|
|
57
|
+ "ServerProtocol": "2",
|
|
58
|
+ "server": "47.103.61.198:5008/ebx-bishop/data/carry",
|
|
59
|
+ "datetime": "2021-01-25 14:24:56",
|
|
60
|
+ "leakcheckdate": "3,13,33",
|
|
61
|
+ "lastleakcheckdate": "2017-01-01 10:00:00"
|
|
62
|
+ },
|
|
63
|
+ "distributbox": {
|
|
64
|
+ "breakers": {
|
|
65
|
+ "1": {
|
|
66
|
+ "version": "1.03",
|
|
67
|
+ "title": "总路",
|
|
68
|
+ "model": "JZK2L100-BL6523",
|
|
69
|
+ "alarm": 0,
|
|
70
|
+ "enableNetCtrl": true,
|
|
71
|
+ "mxdw": 0,
|
|
72
|
+ "mxgg": 14080,
|
|
73
|
+ "mxgl": 96,
|
|
74
|
+ "mxgw": 90,
|
|
75
|
+ "mxgy": 260,
|
|
76
|
+ "mxld": 30,
|
|
77
|
+ "mxqy": 0,
|
|
78
|
+ "openClose": true,
|
|
79
|
+ "addr": 1,
|
|
80
|
+ "power": 0,
|
|
81
|
+ "specification": "64",
|
|
82
|
+ "control": 1,
|
|
83
|
+ "visibility": 1,
|
|
84
|
+ "totalChannelId": -1,
|
|
85
|
+ "lineType": "220",
|
|
86
|
+ "a_A": 0,
|
|
87
|
+ "a_T": 32.1,
|
|
88
|
+ "a_V": 226,
|
|
89
|
+ "a_WP": 0,
|
|
90
|
+ "a_LD": 0.5,
|
|
91
|
+ "a_PF": 0,
|
|
92
|
+ "g_A": 0,
|
|
93
|
+ "g_T": 0,
|
|
94
|
+ "g_V": 0,
|
|
95
|
+ "g_WP": 0,
|
|
96
|
+ "g_LD": 0,
|
|
97
|
+ "g_PF": 0,
|
|
98
|
+ "b_A": 0,
|
|
99
|
+ "b_T": 0,
|
|
100
|
+ "b_V": 0,
|
|
101
|
+ "b_WP": 0,
|
|
102
|
+ "b_PF": 0,
|
|
103
|
+ "c_A": 0,
|
|
104
|
+ "c_T": 0,
|
|
105
|
+ "c_V": 0,
|
|
106
|
+ "c_WP": 0,
|
|
107
|
+ "c_PF": 0,
|
|
108
|
+ "n_A": 0,
|
|
109
|
+ "n_T": 0
|
|
110
|
+ },
|
|
111
|
+ "2": {
|
|
112
|
+ "version": "1.03",
|
|
113
|
+ "title": "线路1",
|
|
114
|
+ "model": "JZK2L100-BL6523",
|
|
115
|
+ "alarm": 0,
|
|
116
|
+ "enableNetCtrl": true,
|
|
117
|
+ "mxdw": 0,
|
|
118
|
+ "mxgg": 100,
|
|
119
|
+ "mxgl": 30,
|
|
120
|
+ "mxgw": 90,
|
|
121
|
+ "mxgy": 260,
|
|
122
|
+ "mxld": 30,
|
|
123
|
+ "mxqy": 175,
|
|
124
|
+ "openClose": true,
|
|
125
|
+ "addr": 2,
|
|
126
|
+ "power": 0,
|
|
127
|
+ "specification": "20",
|
|
128
|
+ "control": 1,
|
|
129
|
+ "visibility": 1,
|
|
130
|
+ "totalChannelId": 1,
|
|
131
|
+ "lineType": "220",
|
|
132
|
+ "a_A": 0,
|
|
133
|
+ "a_T": 35,
|
|
134
|
+ "a_V": 226,
|
|
135
|
+ "a_WP": 0,
|
|
136
|
+ "a_LD": 0,
|
|
137
|
+ "a_PF": 0,
|
|
138
|
+ "g_A": 0,
|
|
139
|
+ "g_T": 0,
|
|
140
|
+ "g_V": 0,
|
|
141
|
+ "g_WP": 0,
|
|
142
|
+ "g_LD": 0,
|
|
143
|
+ "g_PF": 0,
|
|
144
|
+ "b_A": 0,
|
|
145
|
+ "b_T": 0,
|
|
146
|
+ "b_V": 0,
|
|
147
|
+ "b_WP": 0,
|
|
148
|
+ "b_PF": 0,
|
|
149
|
+ "c_A": 0,
|
|
150
|
+ "c_T": 0,
|
|
151
|
+ "c_V": 0,
|
|
152
|
+ "c_WP": 0,
|
|
153
|
+ "c_PF": 0,
|
|
154
|
+ "n_A": 0,
|
|
155
|
+ "n_T": 0
|
|
156
|
+ },
|
|
157
|
+ "3": {
|
|
158
|
+ "version": "1.03",
|
|
159
|
+ "title": "线路2",
|
|
160
|
+ "model": "JZK2L100-BL6523",
|
|
161
|
+ "alarm": 0,
|
|
162
|
+ "enableNetCtrl": true,
|
|
163
|
+ "mxdw": 0,
|
|
164
|
+ "mxgg": 4400,
|
|
165
|
+ "mxgl": 30,
|
|
166
|
+ "mxgw": 90,
|
|
167
|
+ "mxgy": 260,
|
|
168
|
+ "mxld": 30,
|
|
169
|
+ "mxqy": 175,
|
|
170
|
+ "openClose": true,
|
|
171
|
+ "addr": 3,
|
|
172
|
+ "power": 0,
|
|
173
|
+ "specification": "20",
|
|
174
|
+ "control": 1,
|
|
175
|
+ "visibility": 1,
|
|
176
|
+ "totalChannelId": 1,
|
|
177
|
+ "lineType": "220",
|
|
178
|
+ "a_A": 0,
|
|
179
|
+ "a_T": 35,
|
|
180
|
+ "a_V": 226,
|
|
181
|
+ "a_WP": 0,
|
|
182
|
+ "a_LD": 0,
|
|
183
|
+ "a_PF": 0,
|
|
184
|
+ "g_A": 0,
|
|
185
|
+ "g_T": 0,
|
|
186
|
+ "g_V": 0,
|
|
187
|
+ "g_WP": 0,
|
|
188
|
+ "g_LD": 0,
|
|
189
|
+ "g_PF": 0,
|
|
190
|
+ "b_A": 0,
|
|
191
|
+ "b_T": 0,
|
|
192
|
+ "b_V": 0,
|
|
193
|
+ "b_WP": 0,
|
|
194
|
+ "b_PF": 0,
|
|
195
|
+ "c_A": 0,
|
|
196
|
+ "c_T": 0,
|
|
197
|
+ "c_V": 0,
|
|
198
|
+ "c_WP": 0,
|
|
199
|
+ "c_PF": 0,
|
|
200
|
+ "n_A": 0,
|
|
201
|
+ "n_T": 0
|
|
202
|
+ }
|
|
203
|
+ },
|
|
204
|
+ "change": null
|
|
205
|
+ }
|
|
206
|
+ },
|
|
207
|
+ "isError": false,
|
|
208
|
+ "message": "success",
|
|
209
|
+ "code": 200
|
|
210
|
+}
|
|
211
|
+```
|
|
212
|
+
|
|
213
|
+
|
|
214
|
+
|
|
215
|
+## 合闸分断
|
|
216
|
+
|
|
217
|
+请求
|
|
218
|
+
|
|
219
|
+```
|
|
220
|
+POST http://47.103.61.198:5008/api/breaker/oc
|
|
221
|
+
|
|
222
|
+Headers:
|
|
223
|
+
|
|
224
|
+Content-Type: application/json
|
|
225
|
+DD-Open-Key: d2ca79f1-4666-4ad5-953b-7ba5ee480fe0
|
|
226
|
+
|
|
227
|
+Body:
|
|
228
|
+
|
|
229
|
+{
|
|
230
|
+ "cmd":"OCSWITCH",
|
|
231
|
+ "value1":"open",
|
|
232
|
+ "value2":"1,2,3",
|
|
233
|
+ "mac":"187ED53338C4",
|
|
234
|
+ "extra":""
|
|
235
|
+}
|
|
236
|
+```
|
|
237
|
+
|
|
238
|
+
|
|
239
|
+
|
|
240
|
+## 批量获取模块是否在线
|
|
241
|
+
|
|
242
|
+当总部运营后台展示模块是否在线时使用本接口。
|
|
243
|
+
|
|
244
|
+
|
|
245
|
+
|
|
246
|
+请求
|
|
247
|
+
|
|
248
|
+```
|
|
249
|
+POST http://47.103.61.198:5008/api/hd/macs
|
|
250
|
+
|
|
251
|
+Headers:
|
|
252
|
+
|
|
253
|
+Content-Type: application/json
|
|
254
|
+DD-Open-Key: bde2d876-993d-440d-aba1-3a06007a25a3
|
|
255
|
+
|
|
256
|
+Body:
|
|
257
|
+
|
|
258
|
+{
|
|
259
|
+ "Macs":["187ED5311111","187ED5322222"]
|
|
260
|
+}
|
|
261
|
+```
|
|
262
|
+
|
|
263
|
+响应
|
|
264
|
+
|
|
265
|
+```
|
|
266
|
+{
|
|
267
|
+ "data": {
|
|
268
|
+ "macs": {
|
|
269
|
+ "187ED5311111": "0",
|
|
270
|
+ "187ED5322222": "0"
|
|
271
|
+ }
|
|
272
|
+ },
|
|
273
|
+ "isError": false,
|
|
274
|
+ "message": "success",
|
|
275
|
+ "code": 200
|
|
276
|
+}
|
|
277
|
+```
|
|
278
|
+
|
|
279
|
+
|
|
280
|
+
|
|
281
|
+## 模块和项目绑定
|
|
282
|
+
|
|
283
|
+当总部运营后台绑定模块和项目时使用本接口。
|
|
284
|
+
|
|
285
|
+
|
|
286
|
+
|
|
287
|
+请求
|
|
288
|
+
|
|
289
|
+```
|
|
290
|
+POST http://47.103.61.198:5008/api/hd/mac/bind
|
|
291
|
+
|
|
292
|
+Headers:
|
|
293
|
+
|
|
294
|
+Content-Type: application/json
|
|
295
|
+DD-Open-Key: bde2d876-993d-440d-aba1-3a06007a25a3
|
|
296
|
+
|
|
297
|
+Body:
|
|
298
|
+
|
|
299
|
+{
|
|
300
|
+ "Mac":"187ED5377777",
|
|
301
|
+ "ProjectId":"1000",
|
|
302
|
+ "ProjectName":"DEMO",
|
|
303
|
+ "NSpace":"DEMO",
|
|
304
|
+ "Protocol":0,
|
|
305
|
+ "IsThirdParty":false,
|
|
306
|
+ "APIKey":""
|
|
307
|
+}
|
|
308
|
+```
|
|
309
|
+
|
|
310
|
+以上,`Protocol=2`表示模块是`HTTP`通讯,`Protocol=1`表示模块是`UDP`通讯。如果在项目运营后台的组织属于第三方合作方,必须设置`IsThirdParty=true`,并且`APIKey`不能为空。
|
|
311
|
+
|
|
312
|
+
|
|
313
|
+
|
|
314
|
+响应
|
|
315
|
+
|
|
316
|
+```
|
|
317
|
+{
|
|
318
|
+ "isError": false,
|
|
319
|
+ "message": "success",
|
|
320
|
+ "code": 200
|
|
321
|
+}
|
|
322
|
+```
|
|
323
|
+
|
|
324
|
+
|
|
325
|
+
|
|
326
|
+## 模块和项目解除绑定
|
|
327
|
+
|
|
328
|
+当总部运营后台模块和项目解除绑定时使用本接口。
|
|
329
|
+
|
|
330
|
+请求
|
|
331
|
+
|
|
332
|
+```
|
|
333
|
+POST http://47.103.61.198:5008/api/hd/mac/unbind
|
|
334
|
+
|
|
335
|
+Headers:
|
|
336
|
+
|
|
337
|
+Content-Type: application/json
|
|
338
|
+DD-Open-Key: bde2d876-993d-440d-aba1-3a06007a25a3
|
|
339
|
+
|
|
340
|
+Body:
|
|
341
|
+
|
|
342
|
+{
|
|
343
|
+ "Mac":"187ED5377777"
|
|
344
|
+}
|
|
345
|
+```
|
|
346
|
+
|
|
347
|
+
|
|
348
|
+
|
|
349
|
+响应
|
|
350
|
+
|
|
351
|
+```
|
|
352
|
+{
|
|
353
|
+ "isError": false,
|
|
354
|
+ "message": "success",
|
|
355
|
+ "code": 200
|
|
356
|
+}
|
|
357
|
+```
|
|
358
|
+
|
|
359
|
+
|
|
360
|
+
|
|
361
|
+## 获取最近60分钟的负荷
|
|
362
|
+
|
|
363
|
+当需要统计某个项目、公司、位置下的某些开关最近60分钟内负荷时调用本接口。
|
|
364
|
+
|
|
365
|
+
|
|
366
|
+
|
|
367
|
+请求
|
|
368
|
+
|
|
369
|
+```
|
|
370
|
+POST http://47.103.61.198:5008/api/breaker/fuhe
|
|
371
|
+
|
|
372
|
+Headers:
|
|
373
|
+
|
|
374
|
+Content-Type: application/json
|
|
375
|
+DD-Open-Key: bde2d876-993d-440d-aba1-3a06007a25a3
|
|
376
|
+
|
|
377
|
+Body:
|
|
378
|
+
|
|
379
|
+{
|
|
380
|
+ "Macs":["187ED5311111_1,2","187ED5322222_1,2,3"]
|
|
381
|
+}
|
|
382
|
+```
|
|
383
|
+
|
|
384
|
+
|
|
385
|
+
|
|
386
|
+响应
|
|
387
|
+
|
|
388
|
+```
|
|
389
|
+{
|
|
390
|
+ "data": {
|
|
391
|
+ "fuHes": [
|
|
392
|
+ {
|
|
393
|
+ "dt": "2021-03-19T14:27:00",
|
|
394
|
+ "wp": "400"
|
|
395
|
+ },
|
|
396
|
+ {
|
|
397
|
+ "dt": "2021-03-19T14:28:00",
|
|
398
|
+ "wp": "400"
|
|
399
|
+ },
|
|
400
|
+ {
|
|
401
|
+ "dt": "2021-03-19T14:29:00",
|
|
402
|
+ "wp": "400"
|
|
403
|
+ },
|
|
404
|
+ {
|
|
405
|
+ "dt": "2021-03-19T14:30:00",
|
|
406
|
+ "wp": "400"
|
|
407
|
+ },
|
|
408
|
+ {
|
|
409
|
+ "dt": "2021-03-19T14:31:00",
|
|
410
|
+ "wp": "400"
|
|
411
|
+ },
|
|
412
|
+ {
|
|
413
|
+ "dt": "2021-03-19T14:32:00",
|
|
414
|
+ "wp": "400"
|
|
415
|
+ },
|
|
416
|
+ {
|
|
417
|
+ "dt": "2021-03-19T14:33:00",
|
|
418
|
+ "wp": "400"
|
|
419
|
+ },
|
|
420
|
+ {
|
|
421
|
+ "dt": "2021-03-19T14:34:00",
|
|
422
|
+ "wp": "400"
|
|
423
|
+ },
|
|
424
|
+ {
|
|
425
|
+ "dt": "2021-03-19T14:35:00",
|
|
426
|
+ "wp": "400"
|
|
427
|
+ },
|
|
428
|
+ {
|
|
429
|
+ "dt": "2021-03-19T14:36:00",
|
|
430
|
+ "wp": "400"
|
|
431
|
+ },
|
|
432
|
+ {
|
|
433
|
+ "dt": "2021-03-19T14:37:00",
|
|
434
|
+ "wp": "400"
|
|
435
|
+ },
|
|
436
|
+ {
|
|
437
|
+ "dt": "2021-03-19T14:38:00",
|
|
438
|
+ "wp": "400"
|
|
439
|
+ },
|
|
440
|
+ {
|
|
441
|
+ "dt": "2021-03-19T14:39:00",
|
|
442
|
+ "wp": "400"
|
|
443
|
+ },
|
|
444
|
+ {
|
|
445
|
+ "dt": "2021-03-19T14:40:00",
|
|
446
|
+ "wp": "400"
|
|
447
|
+ },
|
|
448
|
+ {
|
|
449
|
+ "dt": "2021-03-19T14:41:00",
|
|
450
|
+ "wp": "400"
|
|
451
|
+ },
|
|
452
|
+ {
|
|
453
|
+ "dt": "2021-03-19T14:42:00",
|
|
454
|
+ "wp": "400"
|
|
455
|
+ },
|
|
456
|
+ {
|
|
457
|
+ "dt": "2021-03-19T14:43:00",
|
|
458
|
+ "wp": "400"
|
|
459
|
+ },
|
|
460
|
+ {
|
|
461
|
+ "dt": "2021-03-19T14:44:00",
|
|
462
|
+ "wp": "400"
|
|
463
|
+ },
|
|
464
|
+ {
|
|
465
|
+ "dt": "2021-03-19T14:45:00",
|
|
466
|
+ "wp": "400"
|
|
467
|
+ },
|
|
468
|
+ {
|
|
469
|
+ "dt": "2021-03-19T14:46:00",
|
|
470
|
+ "wp": "400"
|
|
471
|
+ },
|
|
472
|
+ {
|
|
473
|
+ "dt": "2021-03-19T14:47:00",
|
|
474
|
+ "wp": "400"
|
|
475
|
+ },
|
|
476
|
+ {
|
|
477
|
+ "dt": "2021-03-19T14:48:00",
|
|
478
|
+ "wp": "400"
|
|
479
|
+ },
|
|
480
|
+ {
|
|
481
|
+ "dt": "2021-03-19T14:49:00",
|
|
482
|
+ "wp": "400"
|
|
483
|
+ },
|
|
484
|
+ {
|
|
485
|
+ "dt": "2021-03-19T14:50:00",
|
|
486
|
+ "wp": "400"
|
|
487
|
+ },
|
|
488
|
+ {
|
|
489
|
+ "dt": "2021-03-19T14:51:00",
|
|
490
|
+ "wp": "400"
|
|
491
|
+ },
|
|
492
|
+ {
|
|
493
|
+ "dt": "2021-03-19T14:52:00",
|
|
494
|
+ "wp": "400"
|
|
495
|
+ },
|
|
496
|
+ {
|
|
497
|
+ "dt": "2021-03-19T14:53:00",
|
|
498
|
+ "wp": "400"
|
|
499
|
+ },
|
|
500
|
+ {
|
|
501
|
+ "dt": "2021-03-19T14:54:00",
|
|
502
|
+ "wp": "400"
|
|
503
|
+ },
|
|
504
|
+ {
|
|
505
|
+ "dt": "2021-03-19T14:55:00",
|
|
506
|
+ "wp": "400"
|
|
507
|
+ },
|
|
508
|
+ {
|
|
509
|
+ "dt": "2021-03-19T14:56:00",
|
|
510
|
+ "wp": "400"
|
|
511
|
+ },
|
|
512
|
+ {
|
|
513
|
+ "dt": "2021-03-19T14:57:00",
|
|
514
|
+ "wp": "400"
|
|
515
|
+ },
|
|
516
|
+ {
|
|
517
|
+ "dt": "2021-03-19T14:58:00",
|
|
518
|
+ "wp": "400"
|
|
519
|
+ },
|
|
520
|
+ {
|
|
521
|
+ "dt": "2021-03-19T14:59:00",
|
|
522
|
+ "wp": "400"
|
|
523
|
+ },
|
|
524
|
+ {
|
|
525
|
+ "dt": "2021-03-19T15:00:00",
|
|
526
|
+ "wp": "400"
|
|
527
|
+ },
|
|
528
|
+ {
|
|
529
|
+ "dt": "2021-03-19T15:01:00",
|
|
530
|
+ "wp": "400"
|
|
531
|
+ },
|
|
532
|
+ {
|
|
533
|
+ "dt": "2021-03-19T15:02:00",
|
|
534
|
+ "wp": "400"
|
|
535
|
+ },
|
|
536
|
+ {
|
|
537
|
+ "dt": "2021-03-19T15:03:00",
|
|
538
|
+ "wp": "400"
|
|
539
|
+ },
|
|
540
|
+ {
|
|
541
|
+ "dt": "2021-03-19T15:04:00",
|
|
542
|
+ "wp": "400"
|
|
543
|
+ },
|
|
544
|
+ {
|
|
545
|
+ "dt": "2021-03-19T15:05:00",
|
|
546
|
+ "wp": "400"
|
|
547
|
+ },
|
|
548
|
+ {
|
|
549
|
+ "dt": "2021-03-19T15:06:00",
|
|
550
|
+ "wp": "400"
|
|
551
|
+ },
|
|
552
|
+ {
|
|
553
|
+ "dt": "2021-03-19T15:07:00",
|
|
554
|
+ "wp": "400"
|
|
555
|
+ },
|
|
556
|
+ {
|
|
557
|
+ "dt": "2021-03-19T15:08:00",
|
|
558
|
+ "wp": "400"
|
|
559
|
+ },
|
|
560
|
+ {
|
|
561
|
+ "dt": "2021-03-19T15:09:00",
|
|
562
|
+ "wp": "400"
|
|
563
|
+ },
|
|
564
|
+ {
|
|
565
|
+ "dt": "2021-03-19T15:10:00",
|
|
566
|
+ "wp": "400"
|
|
567
|
+ },
|
|
568
|
+ {
|
|
569
|
+ "dt": "2021-03-19T15:11:00",
|
|
570
|
+ "wp": "400"
|
|
571
|
+ },
|
|
572
|
+ {
|
|
573
|
+ "dt": "2021-03-19T15:12:00",
|
|
574
|
+ "wp": "400"
|
|
575
|
+ },
|
|
576
|
+ {
|
|
577
|
+ "dt": "2021-03-19T15:13:00",
|
|
578
|
+ "wp": "400"
|
|
579
|
+ },
|
|
580
|
+ {
|
|
581
|
+ "dt": "2021-03-19T15:14:00",
|
|
582
|
+ "wp": "400"
|
|
583
|
+ },
|
|
584
|
+ {
|
|
585
|
+ "dt": "2021-03-19T15:15:00",
|
|
586
|
+ "wp": "400"
|
|
587
|
+ },
|
|
588
|
+ {
|
|
589
|
+ "dt": "2021-03-19T15:16:00",
|
|
590
|
+ "wp": "400"
|
|
591
|
+ },
|
|
592
|
+ {
|
|
593
|
+ "dt": "2021-03-19T15:17:00",
|
|
594
|
+ "wp": "400"
|
|
595
|
+ },
|
|
596
|
+ {
|
|
597
|
+ "dt": "2021-03-19T15:18:00",
|
|
598
|
+ "wp": "400"
|
|
599
|
+ },
|
|
600
|
+ {
|
|
601
|
+ "dt": "2021-03-19T15:19:00",
|
|
602
|
+ "wp": "400"
|
|
603
|
+ },
|
|
604
|
+ {
|
|
605
|
+ "dt": "2021-03-19T15:20:00",
|
|
606
|
+ "wp": "400"
|
|
607
|
+ },
|
|
608
|
+ {
|
|
609
|
+ "dt": "2021-03-19T15:21:00",
|
|
610
|
+ "wp": "400"
|
|
611
|
+ },
|
|
612
|
+ {
|
|
613
|
+ "dt": "2021-03-19T15:22:00",
|
|
614
|
+ "wp": "400"
|
|
615
|
+ },
|
|
616
|
+ {
|
|
617
|
+ "dt": "2021-03-19T15:23:00",
|
|
618
|
+ "wp": "400"
|
|
619
|
+ },
|
|
620
|
+ {
|
|
621
|
+ "dt": "2021-03-19T15:24:00",
|
|
622
|
+ "wp": "400"
|
|
623
|
+ },
|
|
624
|
+ {
|
|
625
|
+ "dt": "2021-03-19T15:25:00",
|
|
626
|
+ "wp": "400"
|
|
627
|
+ },
|
|
628
|
+ {
|
|
629
|
+ "dt": "2021-03-19T15:26:00",
|
|
630
|
+ "wp": "400"
|
|
631
|
+ },
|
|
632
|
+ {
|
|
633
|
+ "dt": "2021-03-19T15:28:00",
|
|
634
|
+ "wp": "400"
|
|
635
|
+ },
|
|
636
|
+ {
|
|
637
|
+ "dt": "2021-03-19T15:29:00",
|
|
638
|
+ "wp": "400"
|
|
639
|
+ },
|
|
640
|
+ {
|
|
641
|
+ "dt": "2021-03-19T15:30:00",
|
|
642
|
+ "wp": "400"
|
|
643
|
+ },
|
|
644
|
+ {
|
|
645
|
+ "dt": "2021-03-19T15:31:00",
|
|
646
|
+ "wp": "400"
|
|
647
|
+ }
|
|
648
|
+ ]
|
|
649
|
+ },
|
|
650
|
+ "isError": false,
|
|
651
|
+ "message": "success",
|
|
652
|
+ "code": 200
|
|
653
|
+}
|
|
654
|
+```
|
|
655
|
+
|
|
656
|
+
|
|
657
|
+
|
|
658
|
+## 统计任意多开关任意时间段内的总电量
|
|
659
|
+
|
|
660
|
+
|
|
661
|
+
|
|
662
|
+请求
|
|
663
|
+
|
|
664
|
+```
|
|
665
|
+POST http://47.103.61.198:5008/api/breaker/power/random
|
|
666
|
+
|
|
667
|
+Headers:
|
|
668
|
+
|
|
669
|
+Content-Type: application/json
|
|
670
|
+DD-Open-Key: bde2d876-993d-440d-aba1-3a06007a25a3
|
|
671
|
+
|
|
672
|
+Body:
|
|
673
|
+
|
|
674
|
+{
|
|
675
|
+ "MacAddrs":["187ED5311111_1", "187ED5322222_2"],
|
|
676
|
+ "StartYear":2021,
|
|
677
|
+ "StartMonth":3,
|
|
678
|
+ "StartDay":1,
|
|
679
|
+ "StartHour":0,
|
|
680
|
+ "EndYear":2021,
|
|
681
|
+ "EndMonth":3,
|
|
682
|
+ "EndDay":15,
|
|
683
|
+ "EndHour":0
|
|
684
|
+}
|
|
685
|
+```
|
|
686
|
+
|
|
687
|
+
|
|
688
|
+
|
|
689
|
+响应:
|
|
690
|
+
|
|
691
|
+```
|
|
692
|
+{
|
|
693
|
+ "data": {
|
|
694
|
+ "total": "242.64"
|
|
695
|
+ },
|
|
696
|
+ "isError": false,
|
|
697
|
+ "message": "success",
|
|
698
|
+ "code": 200
|
|
699
|
+}
|
|
700
|
+```
|
|
701
|
+
|
|
702
|
+
|
|
703
|
+
|
|
704
|
+## 获取任意多开关任意时间段内的按小时电量
|
|
705
|
+
|
|
706
|
+
|
|
707
|
+
|
|
708
|
+请求
|
|
709
|
+
|
|
710
|
+```
|
|
711
|
+POST http://47.103.61.198:5008/api/breaker/power/random/byhours
|
|
712
|
+
|
|
713
|
+Headers:
|
|
714
|
+
|
|
715
|
+Content-Type: application/json
|
|
716
|
+DD-Open-Key: bde2d876-993d-440d-aba1-3a06007a25a3
|
|
717
|
+
|
|
718
|
+Body:
|
|
719
|
+
|
|
720
|
+{
|
|
721
|
+ "MacAddrs":["187ED5311111_1", "187ED5322222_2"],
|
|
722
|
+ "StartYear":2021,
|
|
723
|
+ "StartMonth":3,
|
|
724
|
+ "StartDay":1,
|
|
725
|
+ "StartHour":0,
|
|
726
|
+ "EndYear":2021,
|
|
727
|
+ "EndMonth":3,
|
|
728
|
+ "EndDay":5,
|
|
729
|
+ "EndHour":0
|
|
730
|
+}
|
|
731
|
+
|
|
732
|
+```
|
|
733
|
+
|
|
734
|
+响应
|
|
735
|
+
|
|
736
|
+```
|
|
737
|
+{
|
|
738
|
+ "data": {
|
|
739
|
+ "powers": {
|
|
740
|
+ "2021-03-01 00:00:00.000": 0.72,
|
|
741
|
+ "2021-03-01 01:00:00.000": 0.72,
|
|
742
|
+ "2021-03-01 02:00:00.000": 0.72,
|
|
743
|
+ "2021-03-01 03:00:00.000": 0.72,
|
|
744
|
+ "2021-03-01 04:00:00.000": 0.72,
|
|
745
|
+ "2021-03-01 05:00:00.000": 0.72,
|
|
746
|
+ "2021-03-01 06:00:00.000": 0.72,
|
|
747
|
+ "2021-03-01 07:00:00.000": 0.72,
|
|
748
|
+ "2021-03-01 08:00:00.000": 0.72,
|
|
749
|
+ "2021-03-01 09:00:00.000": 0.72,
|
|
750
|
+ "2021-03-01 10:00:00.000": 0.72,
|
|
751
|
+ "2021-03-01 11:00:00.000": 0.72,
|
|
752
|
+ "2021-03-01 12:00:00.000": 0.72,
|
|
753
|
+ "2021-03-01 13:00:00.000": 0.72,
|
|
754
|
+ "2021-03-01 14:00:00.000": 0.72,
|
|
755
|
+ "2021-03-01 15:00:00.000": 0.72,
|
|
756
|
+ "2021-03-01 16:00:00.000": 0.72,
|
|
757
|
+ "2021-03-01 17:00:00.000": 0.72,
|
|
758
|
+ "2021-03-01 18:00:00.000": 0.72,
|
|
759
|
+ "2021-03-01 19:00:00.000": 0.72,
|
|
760
|
+ "2021-03-01 20:00:00.000": 0.72,
|
|
761
|
+ "2021-03-01 21:00:00.000": 0.72,
|
|
762
|
+ "2021-03-01 22:00:00.000": 0.72,
|
|
763
|
+ "2021-03-01 23:00:00.000": 0.72,
|
|
764
|
+ "2021-03-02 00:00:00.000": 0.72,
|
|
765
|
+ "2021-03-02 01:00:00.000": 0.72,
|
|
766
|
+ "2021-03-02 02:00:00.000": 0.72,
|
|
767
|
+ "2021-03-02 03:00:00.000": 0.72,
|
|
768
|
+ "2021-03-02 04:00:00.000": 0.72,
|
|
769
|
+ "2021-03-02 05:00:00.000": 0.72,
|
|
770
|
+ "2021-03-02 06:00:00.000": 0.72,
|
|
771
|
+ "2021-03-02 07:00:00.000": 0.72,
|
|
772
|
+ "2021-03-02 08:00:00.000": 0.72,
|
|
773
|
+ "2021-03-02 09:00:00.000": 0.72,
|
|
774
|
+ "2021-03-02 10:00:00.000": 0.72,
|
|
775
|
+ "2021-03-02 11:00:00.000": 0.72,
|
|
776
|
+ "2021-03-02 12:00:00.000": 0.72,
|
|
777
|
+ "2021-03-02 13:00:00.000": 0.72,
|
|
778
|
+ "2021-03-02 14:00:00.000": 0.72,
|
|
779
|
+ "2021-03-02 15:00:00.000": 0.72,
|
|
780
|
+ "2021-03-02 16:00:00.000": 0.72,
|
|
781
|
+ "2021-03-02 17:00:00.000": 0.72,
|
|
782
|
+ "2021-03-02 18:00:00.000": 0.72,
|
|
783
|
+ "2021-03-02 19:00:00.000": 0.72,
|
|
784
|
+ "2021-03-02 20:00:00.000": 0.72,
|
|
785
|
+ "2021-03-02 21:00:00.000": 0.72,
|
|
786
|
+ "2021-03-02 22:00:00.000": 0.72,
|
|
787
|
+ "2021-03-02 23:00:00.000": 0.72,
|
|
788
|
+ "2021-03-03 00:00:00.000": 0.72,
|
|
789
|
+ "2021-03-03 01:00:00.000": 0.72,
|
|
790
|
+ "2021-03-03 02:00:00.000": 0.72,
|
|
791
|
+ "2021-03-03 03:00:00.000": 0.72,
|
|
792
|
+ "2021-03-03 04:00:00.000": 0.72,
|
|
793
|
+ "2021-03-03 05:00:00.000": 0.72,
|
|
794
|
+ "2021-03-03 06:00:00.000": 0.72,
|
|
795
|
+ "2021-03-03 07:00:00.000": 0.72,
|
|
796
|
+ "2021-03-03 08:00:00.000": 0.72,
|
|
797
|
+ "2021-03-03 09:00:00.000": 0.72,
|
|
798
|
+ "2021-03-03 10:00:00.000": 0.72,
|
|
799
|
+ "2021-03-03 11:00:00.000": 0.72,
|
|
800
|
+ "2021-03-03 12:00:00.000": 0.72,
|
|
801
|
+ "2021-03-03 13:00:00.000": 0.72,
|
|
802
|
+ "2021-03-03 14:00:00.000": 0.72,
|
|
803
|
+ "2021-03-03 15:00:00.000": 0.72,
|
|
804
|
+ "2021-03-03 16:00:00.000": 0.72,
|
|
805
|
+ "2021-03-03 17:00:00.000": 0.72,
|
|
806
|
+ "2021-03-03 18:00:00.000": 0.72,
|
|
807
|
+ "2021-03-03 19:00:00.000": 0.72,
|
|
808
|
+ "2021-03-03 20:00:00.000": 0.72,
|
|
809
|
+ "2021-03-03 21:00:00.000": 0.72,
|
|
810
|
+ "2021-03-03 22:00:00.000": 0.72,
|
|
811
|
+ "2021-03-03 23:00:00.000": 0.72,
|
|
812
|
+ "2021-03-04 00:00:00.000": 0.72,
|
|
813
|
+ "2021-03-04 01:00:00.000": 0.72,
|
|
814
|
+ "2021-03-04 02:00:00.000": 0.72,
|
|
815
|
+ "2021-03-04 03:00:00.000": 0.72,
|
|
816
|
+ "2021-03-04 04:00:00.000": 0.72,
|
|
817
|
+ "2021-03-04 05:00:00.000": 0.72,
|
|
818
|
+ "2021-03-04 06:00:00.000": 0.72,
|
|
819
|
+ "2021-03-04 07:00:00.000": 0.72,
|
|
820
|
+ "2021-03-04 08:00:00.000": 0.72,
|
|
821
|
+ "2021-03-04 09:00:00.000": 0.72,
|
|
822
|
+ "2021-03-04 10:00:00.000": 0.72,
|
|
823
|
+ "2021-03-04 11:00:00.000": 0.72,
|
|
824
|
+ "2021-03-04 12:00:00.000": 0.72,
|
|
825
|
+ "2021-03-04 13:00:00.000": 0.72,
|
|
826
|
+ "2021-03-04 14:00:00.000": 0.72,
|
|
827
|
+ "2021-03-04 15:00:00.000": 0.72,
|
|
828
|
+ "2021-03-04 16:00:00.000": 0.72,
|
|
829
|
+ "2021-03-04 17:00:00.000": 0.72,
|
|
830
|
+ "2021-03-04 18:00:00.000": 0.72,
|
|
831
|
+ "2021-03-04 19:00:00.000": 0.72,
|
|
832
|
+ "2021-03-04 20:00:00.000": 0.72,
|
|
833
|
+ "2021-03-04 21:00:00.000": 0.72,
|
|
834
|
+ "2021-03-04 22:00:00.000": 0.72,
|
|
835
|
+ "2021-03-04 23:00:00.000": 0.72,
|
|
836
|
+ "2021-03-05 00:00:00.000": 0.72
|
|
837
|
+ }
|
|
838
|
+ },
|
|
839
|
+ "isError": false,
|
|
840
|
+ "message": "success",
|
|
841
|
+ "code": 200
|
|
842
|
+}
|
|
843
|
+```
|
|
844
|
+
|