-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathPi-SenseHat-Ingress.Node-RED.json
More file actions
120 lines (115 loc) · 2.62 KB
/
Copy pathPi-SenseHat-Ingress.Node-RED.json
File metadata and controls
120 lines (115 loc) · 2.62 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
112
113
114
115
116
117
118
119
120
[
{
"id":"b981928e.7704",
"type":"http in",
"z":"a437cbc7.3344b",
"name":"sense-hat POST",
"url":"/sense-hat",
"method":"post",
"upload":false,
"swaggerDoc":"",
"x":120,
"y":260,
"wires":[
[
"48952e65.ff6a4",
"c99d8c5a.a91178"
]
]
},
{
"id":"48952e65.ff6a4",
"type":"http response",
"z":"a437cbc7.3344b",
"name":"",
"statusCode":"200",
"headers":{
"done":"OK-MRB"
},
"x":700,
"y":260,
"wires":[
]
},
{
"id":"c99d8c5a.a91178",
"type":"function",
"z":"a437cbc7.3344b",
"name":"temp and humidity preparation",
"func":"if( msg.payload === false ) {\n return null;\n}\n \nvar msg1 = {};\nvar msg2 = {};\nvar msg3 = {};\n\nmsg1.payload = msg.payload.temp*1.00;\nmsg1.topic = \"Centigrade\";\nmsg2.payload = ((msg.payload.temp*1.00) * 9/5) + 32;\nmsg2.topic = \"Farenheit\";\nmsg3.payload = msg.payload.humidity*1.00;\nmsg3.topic = \"Humidity\";\n\nreturn [msg1, msg2, msg3];",
"outputs":3,
"noerr":0,
"x":410,
"y":360,
"wires":[
[
"31d46f5a.96bce"
],
[
"54abc0d5.191c68"
],
[
"b1b315ff.e31798"
]
]
},
{
"id":"31d46f5a.96bce",
"type":"debug",
"z":"a437cbc7.3344b",
"name":"Centigrade ",
"active":true,
"tosidebar":true,
"console":false,
"tostatus":false,
"complete":"payload",
"targetType":"msg",
"x":910,
"y":320,
"wires":[
]
},
{
"id":"54abc0d5.191c68",
"type":"debug",
"z":"a437cbc7.3344b",
"name":"Farenheit ",
"active":true,
"tosidebar":true,
"console":false,
"tostatus":false,
"complete":"payload",
"targetType":"msg",
"x":900,
"y":360,
"wires":[
]
},
{
"id":"b1b315ff.e31798",
"type":"debug",
"z":"a437cbc7.3344b",
"name":"Humidity",
"active":true,
"tosidebar":true,
"console":false,
"tostatus":false,
"complete":"payload",
"targetType":"msg",
"x":900,
"y":400,
"wires":[
]
},
{
"id":"b98c23c1.0f3bd",
"type":"comment",
"z":"a437cbc7.3344b",
"name":"Getting environmental data off Raspberry Pi 3 with a Sense Hat",
"info":"",
"x":270,
"y":220,
"wires":[
]
}
]