WuGuan commited on
Commit
5591bde
·
verified ·
1 Parent(s): 4995062

Update flows.json

Browse files
Files changed (1) hide show
  1. flows.json +282 -6
flows.json CHANGED
@@ -7,6 +7,65 @@
7
  "info": "",
8
  "env": []
9
  },
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
10
  {
11
  "id": "2be99c2fa62e6f44",
12
  "type": "inject",
@@ -29,7 +88,7 @@
29
  "payload": "object",
30
  "payloadType": "date",
31
  "x": 140,
32
- "y": 60,
33
  "wires": [
34
  [
35
  "bfdbf3a6d111494f"
@@ -53,7 +112,7 @@
53
  "senderr": false,
54
  "headers": [],
55
  "x": 330,
56
- "y": 60,
57
  "wires": [
58
  []
59
  ]
@@ -62,6 +121,7 @@
62
  "id": "f4826d0f354203d0",
63
  "type": "weather",
64
  "z": "fa36f2aea8694548",
 
65
  "name": "银川",
66
  "longitude": "106.183878",
67
  "latitude": "38.499847",
@@ -83,6 +143,7 @@
83
  "id": "b649fa1a86929334",
84
  "type": "inject",
85
  "z": "fa36f2aea8694548",
 
86
  "name": "",
87
  "props": [
88
  {
@@ -101,7 +162,7 @@
101
  "payload": "",
102
  "payloadType": "date",
103
  "x": 140,
104
- "y": 160,
105
  "wires": [
106
  [
107
  "f4826d0f354203d0"
@@ -112,6 +173,7 @@
112
  "id": "cc9e2f34477b9732",
113
  "type": "http request",
114
  "z": "fa36f2aea8694548",
 
115
  "name": "Weather_alerts",
116
  "method": "POST",
117
  "ret": "obj",
@@ -125,7 +187,7 @@
125
  "senderr": false,
126
  "headers": [],
127
  "x": 820,
128
- "y": 120,
129
  "wires": [
130
  []
131
  ]
@@ -134,6 +196,7 @@
134
  "id": "40f4dade103f33fb",
135
  "type": "rbe",
136
  "z": "fa36f2aea8694548",
 
137
  "name": "",
138
  "func": "rbe",
139
  "gap": "",
@@ -143,7 +206,7 @@
143
  "property": "payload",
144
  "topi": "topic",
145
  "x": 650,
146
- "y": 120,
147
  "wires": [
148
  [
149
  "cc9e2f34477b9732"
@@ -154,6 +217,7 @@
154
  "id": "28ad21785d1d88ea",
155
  "type": "function",
156
  "z": "fa36f2aea8694548",
 
157
  "name": "预警信息筛选",
158
  "func": "\n\n// 检查预警数据有效性 \nif (!msg.payload.alerts || msg.payload.alerts.length === 0) {\n node.warn(\" 预警信息为空\");\n return null;\n}\n \ntry {\n // 解构赋值提取预警数据(含默认值)\n const { type = \"未知\", level = \"\", detail = \"暂无详细内容\" } = msg.payload.alerts[0] || {};\n \n // 重构 payload \n msg.payload = {\n title: `${type}${level}预警`,\n message: detail.replace(/\\n/g, \" \") // 去除换行符 \n };\n \n // 添加固定头部 \n msg.headers = {\n \"X-Title\": \"Weather_alerts\",\n \"X-Priority\": \"3\", // 根据目标服务调整优先级 \n \"tags\": \"house\"\n };\n \n return msg;\n} catch (error) {\n node.error(\" 预警数据处理失败:\", error);\n return null;\n}",
159
  "outputs": 1,
@@ -163,11 +227,223 @@
163
  "finalize": "",
164
  "libs": [],
165
  "x": 480,
166
- "y": 120,
167
  "wires": [
168
  [
169
  "40f4dade103f33fb"
170
  ]
171
  ]
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
172
  }
173
  ]
 
7
  "info": "",
8
  "env": []
9
  },
10
+ {
11
+ "id": "7b954761b0d0c71d",
12
+ "type": "group",
13
+ "z": "fa36f2aea8694548",
14
+ "name": "天气预警",
15
+ "style": {
16
+ "label": true
17
+ },
18
+ "nodes": [
19
+ "f4826d0f354203d0",
20
+ "b649fa1a86929334",
21
+ "cc9e2f34477b9732",
22
+ "40f4dade103f33fb",
23
+ "28ad21785d1d88ea"
24
+ ],
25
+ "x": 34,
26
+ "y": 81.5,
27
+ "w": 892,
28
+ "h": 157
29
+ },
30
+ {
31
+ "id": "249a6593b77d86f9",
32
+ "type": "group",
33
+ "z": "fa36f2aea8694548",
34
+ "name": "停车计时",
35
+ "style": {
36
+ "label": true
37
+ },
38
+ "nodes": [
39
+ "3669dccf88588c53",
40
+ "337dce259e3f40ec",
41
+ "1c6ca2674ef8a478",
42
+ "21747cce1c8e8b69"
43
+ ],
44
+ "x": 34,
45
+ "y": 299,
46
+ "w": 652,
47
+ "h": 82
48
+ },
49
+ {
50
+ "id": "d1a03a3787fecadc",
51
+ "type": "group",
52
+ "z": "fa36f2aea8694548",
53
+ "name": "ACQ",
54
+ "style": {
55
+ "label": true
56
+ },
57
+ "nodes": [
58
+ "9d78ce6e52ba16d5",
59
+ "af54b1e122b3b1be",
60
+ "74761521d6f20043",
61
+ "2ecbefab5b092fcd",
62
+ "1d78dc7e20a94f0f"
63
+ ],
64
+ "x": 34,
65
+ "y": 419,
66
+ "w": 752,
67
+ "h": 82
68
+ },
69
  {
70
  "id": "2be99c2fa62e6f44",
71
  "type": "inject",
 
88
  "payload": "object",
89
  "payloadType": "date",
90
  "x": 140,
91
+ "y": 40,
92
  "wires": [
93
  [
94
  "bfdbf3a6d111494f"
 
112
  "senderr": false,
113
  "headers": [],
114
  "x": 330,
115
+ "y": 40,
116
  "wires": [
117
  []
118
  ]
 
121
  "id": "f4826d0f354203d0",
122
  "type": "weather",
123
  "z": "fa36f2aea8694548",
124
+ "g": "7b954761b0d0c71d",
125
  "name": "银川",
126
  "longitude": "106.183878",
127
  "latitude": "38.499847",
 
143
  "id": "b649fa1a86929334",
144
  "type": "inject",
145
  "z": "fa36f2aea8694548",
146
+ "g": "7b954761b0d0c71d",
147
  "name": "",
148
  "props": [
149
  {
 
162
  "payload": "",
163
  "payloadType": "date",
164
  "x": 140,
165
+ "y": 180,
166
  "wires": [
167
  [
168
  "f4826d0f354203d0"
 
173
  "id": "cc9e2f34477b9732",
174
  "type": "http request",
175
  "z": "fa36f2aea8694548",
176
+ "g": "7b954761b0d0c71d",
177
  "name": "Weather_alerts",
178
  "method": "POST",
179
  "ret": "obj",
 
187
  "senderr": false,
188
  "headers": [],
189
  "x": 820,
190
+ "y": 140,
191
  "wires": [
192
  []
193
  ]
 
196
  "id": "40f4dade103f33fb",
197
  "type": "rbe",
198
  "z": "fa36f2aea8694548",
199
+ "g": "7b954761b0d0c71d",
200
  "name": "",
201
  "func": "rbe",
202
  "gap": "",
 
206
  "property": "payload",
207
  "topi": "topic",
208
  "x": 650,
209
+ "y": 140,
210
  "wires": [
211
  [
212
  "cc9e2f34477b9732"
 
217
  "id": "28ad21785d1d88ea",
218
  "type": "function",
219
  "z": "fa36f2aea8694548",
220
+ "g": "7b954761b0d0c71d",
221
  "name": "预警信息筛选",
222
  "func": "\n\n// 检查预警数据有效性 \nif (!msg.payload.alerts || msg.payload.alerts.length === 0) {\n node.warn(\" 预警信息为空\");\n return null;\n}\n \ntry {\n // 解构赋值提取预警数据(含默认值)\n const { type = \"未知\", level = \"\", detail = \"暂无详细内容\" } = msg.payload.alerts[0] || {};\n \n // 重构 payload \n msg.payload = {\n title: `${type}${level}预警`,\n message: detail.replace(/\\n/g, \" \") // 去除换行符 \n };\n \n // 添加固定头部 \n msg.headers = {\n \"X-Title\": \"Weather_alerts\",\n \"X-Priority\": \"3\", // 根据目标服务调整优先级 \n \"tags\": \"house\"\n };\n \n return msg;\n} catch (error) {\n node.error(\" 预警数据处理失败:\", error);\n return null;\n}",
223
  "outputs": 1,
 
227
  "finalize": "",
228
  "libs": [],
229
  "x": 480,
230
+ "y": 140,
231
  "wires": [
232
  [
233
  "40f4dade103f33fb"
234
  ]
235
  ]
236
+ },
237
+ {
238
+ "id": "3669dccf88588c53",
239
+ "type": "http request",
240
+ "z": "fa36f2aea8694548",
241
+ "g": "249a6593b77d86f9",
242
+ "name": "顺泊停车",
243
+ "method": "GET",
244
+ "ret": "txt",
245
+ "paytoqs": "ignore",
246
+ "url": "https://yinchuan.ttpark.cn/MobileServer/general/order/calFee?parkID=0&plate=%E5%AE%81A0B7K2&plateColor=1&autoCancel=1&appServletRequestType=openid&payAppID=106&sceneType=9&wxlite_token=f69f798ac2a7e29fed0aa77c19b5e365",
247
+ "tls": "",
248
+ "persist": false,
249
+ "proxy": "",
250
+ "insecureHTTPParser": false,
251
+ "authType": "",
252
+ "senderr": false,
253
+ "headers": [],
254
+ "x": 280,
255
+ "y": 340,
256
+ "wires": [
257
+ [
258
+ "21747cce1c8e8b69"
259
+ ]
260
+ ]
261
+ },
262
+ {
263
+ "id": "337dce259e3f40ec",
264
+ "type": "debug",
265
+ "z": "fa36f2aea8694548",
266
+ "g": "249a6593b77d86f9",
267
+ "name": "debug 1",
268
+ "active": true,
269
+ "tosidebar": true,
270
+ "console": false,
271
+ "tostatus": false,
272
+ "complete": "false",
273
+ "statusVal": "",
274
+ "statusType": "auto",
275
+ "x": 580,
276
+ "y": 340,
277
+ "wires": []
278
+ },
279
+ {
280
+ "id": "1c6ca2674ef8a478",
281
+ "type": "inject",
282
+ "z": "fa36f2aea8694548",
283
+ "g": "249a6593b77d86f9",
284
+ "name": "",
285
+ "props": [
286
+ {
287
+ "p": "payload"
288
+ },
289
+ {
290
+ "p": "topic",
291
+ "vt": "str"
292
+ }
293
+ ],
294
+ "repeat": "300",
295
+ "crontab": "",
296
+ "once": false,
297
+ "onceDelay": 0.1,
298
+ "topic": "",
299
+ "payload": "",
300
+ "payloadType": "date",
301
+ "x": 140,
302
+ "y": 340,
303
+ "wires": [
304
+ [
305
+ "3669dccf88588c53"
306
+ ]
307
+ ]
308
+ },
309
+ {
310
+ "id": "21747cce1c8e8b69",
311
+ "type": "json",
312
+ "z": "fa36f2aea8694548",
313
+ "g": "249a6593b77d86f9",
314
+ "name": "",
315
+ "property": "payload",
316
+ "action": "",
317
+ "pretty": false,
318
+ "x": 430,
319
+ "y": 340,
320
+ "wires": [
321
+ [
322
+ "337dce259e3f40ec"
323
+ ]
324
+ ]
325
+ },
326
+ {
327
+ "id": "9d78ce6e52ba16d5",
328
+ "type": "http request",
329
+ "z": "fa36f2aea8694548",
330
+ "g": "d1a03a3787fecadc",
331
+ "name": "",
332
+ "method": "GET",
333
+ "ret": "txt",
334
+ "paytoqs": "ignore",
335
+ "url": "https://api.zhileit.com/api/v1/web/bg/scpCarOwnerInfo/getShopBySwsKeyNew?cwsName=null&coordinate=106.18224662045463%2C38.49661166683154&pageSize=50&pageIndex=1",
336
+ "tls": "",
337
+ "persist": false,
338
+ "proxy": "",
339
+ "insecureHTTPParser": false,
340
+ "authType": "",
341
+ "senderr": false,
342
+ "headers": [
343
+ {
344
+ "keyType": "other",
345
+ "keyValue": "CWS_BELONGING_KEY",
346
+ "valueType": "other",
347
+ "valueValue": "75C642B47E0276CDDDA9A0BCA1BE65EB"
348
+ }
349
+ ],
350
+ "x": 280,
351
+ "y": 460,
352
+ "wires": [
353
+ [
354
+ "74761521d6f20043"
355
+ ]
356
+ ]
357
+ },
358
+ {
359
+ "id": "af54b1e122b3b1be",
360
+ "type": "inject",
361
+ "z": "fa36f2aea8694548",
362
+ "g": "d1a03a3787fecadc",
363
+ "name": "",
364
+ "props": [
365
+ {
366
+ "p": "payload"
367
+ },
368
+ {
369
+ "p": "topic",
370
+ "vt": "str"
371
+ }
372
+ ],
373
+ "repeat": "300",
374
+ "crontab": "",
375
+ "once": false,
376
+ "onceDelay": 0.1,
377
+ "topic": "",
378
+ "payload": "",
379
+ "payloadType": "date",
380
+ "x": 140,
381
+ "y": 460,
382
+ "wires": [
383
+ [
384
+ "9d78ce6e52ba16d5"
385
+ ]
386
+ ]
387
+ },
388
+ {
389
+ "id": "1d78dc7e20a94f0f",
390
+ "type": "http request",
391
+ "z": "fa36f2aea8694548",
392
+ "g": "d1a03a3787fecadc",
393
+ "name": "ACQdata",
394
+ "method": "POST",
395
+ "ret": "txt",
396
+ "paytoqs": "ignore",
397
+ "url": "https://push.727283671.xyz:4443/ACQdata",
398
+ "tls": "",
399
+ "persist": false,
400
+ "proxy": "",
401
+ "insecureHTTPParser": false,
402
+ "authType": "",
403
+ "senderr": false,
404
+ "headers": [],
405
+ "x": 700,
406
+ "y": 460,
407
+ "wires": [
408
+ []
409
+ ]
410
+ },
411
+ {
412
+ "id": "74761521d6f20043",
413
+ "type": "json",
414
+ "z": "fa36f2aea8694548",
415
+ "g": "d1a03a3787fecadc",
416
+ "name": "",
417
+ "property": "payload",
418
+ "action": "",
419
+ "pretty": true,
420
+ "x": 410,
421
+ "y": 460,
422
+ "wires": [
423
+ [
424
+ "2ecbefab5b092fcd"
425
+ ]
426
+ ]
427
+ },
428
+ {
429
+ "id": "2ecbefab5b092fcd",
430
+ "type": "function",
431
+ "z": "fa36f2aea8694548",
432
+ "g": "d1a03a3787fecadc",
433
+ "name": "function 1",
434
+ "func": "msg.payload = msg.payload.data.list\nreturn msg;",
435
+ "outputs": 1,
436
+ "timeout": 0,
437
+ "noerr": 0,
438
+ "initialize": "",
439
+ "finalize": "",
440
+ "libs": [],
441
+ "x": 540,
442
+ "y": 460,
443
+ "wires": [
444
+ [
445
+ "1d78dc7e20a94f0f"
446
+ ]
447
+ ]
448
  }
449
  ]