SHOW:
|
|
- or go back to the newest paste.
1 | [ | |
2 | { | |
3 | - | "id": "5d126330.53e04c", |
3 | + | "id": "5d5bbaa0.5b9b24", |
4 | "type": "tab", | |
5 | - | "label": "Day22_RoomClimate", |
5 | + | "label": "[K3_P17 - Klimawächter]", |
6 | - | "disabled": true, |
6 | + | "disabled": false, |
7 | - | "info": "" |
7 | + | "info": "https://pastebin.com/edit/DegbLw4h" |
8 | }, | |
9 | { | |
10 | - | "id": "b5da6e10.e163b", |
10 | + | "id": "6c115ba9.c0ac64", |
11 | "type": "function", | |
12 | - | "z": "5d126330.53e04c", |
12 | + | "z": "5d5bbaa0.5b9b24", |
13 | "name": "ADC to Tempertur (C)", | |
14 | - | "func": "var RawADC = msg.payload;\nvar Temp = Math.log(10000.0 * ((4095.0 / RawADC )));\n\nTemp = 1 / (0.001129148 + (0.000234125 + (0.0000000876741 * Temp * Temp )) * Temp );\nTemp = 273.15-Temp; // Convert Kelvin to Celcius\n // Temp = (Temp * 9.0)/ 4.7 + 32.0; // Convert Celcius to Fahrenheit\n \nTemp = Math.round(Temp*10);\nTemp = Temp/ 10;\n\nmsg.payload = Temp;\nreturn msg;", |
14 | + | "func": "var RawADC = msg.payload;\n\nRt = (10000*(RawADC/4095))/(1-(RawADC/4095))\nTk = 1/ ((1/298.15)+(1/3435)*Math.log(Rt/10000))\nT = Tk-273.15 \n\nTemp = Math.round(T*10);\nTemp = Temp/ 10;\n\nmsg.payload = Temp;\nreturn msg; ", |
15 | "outputs": 1, | |
16 | "noerr": 0, | |
17 | "x": 720, | |
18 | "y": 100, | |
19 | "wires": [ | |
20 | [ | |
21 | - | "b5c47c85.35748" |
21 | + | "eee5361d.7b89f8" |
22 | ] | |
23 | ] | |
24 | }, | |
25 | { | |
26 | - | "id": "fcab523.ae4edb", |
26 | + | "id": "dd5862f2.d479b", |
27 | "type": "mqtt in", | |
28 | - | "z": "5d126330.53e04c", |
28 | + | "z": "5d5bbaa0.5b9b24", |
29 | "name": "", | |
30 | "topic": "NodeESP/[PID]/out", | |
31 | "qos": "2", | |
32 | - | "broker": "3c53c9b8.8965a6", |
32 | + | "broker": "9ddb0d28.ac643", |
33 | "x": 150, | |
34 | "y": 160, | |
35 | "wires": [ | |
36 | [ | |
37 | - | "48180cd5.648194" |
37 | + | "80fea863.ee94a8" |
38 | ] | |
39 | ] | |
40 | }, | |
41 | { | |
42 | - | "id": "48180cd5.648194", |
42 | + | "id": "80fea863.ee94a8", |
43 | "type": "json", | |
44 | - | "z": "5d126330.53e04c", |
44 | + | "z": "5d5bbaa0.5b9b24", |
45 | "name": "", | |
46 | "property": "payload", | |
47 | "action": "", | |
48 | "pretty": false, | |
49 | "x": 330, | |
50 | "y": 160, | |
51 | "wires": [ | |
52 | [ | |
53 | - | "2c62a675.3f81ca", |
53 | + | "84ab8c2.559047", |
54 | - | "1c1ad919.074e57", |
54 | + | "ec5dd8bb.d3d858", |
55 | - | "8091b88b.42c1d8" |
55 | + | "da6300d2.f1f64" |
56 | ] | |
57 | ] | |
58 | }, | |
59 | { | |
60 | - | "id": "34d1d326.1ccc1c", |
60 | + | "id": "e81ac96b.903f48", |
61 | "type": "file", | |
62 | - | "z": "5d126330.53e04c", |
62 | + | "z": "5d5bbaa0.5b9b24", |
63 | "name": "", | |
64 | "filename": "climadata.txt", | |
65 | "appendNewline": true, | |
66 | "createDir": true, | |
67 | "overwriteFile": "false", | |
68 | "x": 950, | |
69 | "y": 360, | |
70 | "wires": [] | |
71 | }, | |
72 | { | |
73 | - | "id": "2c62a675.3f81ca", |
73 | + | "id": "84ab8c2.559047", |
74 | "type": "template", | |
75 | - | "z": "5d126330.53e04c", |
75 | + | "z": "5d5bbaa0.5b9b24", |
76 | "name": "Temperatur", | |
77 | "field": "payload", | |
78 | "fieldType": "msg", | |
79 | "format": "handlebars", | |
80 | "syntax": "mustache", | |
81 | "template": "{{payload.Temp}}", | |
82 | "output": "str", | |
83 | "x": 510, | |
84 | "y": 100, | |
85 | "wires": [ | |
86 | [ | |
87 | - | "b5da6e10.e163b" |
87 | + | "6c115ba9.c0ac64" |
88 | ] | |
89 | ] | |
90 | }, | |
91 | { | |
92 | - | "id": "b5c47c85.35748", |
92 | + | "id": "eee5361d.7b89f8", |
93 | "type": "change", | |
94 | - | "z": "5d126330.53e04c", |
94 | + | "z": "5d5bbaa0.5b9b24", |
95 | "name": "globalTemp", | |
96 | "rules": [ | |
97 | { | |
98 | "t": "set", | |
99 | "p": "temp", | |
100 | "pt": "flow", | |
101 | "to": "payload", | |
102 | "tot": "msg" | |
103 | } | |
104 | ], | |
105 | "action": "", | |
106 | "property": "", | |
107 | "from": "", | |
108 | "to": "", | |
109 | "reg": false, | |
110 | "x": 930, | |
111 | "y": 100, | |
112 | "wires": [ | |
113 | [ | |
114 | - | "5b9da520.1a2cec" |
114 | + | "d31b3edf.9036" |
115 | ] | |
116 | ] | |
117 | }, | |
118 | { | |
119 | - | "id": "9265bfc3.daa89", |
119 | + | "id": "5f58ad74.8f48d4", |
120 | "type": "join", | |
121 | - | "z": "5d126330.53e04c", |
121 | + | "z": "5d5bbaa0.5b9b24", |
122 | "name": "", | |
123 | "mode": "custom", | |
124 | "build": "string", | |
125 | "property": "payload", | |
126 | "propertyType": "msg", | |
127 | "key": "topic", | |
128 | "joiner": ",", | |
129 | "joinerType": "str", | |
130 | "accumulate": false, | |
131 | "timeout": "1", | |
132 | "count": "3", | |
133 | "reduceRight": false, | |
134 | "reduceExp": "", | |
135 | "reduceInit": "", | |
136 | "reduceInitType": "num", | |
137 | "reduceFixup": "", | |
138 | "x": 730, | |
139 | "y": 360, | |
140 | "wires": [ | |
141 | [ | |
142 | - | "34d1d326.1ccc1c" |
142 | + | "e81ac96b.903f48" |
143 | ] | |
144 | ] | |
145 | }, | |
146 | { | |
147 | - | "id": "1c1ad919.074e57", |
147 | + | "id": "ec5dd8bb.d3d858", |
148 | "type": "template", | |
149 | - | "z": "5d126330.53e04c", |
149 | + | "z": "5d5bbaa0.5b9b24", |
150 | "name": "Humidity", | |
151 | "field": "payload", | |
152 | "fieldType": "msg", | |
153 | "format": "handlebars", | |
154 | "syntax": "mustache", | |
155 | "template": "{{payload.HUMIDITY}}", | |
156 | "output": "str", | |
157 | "x": 500, | |
158 | "y": 160, | |
159 | "wires": [ | |
160 | [ | |
161 | - | "855fff7f.64ee5" |
161 | + | "5a4104d9.a54e2c" |
162 | ] | |
163 | ] | |
164 | }, | |
165 | { | |
166 | - | "id": "8091b88b.42c1d8", |
166 | + | "id": "da6300d2.f1f64", |
167 | "type": "template", | |
168 | - | "z": "5d126330.53e04c", |
168 | + | "z": "5d5bbaa0.5b9b24", |
169 | "name": "Brightness", | |
170 | "field": "payload", | |
171 | "fieldType": "msg", | |
172 | "format": "handlebars", | |
173 | "syntax": "mustache", | |
174 | "template": "{{payload.Light}}", | |
175 | "output": "str", | |
176 | "x": 510, | |
177 | "y": 220, | |
178 | "wires": [ | |
179 | [ | |
180 | - | "5cf910b9.30c41" |
180 | + | "e6ebcccd.ac25b" |
181 | ] | |
182 | ] | |
183 | }, | |
184 | { | |
185 | - | "id": "855fff7f.64ee5", |
185 | + | "id": "5a4104d9.a54e2c", |
186 | "type": "change", | |
187 | - | "z": "5d126330.53e04c", |
187 | + | "z": "5d5bbaa0.5b9b24", |
188 | "name": "globalHum", | |
189 | "rules": [ | |
190 | { | |
191 | "t": "set", | |
192 | "p": "hum", | |
193 | "pt": "flow", | |
194 | "to": "payload", | |
195 | "tot": "msg" | |
196 | } | |
197 | ], | |
198 | "action": "", | |
199 | "property": "", | |
200 | "from": "", | |
201 | "to": "", | |
202 | "reg": false, | |
203 | "x": 930, | |
204 | "y": 160, | |
205 | "wires": [ | |
206 | [ | |
207 | - | "72646da5.cf0024" |
207 | + | "4c0dd8f4.ae5278" |
208 | ] | |
209 | ] | |
210 | }, | |
211 | { | |
212 | - | "id": "5cf910b9.30c41", |
212 | + | "id": "e6ebcccd.ac25b", |
213 | "type": "change", | |
214 | - | "z": "5d126330.53e04c", |
214 | + | "z": "5d5bbaa0.5b9b24", |
215 | "name": "globalBright", | |
216 | "rules": [ | |
217 | { | |
218 | "t": "set", | |
219 | "p": "bright", | |
220 | "pt": "flow", | |
221 | "to": "payload", | |
222 | "tot": "msg" | |
223 | } | |
224 | ], | |
225 | "action": "", | |
226 | "property": "", | |
227 | "from": "", | |
228 | "to": "", | |
229 | "reg": false, | |
230 | "x": 930, | |
231 | "y": 220, | |
232 | "wires": [ | |
233 | [ | |
234 | - | "77254fda.40455" |
234 | + | "163ea713.39de99" |
235 | ] | |
236 | ] | |
237 | }, | |
238 | { | |
239 | - | "id": "5b9da520.1a2cec", |
239 | + | "id": "d31b3edf.9036", |
240 | "type": "ui_gauge", | |
241 | - | "z": "5d126330.53e04c", |
241 | + | "z": "5d5bbaa0.5b9b24", |
242 | "name": "", | |
243 | - | "group": "bff59e30.75c0d", |
243 | + | "group": "7096db74.5fa594", |
244 | "order": 1, | |
245 | "width": "4", | |
246 | "height": "4", | |
247 | "gtype": "gage", | |
248 | "title": "Temperture", | |
249 | "label": "C", | |
250 | "format": "{{value}}", | |
251 | "min": "-20", | |
252 | "max": "+50", | |
253 | "colors": [ | |
254 | "#00b500", | |
255 | "#e6e600", | |
256 | "#ca3838" | |
257 | ], | |
258 | "seg1": "", | |
259 | "seg2": "", | |
260 | "x": 1150, | |
261 | "y": 100, | |
262 | "wires": [] | |
263 | }, | |
264 | { | |
265 | - | "id": "72646da5.cf0024", |
265 | + | "id": "4c0dd8f4.ae5278", |
266 | "type": "ui_gauge", | |
267 | - | "z": "5d126330.53e04c", |
267 | + | "z": "5d5bbaa0.5b9b24", |
268 | "name": "", | |
269 | - | "group": "bff59e30.75c0d", |
269 | + | "group": "7096db74.5fa594", |
270 | "order": 2, | |
271 | "width": "4", | |
272 | "height": "4", | |
273 | "gtype": "gage", | |
274 | "title": "Humidity", | |
275 | "label": "%", | |
276 | "format": "{{value}}", | |
277 | "min": 0, | |
278 | "max": "100", | |
279 | "colors": [ | |
280 | "#00b500", | |
281 | "#e6e600", | |
282 | "#ca3838" | |
283 | ], | |
284 | "seg1": "", | |
285 | "seg2": "", | |
286 | "x": 1140, | |
287 | "y": 160, | |
288 | "wires": [] | |
289 | }, | |
290 | { | |
291 | - | "id": "77254fda.40455", |
291 | + | "id": "163ea713.39de99", |
292 | "type": "ui_gauge", | |
293 | - | "z": "5d126330.53e04c", |
293 | + | "z": "5d5bbaa0.5b9b24", |
294 | "name": "", | |
295 | - | "group": "bff59e30.75c0d", |
295 | + | "group": "7096db74.5fa594", |
296 | "order": 3, | |
297 | "width": "4", | |
298 | "height": "4", | |
299 | "gtype": "gage", | |
300 | "title": "Brightness", | |
301 | "label": "", | |
302 | "format": "{{value}}", | |
303 | "min": 0, | |
304 | "max": "4095", | |
305 | "colors": [ | |
306 | "#00b500", | |
307 | "#e6e600", | |
308 | "#ca3838" | |
309 | ], | |
310 | "seg1": "", | |
311 | "seg2": "", | |
312 | "x": 1150, | |
313 | "y": 220, | |
314 | "wires": [] | |
315 | }, | |
316 | { | |
317 | - | "id": "13f93747.c39299", |
317 | + | "id": "a1d647f8.2853c8", |
318 | "type": "change", | |
319 | - | "z": "5d126330.53e04c", |
319 | + | "z": "5d5bbaa0.5b9b24", |
320 | "name": "globalTemp", | |
321 | "rules": [ | |
322 | { | |
323 | "t": "set", | |
324 | "p": "payload", | |
325 | "pt": "msg", | |
326 | "to": "temp", | |
327 | "tot": "flow" | |
328 | } | |
329 | ], | |
330 | "action": "", | |
331 | "property": "", | |
332 | "from": "", | |
333 | "to": "", | |
334 | "reg": false, | |
335 | "x": 510, | |
336 | "y": 300, | |
337 | "wires": [ | |
338 | [ | |
339 | - | "9265bfc3.daa89" |
339 | + | "5f58ad74.8f48d4" |
340 | ] | |
341 | ] | |
342 | }, | |
343 | { | |
344 | - | "id": "356c6e5c.e02d82", |
344 | + | "id": "b4666607.695408", |
345 | "type": "change", | |
346 | - | "z": "5d126330.53e04c", |
346 | + | "z": "5d5bbaa0.5b9b24", |
347 | "name": "globalHum", | |
348 | "rules": [ | |
349 | { | |
350 | "t": "set", | |
351 | "p": "payload", | |
352 | "pt": "msg", | |
353 | "to": "hum", | |
354 | "tot": "flow" | |
355 | } | |
356 | ], | |
357 | "action": "", | |
358 | "property": "", | |
359 | "from": "", | |
360 | "to": "", | |
361 | "reg": false, | |
362 | "x": 510, | |
363 | "y": 360, | |
364 | "wires": [ | |
365 | [ | |
366 | - | "9265bfc3.daa89" |
366 | + | "5f58ad74.8f48d4" |
367 | ] | |
368 | ] | |
369 | }, | |
370 | { | |
371 | - | "id": "4cea8261.db708c", |
371 | + | "id": "5629ee87.dd611", |
372 | "type": "change", | |
373 | - | "z": "5d126330.53e04c", |
373 | + | "z": "5d5bbaa0.5b9b24", |
374 | "name": "globalBright", | |
375 | "rules": [ | |
376 | { | |
377 | "t": "set", | |
378 | "p": "payload", | |
379 | "pt": "msg", | |
380 | "to": "bright", | |
381 | "tot": "flow" | |
382 | } | |
383 | ], | |
384 | "action": "", | |
385 | "property": "", | |
386 | "from": "", | |
387 | "to": "", | |
388 | "reg": false, | |
389 | "x": 510, | |
390 | "y": 420, | |
391 | "wires": [ | |
392 | [ | |
393 | - | "9265bfc3.daa89" |
393 | + | "5f58ad74.8f48d4" |
394 | ] | |
395 | ] | |
396 | }, | |
397 | { | |
398 | - | "id": "33027fb9.7486", |
398 | + | "id": "c6213049.1772c", |
399 | "type": "inject", | |
400 | - | "z": "5d126330.53e04c", |
400 | + | "z": "5d5bbaa0.5b9b24", |
401 | "name": "", | |
402 | "topic": "", | |
403 | "payload": "", | |
404 | "payloadType": "date", | |
405 | "repeat": "300", | |
406 | "crontab": "", | |
407 | "once": false, | |
408 | "onceDelay": 0.1, | |
409 | "x": 270, | |
410 | "y": 360, | |
411 | "wires": [ | |
412 | [ | |
413 | - | "13f93747.c39299", |
413 | + | "a1d647f8.2853c8", |
414 | - | "356c6e5c.e02d82", |
414 | + | "b4666607.695408", |
415 | - | "4cea8261.db708c" |
415 | + | "5629ee87.dd611" |
416 | ] | |
417 | ] | |
418 | }, | |
419 | { | |
420 | - | "id": "3c53c9b8.8965a6", |
420 | + | "id": "9ddb0d28.ac643", |
421 | "type": "mqtt-broker", | |
422 | "z": "", | |
423 | "name": "fkainka.de", | |
424 | "broker": "broker.fkainka.de", | |
425 | "port": "1883", | |
426 | "clientid": "", | |
427 | "usetls": false, | |
428 | "compatmode": true, | |
429 | "keepalive": "60", | |
430 | "cleansession": true, | |
431 | "willTopic": "", | |
432 | "willQos": "0", | |
433 | "willPayload": "", | |
434 | "birthTopic": "", | |
435 | "birthQos": "0", | |
436 | "birthPayload": "" | |
437 | }, | |
438 | { | |
439 | - | "id": "bff59e30.75c0d", |
439 | + | "id": "7096db74.5fa594", |
440 | "type": "ui_group", | |
441 | "z": "", | |
442 | - | "name": "[Day22] Room clima", |
442 | + | "name": "[K3_P17 - Klimawächter]", |
443 | - | "tab": "fd9a409e.42e8c", |
443 | + | "tab": "c811824a.f033d", |
444 | "order": 1, | |
445 | "disp": true, | |
446 | "width": "12", | |
447 | "collapse": false | |
448 | }, | |
449 | { | |
450 | - | "id": "fd9a409e.42e8c", |
450 | + | "id": "c811824a.f033d", |
451 | "type": "ui_tab", | |
452 | "z": "", | |
453 | - | "name": "Day22", |
453 | + | "name": "[K3_P17]", |
454 | "icon": "dashboard", | |
455 | "order": 17 | |
456 | } | |
457 | ] |