Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [
- {
- "id": "cffbb72d.4ef0e8",
- "type": "tab",
- "label": "フロー 1",
- "disabled": false,
- "info": ""
- },
- {
- "id": "a37c570d.f986e8",
- "type": "rpi-dht22",
- "z": "cffbb72d.4ef0e8",
- "name": "",
- "topic": "rpi-dht22",
- "dht": "11",
- "pintype": "0",
- "pin": "25",
- "x": 460,
- "y": 480,
- "wires": [
- [
- "b710bde1.cdd0b"
- ]
- ]
- },
- {
- "id": "cbf0f01d.cf3cd",
- "type": "wiotp out",
- "z": "cffbb72d.4ef0e8",
- "authType": "d",
- "qs": "false",
- "qsDeviceId": "",
- "deviceKey": "6a80010c.60957",
- "deviceType": "",
- "deviceId": "",
- "event": "event",
- "format": "json",
- "qos": "",
- "name": "",
- "x": 770,
- "y": 500,
- "wires": []
- },
- {
- "id": "b710bde1.cdd0b",
- "type": "function",
- "z": "cffbb72d.4ef0e8",
- "name": "",
- "func": "msg.payload = {\n \"temp\" : msg.payload,\n \"humi\" : msg.humidity,\n}\nreturn msg;",
- "outputs": 1,
- "noerr": 0,
- "x": 610,
- "y": 480,
- "wires": [
- [
- "cbf0f01d.cf3cd"
- ]
- ]
- },
- {
- "id": "b1c3aa8a.608198",
- "type": "wiotp in",
- "z": "cffbb72d.4ef0e8",
- "authType": "d",
- "deviceKey": "////////./////",
- "deviceType": "",
- "deviceId": "",
- "command": "+",
- "commandType": "g",
- "qos": 0,
- "name": "",
- "x": 130,
- "y": 500,
- "wires": [
- [
- "1897a9cd.494e36",
- "69541771.4e9728"
- ]
- ]
- },
- {
- "id": "1897a9cd.494e36",
- "type": "switch",
- "z": "cffbb72d.4ef0e8",
- "name": "",
- "property": "command",
- "propertyType": "msg",
- "rules": [
- {
- "t": "eq",
- "v": "dht",
- "vt": "str"
- },
- {
- "t": "eq",
- "v": "soil",
- "vt": "str"
- },
- {
- "t": "eq",
- "v": "check",
- "vt": "str"
- }
- ],
- "checkall": "true",
- "repair": false,
- "outputs": 3,
- "x": 290,
- "y": 500,
- "wires": [
- [
- "b5c42f81.c43ad"
- ],
- [
- "37a86949.4c6386"
- ],
- [
- "57ef7c8a.47b7d4",
- "a37c570d.f986e8"
- ]
- ]
- },
- {
- "id": "b5c42f81.c43ad",
- "type": "rpi-dht22",
- "z": "cffbb72d.4ef0e8",
- "name": "",
- "topic": "rpi-dht22",
- "dht": "11",
- "pintype": "0",
- "pin": "25",
- "x": 460,
- "y": 520,
- "wires": [
- [
- "255835cf.7e0fea"
- ]
- ]
- },
- {
- "id": "69541771.4e9728",
- "type": "debug",
- "z": "cffbb72d.4ef0e8",
- "name": "",
- "active": true,
- "tosidebar": true,
- "console": false,
- "tostatus": false,
- "complete": "true",
- "x": 310,
- "y": 580,
- "wires": []
- },
- {
- "id": "57ef7c8a.47b7d4",
- "type": "pimcp3008",
- "z": "cffbb72d.4ef0e8",
- "name": "",
- "dev": "3002",
- "pin": 0,
- "dnum": 0,
- "bus": 0,
- "x": 470,
- "y": 440,
- "wires": [
- [
- "228b518.4bb31ae"
- ]
- ]
- },
- {
- "id": "228b518.4bb31ae",
- "type": "function",
- "z": "cffbb72d.4ef0e8",
- "name": "",
- "func": "if(msg.payload > 410){\n var soil = \"dry\";\n}else if(nsg.payload < 330){\n var soil = \"water\";\n}else var soil = \"wet\";\n\nmsg.payload = {\n \"soil\" : soil,\n}\nreturn msg;",
- "outputs": 1,
- "noerr": 0,
- "x": 610,
- "y": 440,
- "wires": [
- [
- "cbf0f01d.cf3cd"
- ]
- ]
- },
- {
- "id": "37a86949.4c6386",
- "type": "pimcp3008",
- "z": "cffbb72d.4ef0e8",
- "name": "",
- "dev": "3002",
- "pin": 0,
- "dnum": 0,
- "bus": 0,
- "x": 470,
- "y": 560,
- "wires": [
- [
- "2ee439d0.2d72f6"
- ]
- ]
- },
- {
- "id": "2ee439d0.2d72f6",
- "type": "function",
- "z": "cffbb72d.4ef0e8",
- "name": "",
- "func": "if(msg.payload > 410){\n var soil = \"dry\";\n}else if(msg.payload < 300){\n var soil = \"water\";\n}else var soil = \"wet\";\n\nmsg.payload = {\n \"soilR\" : soil,\n}\nreturn msg;",
- "outputs": 1,
- "noerr": 0,
- "x": 610,
- "y": 560,
- "wires": [
- [
- "cbf0f01d.cf3cd"
- ]
- ]
- },
- {
- "id": "c0728c08.e674b",
- "type": "debug",
- "z": "cffbb72d.4ef0e8",
- "name": "",
- "active": true,
- "tosidebar": true,
- "console": false,
- "tostatus": false,
- "complete": "false",
- "x": 790,
- "y": 560,
- "wires": []
- },
- {
- "id": "255835cf.7e0fea",
- "type": "function",
- "z": "cffbb72d.4ef0e8",
- "name": "",
- "func": "msg.payload = {\n \"temp\" : msg.payload,\n \"humi\" : msg.humidity,\n}\nreturn msg;",
- "outputs": 1,
- "noerr": 0,
- "x": 610,
- "y": 520,
- "wires": [
- [
- "cbf0f01d.cf3cd"
- ]
- ]
- },
- {
- "id": "6a80010c.60957",
- "type": "wiotp-credentials",
- "z": "",
- "name": "",
- "org": "sxspno",
- "serverName": "",
- "devType": "RaspberryPi",
- "devId": "cact",
- "keepalive": "60",
- "cleansession": true,
- "tls": "",
- "usetls": false
- }
- ]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement