Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [
- {
- "id": "5d5bbaa0.5b9b24",
- "type": "tab",
- "label": "[K3_P17 - Klimawächter]",
- "disabled": false,
- "info": "https://pastebin.com/edit/DegbLw4h"
- },
- {
- "id": "6c115ba9.c0ac64",
- "type": "function",
- "z": "5d5bbaa0.5b9b24",
- "name": "ADC to Tempertur (C)",
- "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; ",
- "outputs": 1,
- "noerr": 0,
- "x": 720,
- "y": 100,
- "wires": [
- [
- "eee5361d.7b89f8"
- ]
- ]
- },
- {
- "id": "dd5862f2.d479b",
- "type": "mqtt in",
- "z": "5d5bbaa0.5b9b24",
- "name": "",
- "topic": "NodeESP/[PID]/out",
- "qos": "2",
- "broker": "9ddb0d28.ac643",
- "x": 150,
- "y": 160,
- "wires": [
- [
- "80fea863.ee94a8"
- ]
- ]
- },
- {
- "id": "80fea863.ee94a8",
- "type": "json",
- "z": "5d5bbaa0.5b9b24",
- "name": "",
- "property": "payload",
- "action": "",
- "pretty": false,
- "x": 330,
- "y": 160,
- "wires": [
- [
- "84ab8c2.559047",
- "ec5dd8bb.d3d858",
- "da6300d2.f1f64"
- ]
- ]
- },
- {
- "id": "e81ac96b.903f48",
- "type": "file",
- "z": "5d5bbaa0.5b9b24",
- "name": "",
- "filename": "climadata.txt",
- "appendNewline": true,
- "createDir": true,
- "overwriteFile": "false",
- "x": 950,
- "y": 360,
- "wires": []
- },
- {
- "id": "84ab8c2.559047",
- "type": "template",
- "z": "5d5bbaa0.5b9b24",
- "name": "Temperatur",
- "field": "payload",
- "fieldType": "msg",
- "format": "handlebars",
- "syntax": "mustache",
- "template": "{{payload.Temp}}",
- "output": "str",
- "x": 510,
- "y": 100,
- "wires": [
- [
- "6c115ba9.c0ac64"
- ]
- ]
- },
- {
- "id": "eee5361d.7b89f8",
- "type": "change",
- "z": "5d5bbaa0.5b9b24",
- "name": "globalTemp",
- "rules": [
- {
- "t": "set",
- "p": "temp",
- "pt": "flow",
- "to": "payload",
- "tot": "msg"
- }
- ],
- "action": "",
- "property": "",
- "from": "",
- "to": "",
- "reg": false,
- "x": 930,
- "y": 100,
- "wires": [
- [
- "d31b3edf.9036"
- ]
- ]
- },
- {
- "id": "5f58ad74.8f48d4",
- "type": "join",
- "z": "5d5bbaa0.5b9b24",
- "name": "",
- "mode": "custom",
- "build": "string",
- "property": "payload",
- "propertyType": "msg",
- "key": "topic",
- "joiner": ",",
- "joinerType": "str",
- "accumulate": false,
- "timeout": "1",
- "count": "3",
- "reduceRight": false,
- "reduceExp": "",
- "reduceInit": "",
- "reduceInitType": "num",
- "reduceFixup": "",
- "x": 730,
- "y": 360,
- "wires": [
- [
- "e81ac96b.903f48"
- ]
- ]
- },
- {
- "id": "ec5dd8bb.d3d858",
- "type": "template",
- "z": "5d5bbaa0.5b9b24",
- "name": "Humidity",
- "field": "payload",
- "fieldType": "msg",
- "format": "handlebars",
- "syntax": "mustache",
- "template": "{{payload.HUMIDITY}}",
- "output": "str",
- "x": 500,
- "y": 160,
- "wires": [
- [
- "5a4104d9.a54e2c"
- ]
- ]
- },
- {
- "id": "da6300d2.f1f64",
- "type": "template",
- "z": "5d5bbaa0.5b9b24",
- "name": "Brightness",
- "field": "payload",
- "fieldType": "msg",
- "format": "handlebars",
- "syntax": "mustache",
- "template": "{{payload.Light}}",
- "output": "str",
- "x": 510,
- "y": 220,
- "wires": [
- [
- "e6ebcccd.ac25b"
- ]
- ]
- },
- {
- "id": "5a4104d9.a54e2c",
- "type": "change",
- "z": "5d5bbaa0.5b9b24",
- "name": "globalHum",
- "rules": [
- {
- "t": "set",
- "p": "hum",
- "pt": "flow",
- "to": "payload",
- "tot": "msg"
- }
- ],
- "action": "",
- "property": "",
- "from": "",
- "to": "",
- "reg": false,
- "x": 930,
- "y": 160,
- "wires": [
- [
- "4c0dd8f4.ae5278"
- ]
- ]
- },
- {
- "id": "e6ebcccd.ac25b",
- "type": "change",
- "z": "5d5bbaa0.5b9b24",
- "name": "globalBright",
- "rules": [
- {
- "t": "set",
- "p": "bright",
- "pt": "flow",
- "to": "payload",
- "tot": "msg"
- }
- ],
- "action": "",
- "property": "",
- "from": "",
- "to": "",
- "reg": false,
- "x": 930,
- "y": 220,
- "wires": [
- [
- "163ea713.39de99"
- ]
- ]
- },
- {
- "id": "d31b3edf.9036",
- "type": "ui_gauge",
- "z": "5d5bbaa0.5b9b24",
- "name": "",
- "group": "7096db74.5fa594",
- "order": 1,
- "width": "4",
- "height": "4",
- "gtype": "gage",
- "title": "Temperture",
- "label": "C",
- "format": "{{value}}",
- "min": "-20",
- "max": "+50",
- "colors": [
- "#00b500",
- "#e6e600",
- "#ca3838"
- ],
- "seg1": "",
- "seg2": "",
- "x": 1150,
- "y": 100,
- "wires": []
- },
- {
- "id": "4c0dd8f4.ae5278",
- "type": "ui_gauge",
- "z": "5d5bbaa0.5b9b24",
- "name": "",
- "group": "7096db74.5fa594",
- "order": 2,
- "width": "4",
- "height": "4",
- "gtype": "gage",
- "title": "Humidity",
- "label": "%",
- "format": "{{value}}",
- "min": 0,
- "max": "100",
- "colors": [
- "#00b500",
- "#e6e600",
- "#ca3838"
- ],
- "seg1": "",
- "seg2": "",
- "x": 1140,
- "y": 160,
- "wires": []
- },
- {
- "id": "163ea713.39de99",
- "type": "ui_gauge",
- "z": "5d5bbaa0.5b9b24",
- "name": "",
- "group": "7096db74.5fa594",
- "order": 3,
- "width": "4",
- "height": "4",
- "gtype": "gage",
- "title": "Brightness",
- "label": "",
- "format": "{{value}}",
- "min": 0,
- "max": "4095",
- "colors": [
- "#00b500",
- "#e6e600",
- "#ca3838"
- ],
- "seg1": "",
- "seg2": "",
- "x": 1150,
- "y": 220,
- "wires": []
- },
- {
- "id": "a1d647f8.2853c8",
- "type": "change",
- "z": "5d5bbaa0.5b9b24",
- "name": "globalTemp",
- "rules": [
- {
- "t": "set",
- "p": "payload",
- "pt": "msg",
- "to": "temp",
- "tot": "flow"
- }
- ],
- "action": "",
- "property": "",
- "from": "",
- "to": "",
- "reg": false,
- "x": 510,
- "y": 300,
- "wires": [
- [
- "5f58ad74.8f48d4"
- ]
- ]
- },
- {
- "id": "b4666607.695408",
- "type": "change",
- "z": "5d5bbaa0.5b9b24",
- "name": "globalHum",
- "rules": [
- {
- "t": "set",
- "p": "payload",
- "pt": "msg",
- "to": "hum",
- "tot": "flow"
- }
- ],
- "action": "",
- "property": "",
- "from": "",
- "to": "",
- "reg": false,
- "x": 510,
- "y": 360,
- "wires": [
- [
- "5f58ad74.8f48d4"
- ]
- ]
- },
- {
- "id": "5629ee87.dd611",
- "type": "change",
- "z": "5d5bbaa0.5b9b24",
- "name": "globalBright",
- "rules": [
- {
- "t": "set",
- "p": "payload",
- "pt": "msg",
- "to": "bright",
- "tot": "flow"
- }
- ],
- "action": "",
- "property": "",
- "from": "",
- "to": "",
- "reg": false,
- "x": 510,
- "y": 420,
- "wires": [
- [
- "5f58ad74.8f48d4"
- ]
- ]
- },
- {
- "id": "c6213049.1772c",
- "type": "inject",
- "z": "5d5bbaa0.5b9b24",
- "name": "",
- "topic": "",
- "payload": "",
- "payloadType": "date",
- "repeat": "300",
- "crontab": "",
- "once": false,
- "onceDelay": 0.1,
- "x": 270,
- "y": 360,
- "wires": [
- [
- "a1d647f8.2853c8",
- "b4666607.695408",
- "5629ee87.dd611"
- ]
- ]
- },
- {
- "id": "9ddb0d28.ac643",
- "type": "mqtt-broker",
- "z": "",
- "name": "fkainka.de",
- "broker": "broker.fkainka.de",
- "port": "1883",
- "clientid": "",
- "usetls": false,
- "compatmode": true,
- "keepalive": "60",
- "cleansession": true,
- "willTopic": "",
- "willQos": "0",
- "willPayload": "",
- "birthTopic": "",
- "birthQos": "0",
- "birthPayload": ""
- },
- {
- "id": "7096db74.5fa594",
- "type": "ui_group",
- "z": "",
- "name": "[K3_P17 - Klimawächter]",
- "tab": "c811824a.f033d",
- "order": 1,
- "disp": true,
- "width": "12",
- "collapse": false
- },
- {
- "id": "c811824a.f033d",
- "type": "ui_tab",
- "z": "",
- "name": "[K3_P17]",
- "icon": "dashboard",
- "order": 17
- }
- ]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement