-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathassignment1.json
70 lines (70 loc) · 1.64 KB
/
assignment1.json
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
[
{
"id": "8a4056f4.ce53d8",
"type": "tab",
"label": "Flow 2"
},
{
"id": "9cb00c0a.90753",
"type": "inject",
"z": "8a4056f4.ce53d8",
"name": "Inject",
"topic": "",
"payload": "",
"payloadType": "date",
"repeat": "5",
"crontab": "",
"once": false,
"x": 150,
"y": 100,
"wires": [
[
"54283d75.a8b224"
]
]
},
{
"id": "2a857221.1acd4e",
"type": "debug",
"z": "8a4056f4.ce53d8",
"name": "",
"active": false,
"console": "false",
"complete": "false",
"x": 665,
"y": 100,
"wires": []
},
{
"id": "a784e8f8.066448",
"type": "function",
"z": "8a4056f4.ce53d8",
"name": "generate output",
"func": "if ( msg.payload < 5)\n{\n return {\"payload\" : \"Number \" + msg.payload + \" is a low number\"};\n}\nelse\n{\n return {\"payload\" : \"Number \" + msg.payload + \" is a high number\"};\n}",
"outputs": 1,
"noerr": 0,
"x": 480,
"y": 100,
"wires": [
[
"2a857221.1acd4e"
]
]
},
{
"id": "54283d75.a8b224",
"type": "random",
"z": "8a4056f4.ce53d8",
"name": "Random int",
"low": "1",
"high": "10",
"inte": "true",
"x": 299,
"y": 100,
"wires": [
[
"a784e8f8.066448"
]
]
}
]