[ { "id": "b01442a4.a4b1d", "type": "debug", "z": "86e9d7ed.687b38", "name": "", "active": true, "console": "false", "complete": "payload", "x": 416, "y": 352, "wires": [] }, { "id": "44e95f1d.19d19", "type": "blynk-websockets-out-write", "z": "86e9d7ed.687b38", "name": "To Blynk Value widget", "pin": "1", "client": "dc8dbaac.720428", "x": 726, "y": 133, "wires": [] }, { "id": "65c35361.5741bc", "type": "function", "z": "86e9d7ed.687b38", "name": "Humidity %", "func": "// regarding how you setup the message from the arduino sensor, \n// the message must be split into a usable value for Blynk.\n\nvar str = msg.payload;\nvar res = Number(str.substring(9,16));\nmsg.payload=res;\nreturn msg;", "outputs": 1, "noerr": 0, "x": 416, "y": 103, "wires": [ [ "44e95f1d.19d19", "ffbe1e22.21d51" ] ] }, { "id": "ce22c122.48843", "type": "function", "z": "86e9d7ed.687b38", "name": "Temperature", "func": "// regarding how you setup the message from the arduino sensor, \n// the message must be split into a usable value for Blynk.\nvar str = msg.payload;\nvar res = str.substring(25,29);\nmsg.payload=res;\nreturn msg;", "outputs": 1, "noerr": 0, "x": 415, "y": 206, "wires": [ [ "c61a403d.25a49", "b371137.cdc08f" ] ] }, { "id": "c61a403d.25a49", "type": "blynk-websockets-out-write", "z": "86e9d7ed.687b38", "name": "To Blynk Value widget", "pin": "2", "client": "dc8dbaac.720428", "x": 724, "y": 235, "wires": [] }, { "id": "2c2be9e9.6a8ed6", "type": "comment", "z": "86e9d7ed.687b38", "name": "Remark", "info": "Serial connection:\nWhen you have no permission to use the serial connection, enter this command to your linux console.\n\nsudo adduser dialout (Replace Myuser to your user)\nsudo chmod a+rw /dev/ttyUSB0", "x": 75, "y": 171, "wires": [] }, { "id": "a0af4d8d.516e2", "type": "comment", "z": "86e9d7ed.687b38", "name": "Remark", "info": "Project Key: Enter Your autorisation key here given from Blynk ", "x": 682, "y": 26, "wires": [] }, { "id": "5ee01932.b07488", "type": "inject", "z": "86e9d7ed.687b38", "name": "", "topic": "Request Humidity/Temp", "payload": "dht-read", "payloadType": "str", "repeat": "60", "crontab": "", "once": false, "x": 176, "y": 507, "wires": [ [ "8f9c739c.89a4e" ] ] }, { "id": "dceab9c9.9de4e8", "type": "serial in", "z": "86e9d7ed.687b38", "name": "Read message from LoRa arduino", "serial": "a3256381.c8cc7", "x": 166, "y": 212, "wires": [ [ "65c35361.5741bc", "ce22c122.48843", "9b6da92b.248558", "b01442a4.a4b1d" ] ] }, { "id": "8f9c739c.89a4e", "type": "serial out", "z": "86e9d7ed.687b38", "name": "Write message to LoRa arduino", "serial": "a3256381.c8cc7", "x": 763, "y": 573, "wires": [] }, { "id": "b371137.cdc08f", "type": "blynk-websockets-out-write", "z": "86e9d7ed.687b38", "name": "To Blynk Graph widget", "pin": "4", "client": "dc8dbaac.720428", "x": 726, "y": 183, "wires": [] }, { "id": "ffbe1e22.21d51", "type": "blynk-websockets-out-write", "z": "86e9d7ed.687b38", "name": "To Blynk Graph widget", "pin": "3", "client": "dc8dbaac.720428", "x": 726, "y": 82, "wires": [] }, { "id": "e1ed3340.94965", "type": "blynk-websockets-out-write", "z": "86e9d7ed.687b38", "name": "To Blynk value widget", "pin": "5", "client": "dc8dbaac.720428", "x": 728, "y": 287, "wires": [] }, { "id": "9b6da92b.248558", "type": "function", "z": "86e9d7ed.687b38", "name": "Voltage", "func": "// regarding how you setup the message from the arduino sensor, \n// the message must be split into a usable value for Blynk.\nvar str = msg.payload;\nvar res = Number(str.substring(47,52));\nmsg.payload=res;\nreturn msg;", "outputs": 1, "noerr": 0, "x": 409, "y": 289, "wires": [ [ "e1ed3340.94965" ] ] }, { "id": "ac12f910.95b9e8", "type": "blynk-websockets-in-write", "z": "86e9d7ed.687b38", "name": "", "pin": "6", "client": "dc8dbaac.720428", "x": 116, "y": 607, "wires": [ [ "ffc8fc43.ef26a" ] ] }, { "id": "ffc8fc43.ef26a", "type": "function", "z": "86e9d7ed.687b38", "name": "Convert received text", "func": "var str = msg.payload;\nif(str==1)\n{\n res=\"sw1-on\";\n} else \n{\n res=\"sw1-off\";\n}\nmsg.payload=res;\nreturn msg;", "outputs": 1, "noerr": 0, "x": 358, "y": 607, "wires": [ [ "8f9c739c.89a4e" ] ] }, { "id": "dc8dbaac.720428", "type": "blynk-websockets-client", "z": "", "name": "Blynk", "path": "ws://blynk-cloud.com:8082/websocket", "key": "Enter your auth token here...." }, { "id": "a3256381.c8cc7", "type": "serial-port", "z": "", "serialport": "/dev/ttyUSB0", "serialbaud": "9600", "databits": "8", "parity": "none", "stopbits": "1", "newline": "\\n", "bin": "false", "out": "char", "addchar": false } ]