-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathexample.json
More file actions
111 lines (111 loc) · 2.53 KB
/
example.json
File metadata and controls
111 lines (111 loc) · 2.53 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
[
{
"id": "c4c3036aef9199c1",
"type": "tab",
"label": "Flow 1",
"disabled": false,
"info": "",
"env": []
},
{
"id": "0d2b03e37be8d8d6",
"type": "exec",
"z": "c4c3036aef9199c1",
"command": "./real",
"addpay": "payload",
"append": "",
"useSpawn": "false",
"timer": "30",
"winHide": false,
"oldrc": false,
"name": "",
"x": 470,
"y": 140,
"wires": [
[
"503b2713e6f39ecf"
],
[],
[]
]
},
{
"id": "503b2713e6f39ecf",
"type": "function",
"z": "c4c3036aef9199c1",
"name": "Slice",
"func": "var bigArray = msg.payload.split(\"/\");\nvar myArray = [];\nfor(let i in bigArray){\n myArray.push((bigArray[i].slice(0, -1)).split(\" \"));\n}\n\nmyArray.pop();\n\nmsg.payload = myArray;\nreturn msg;",
"outputs": 1,
"noerr": 0,
"initialize": "",
"finalize": "",
"libs": [],
"x": 630,
"y": 140,
"wires": [
[
"d04e535647daeb81"
]
]
},
{
"id": "907bc9f3f50ce9c7",
"type": "function",
"z": "c4c3036aef9199c1",
"name": "ModbusPoll",
"func": "msg.payload = \"127.0.0.1 20804 2000 100 127.0.0.1 20806 2000 100\";\nreturn msg;",
"outputs": 1,
"noerr": 0,
"initialize": "",
"finalize": "",
"libs": [],
"x": 290,
"y": 140,
"wires": [
[
"0d2b03e37be8d8d6"
]
]
},
{
"id": "73ed9a897e43b4f6",
"type": "inject",
"z": "c4c3036aef9199c1",
"name": "",
"props": [
{
"p": "int",
"v": "0",
"vt": "num"
}
],
"repeat": "",
"crontab": "",
"once": false,
"onceDelay": "30",
"topic": "",
"x": 130,
"y": 140,
"wires": [
[
"907bc9f3f50ce9c7"
]
]
},
{
"id": "d04e535647daeb81",
"type": "debug",
"z": "c4c3036aef9199c1",
"name": "debug 19",
"active": true,
"tosidebar": true,
"console": false,
"tostatus": false,
"complete": "false",
"statusVal": "",
"statusType": "auto",
"x": 800,
"y": 140,
"wires": []
}
]