- ////////Celcius to Fahrenheit
- [
- {
- "id": "185f69ac261994d6",
- "type": "tab",
- "label": "Cps-Cel to Fah",
- "disabled": false,
- "info": "",
- "env": []
- },
- {
- "id": "22400181b95483a8",
- "type": "inject",
- "z": "185f69ac261994d6",
- "name": "",
- "props": [
- {
- "p": "payload"
- }
- ],
- "repeat": "",
- "crontab": "",
- "once": false,
- "onceDelay": 0.1,
- "topic": "",
- "payload": "60",
- "payloadType": "num",
- "x": 230,
- "y": 220,
- "wires": [
- [
- "e3acc237c0981547"
- ]
- ]
- },
- {
- "id": "e3acc237c0981547",
- "type": "function",
- "z": "185f69ac261994d6",
- "name": "Celsius to Fahrenheit",
- "func": "var celsius = msg.payload;\nvar fahrenheit = celsius * 9 / 5 + 32;\nmsg.payload = +celsius+\"°C is \" +fahrenheit+\"°F\";\nreturn msg;",
- "outputs": 1,
- "noerr": 0,
- "initialize": "",
- "finalize": "",
- "libs": [],
- "x": 520,
- "y": 220,
- "wires": [
- [
- "c416da242ad4e070"
- ]
- ]
- },
- {
- "id": "c416da242ad4e070",
- "type": "debug",
- "z": "185f69ac261994d6",
- "name": "Temperature Output",
- "active": true,
- "tosidebar": true,
- "console": false,
- "tostatus": false,
- "complete": "payload",
- "targetType": "msg",
- "statusVal": "",
- "statusType": "auto",
- "x": 840,
- "y": 220,
- "wires": []
- },
- {
- "id": "268d251001b27d94",
- "type": "comment",
- "z": "185f69ac261994d6",
- "name": "21BPS1271",
- "info": "",
- "x": 550,
- "y": 120,
- "wires": []
- }
- ]
- ///////////////Sum,Mul,Div
- [
- {
- "id": "fb275865028ea307",
- "type": "tab",
- "label": "Cps-Add,Mul",
- "disabled": false,
- "info": "",
- "env": []
- },
- {
- "id": "5b3fd97d.a15cc",
- "type": "function",
- "z": "fb275865028ea307",
- "name": "Sum, Multiplication, Subraction, Division",
- "func": "var a = msg.payload.a;\nvar b = msg.payload.b;\n\nvar sum = a + b;\nvar subration = a-b;\nvar multiplication = a * b;\nvar division = (b !== 0) ? a / b : 'Division by zero';\n\nvar result = {\n sum: sum,\n subraction: subration,\n multiplication: multiplication,\n division: division\n};\n\nmsg.payload = result;\n\nreturn msg;",
- "outputs": 1,
- "noerr": 0,
- "initialize": "",
- "finalize": "",
- "libs": [],
- "x": 580,
- "y": 280,
- "wires": [
- [
- "50fb2ff9.a13e88"
- ]
- ]
- },
- {
- "id": "4d203c53.47e6d8",
- "type": "inject",
- "z": "fb275865028ea307",
- "name": "Input Values",
- "props": [
- {
- "p": "payload.a",
- "v": "20",
- "vt": "num"
- },
- {
- "p": "payload.b",
- "v": "5",
- "vt": "num"
- }
- ],
- "repeat": "",
- "crontab": "",
- "once": false,
- "onceDelay": 0.1,
- "topic": "",
- "x": 250,
- "y": 280,
- "wires": [
- [
- "5b3fd97d.a15cc"
- ]
- ]
- },
- {
- "id": "50fb2ff9.a13e88",
- "type": "debug",
- "z": "fb275865028ea307",
- "name": "",
- "active": true,
- "tosidebar": true,
- "console": false,
- "tostatus": false,
- "complete": "payload",
- "targetType": "msg",
- "statusVal": "",
- "statusType": "auto",
- "x": 890,
- "y": 280,
- "wires": []
- },
- {
- "id": "4b421fcc8df96ae0",
- "type": "comment",
- "z": "fb275865028ea307",
- "name": "21BPS1271",
- "info": "",
- "x": 610,
- "y": 160,
- "wires": []
- }
- ]
- ////////Cube root and Square Root
- [
- {
- "id": "b1531c53c08fff9f",
- "type": "tab",
- "label": "Cps-Sq+Cube",
- "disabled": false,
- "info": "",
- "env": []
- },
- {
- "id": "a6dc43d4.219d58",
- "type": "inject",
- "z": "b1531c53c08fff9f",
- "name": "",
- "props": [
- {
- "p": "payload"
- }
- ],
- "repeat": "",
- "crontab": "",
- "once": false,
- "onceDelay": 0.1,
- "topic": "",
- "payload": "625",
- "payloadType": "num",
- "x": 230,
- "y": 240,
- "wires": [
- [
- "80e2aa9a.f1f2a8"
- ]
- ]
- },
- {
- "id": "80e2aa9a.f1f2a8",
- "type": "function",
- "z": "b1531c53c08fff9f",
- "name": "Square and Cube Roots",
- "func": "var number = msg.payload;\nvar squareRoot = Math.sqrt(number);\nvar cubeRoot = Math.pow(number, 1/3);\nvar result = {\n squareRoot:squareRoot,\n cubeRoot:cubeRoot\n};\n\nmsg.payload = result;\n\nreturn msg;",
- "outputs": 1,
- "noerr": 0,
- "initialize": "",
- "finalize": "",
- "libs": [],
- "x": 530,
- "y": 240,
- "wires": [
- [
- "78b663df.194b44"
- ]
- ]
- },
- {
- "id": "78b663df.194b44",
- "type": "debug",
- "z": "b1531c53c08fff9f",
- "name": "",
- "active": true,
- "tosidebar": true,
- "console": false,
- "tostatus": false,
- "complete": "payload",
- "targetType": "msg",
- "statusVal": "",
- "statusType": "auto",
- "x": 810,
- "y": 240,
- "wires": []
- },
- {
- "id": "596b9386a0f23b7b",
- "type": "comment",
- "z": "b1531c53c08fff9f",
- "name": "21BPS1271",
- "info": "",
- "x": 530,
- "y": 140,
- "wires": []
- }
- ]
- //////Check Temp and state the AC condition
- [
- {
- "id": "2ad37fc1e230affa",
- "type": "tab",
- "label": "Cps-Check Temp",
- "disabled": false,
- "info": "",
- "env": []
- },
- {
- "id": "a559083c5a93f164",
- "type": "inject",
- "z": "2ad37fc1e230affa",
- "name": "",
- "props": [
- {
- "p": "payload"
- }
- ],
- "repeat": "",
- "crontab": "",
- "once": false,
- "onceDelay": 0.1,
- "topic": "",
- "payload": "50",
- "payloadType": "num",
- "x": 110,
- "y": 180,
- "wires": [
- [
- "86807f187e2c5b49"
- ]
- ]
- },
- {
- "id": "86807f187e2c5b49",
- "type": "change",
- "z": "2ad37fc1e230affa",
- "name": "Set Temperature Flow Variable",
- "rules": [
- {
- "t": "set",
- "p": "temperature",
- "pt": "flow",
- "to": "payload",
- "tot": "msg"
- }
- ],
- "action": "",
- "property": "",
- "from": "",
- "to": "",
- "reg": false,
- "x": 370,
- "y": 180,
- "wires": [
- [
- "c0572917198be13a"
- ]
- ]
- },
- {
- "id": "c0572917198be13a",
- "type": "function",
- "z": "2ad37fc1e230affa",
- "name": "Check Temperature",
- "func": "var temperature = flow.get('temperature');\n\nif (temperature < 100) {\n msg.payload = \"AC should switch off\";\n} else {\n msg.payload = \"AC should on\";\n}\n\nreturn msg;",
- "outputs": 1,
- "noerr": 0,
- "initialize": "",
- "finalize": "",
- "libs": [],
- "x": 650,
- "y": 180,
- "wires": [
- [
- "b8288a0c448fc8bd"
- ]
- ]
- },
- {
- "id": "b8288a0c448fc8bd",
- "type": "debug",
- "z": "2ad37fc1e230affa",
- "name": "AC State",
- "active": true,
- "tosidebar": true,
- "console": false,
- "tostatus": false,
- "complete": "payload",
- "targetType": "msg",
- "statusVal": "",
- "statusType": "auto",
- "x": 880,
- "y": 180,
- "wires": []
- },
- {
- "id": "aea198cae2241d42",
- "type": "comment",
- "z": "2ad37fc1e230affa",
- "name": "21BPS1271",
- "info": "",
- "x": 530,
- "y": 80,
- "wires": []
- }
- ]
- ////////Control Speed
- [
- {
- "id": "2db746bb75d7e594",
- "type": "tab",
- "label": "Cps-Control Speed",
- "disabled": false,
- "info": "",
- "env": []
- },
- {
- "id": "c3e1922f.55cf08",
- "type": "inject",
- "z": "2db746bb75d7e594",
- "name": "",
- "props": [
- {
- "p": "payload"
- }
- ],
- "repeat": "",
- "crontab": "",
- "once": false,
- "onceDelay": 0.1,
- "topic": "",
- "payload": "55",
- "payloadType": "num",
- "x": 150,
- "y": 240,
- "wires": [
- [
- "a871acfe.eb6a08"
- ]
- ]
- },
- {
- "id": "a871acfe.eb6a08",
- "type": "change",
- "z": "2db746bb75d7e594",
- "name": "Set Speed Flow Variable",
- "rules": [
- {
- "t": "set",
- "p": "speed",
- "pt": "flow",
- "to": "payload",
- "tot": "msg"
- }
- ],
- "action": "",
- "property": "",
- "from": "",
- "to": "",
- "reg": false,
- "x": 430,
- "y": 240,
- "wires": [
- [
- "f3f4c292.862cd8"
- ]
- ]
- },
- {
- "id": "f3f4c292.862cd8",
- "type": "function",
- "z": "2db746bb75d7e594",
- "name": "Control Speed",
- "func": "var speed = flow.get('speed');\n\nif (speed > 80) {\n speed -= 10; \n} else {\n speed += 10; \n}\n\nmsg.payload =\"The updated speed is \"+speed;\n\nreturn msg;",
- "outputs": 1,
- "noerr": 0,
- "initialize": "",
- "finalize": "",
- "libs": [],
- "x": 700,
- "y": 240,
- "wires": [
- [
- "c899ecae.8ed0a"
- ]
- ]
- },
- {
- "id": "c899ecae.8ed0a",
- "type": "debug",
- "z": "2db746bb75d7e594",
- "name": "Updated Speed",
- "active": true,
- "tosidebar": true,
- "console": false,
- "tostatus": false,
- "complete": "payload",
- "targetType": "msg",
- "statusVal": "",
- "statusType": "auto",
- "x": 940,
- "y": 240,
- "wires": []
- },
- {
- "id": "44484e521046070a",
- "type": "comment",
- "z": "2db746bb75d7e594",
- "name": "21BPS1271",
- "info": "",
- "x": 570,
- "y": 160,
- "wires": []
- }
- ]
- //////OpenWeather API
- [
- {
- "id": "a7628093d9d28aea",
- "type": "tab",
- "label": "Flow 7",
- "disabled": false,
- "info": "",
- "env": []
- },
- {
- "id": "f0f0df1b878b4993",
- "type": "inject",
- "z": "a7628093d9d28aea",
- "name": "",
- "props": [
- {
- "p": "payload"
- },
- {
- "p": "topic",
- "vt": "str"
- }
- ],
- "repeat": "",
- "crontab": "",
- "once": true,
- "onceDelay": 0.1,
- "topic": "",
- "payload": "",
- "payloadType": "date",
- "x": 150,
- "y": 160,
- "wires": [
- [
- "05582f0faf31eb0f"
- ]
- ]
- },
- {
- "id": "05582f0faf31eb0f",
- "type": "openweathermap",
- "z": "a7628093d9d28aea",
- "name": "Weather Report_21BPS1271",
- "wtype": "current",
- "lon": "",
- "lat": "",
- "city": "Chennai",
- "country": "India",
- "language": "en",
- "x": 380,
- "y": 160,
- "wires": [
- [
- "cb63a79ecd52c8e3",
- "87bcf6885a27fd63"
- ]
- ]
- },
- {
- "id": "cb63a79ecd52c8e3",
- "type": "debug",
- "z": "a7628093d9d28aea",
- "name": "debug 15",
- "active": true,
- "tosidebar": true,
- "console": false,
- "tostatus": false,
- "complete": "payload",
- "targetType": "msg",
- "statusVal": "",
- "statusType": "auto",
- "x": 720,
- "y": 100,
- "wires": []
- },
- {
- "id": "87bcf6885a27fd63",
- "type": "ui_gauge",
- "z": "a7628093d9d28aea",
- "name": "Temperature in Celusis",
- "group": "0591eb429d5bceeb",
- "order": 2,
- "width": 0,
- "height": 0,
- "gtype": "gage",
- "title": "Temperature in Celusis",
- "label": "units",
- "format": "{{msg.payload.tempc}}",
- "min": 0,
- "max": "100",
- "colors": [
- "#00b500",
- "#e6e600",
- "#ca3838"
- ],
- "seg1": "",
- "seg2": "",
- "diff": false,
- "className": "",
- "x": 760,
- "y": 200,
- "wires": []
- },
- {
- "id": "03990b0cceb01e23",
- "type": "openweathermap in",
- "z": "a7628093d9d28aea",
- "name": "weathermapin",
- "wtype": "current",
- "lon": "",
- "lat": "",
- "city": "Chennai",
- "country": "India",
- "language": "en",
- "x": 150,
- "y": 320,
- "wires": [
- [
- "9021fa3014741f65",
- "37e4e50bad96e1da"
- ]
- ]
- },
- {
- "id": "9021fa3014741f65",
- "type": "debug",
- "z": "a7628093d9d28aea",
- "name": "debug 16",
- "active": true,
- "tosidebar": true,
- "console": false,
- "tostatus": false,
- "complete": "payload",
- "targetType": "msg",
- "statusVal": "",
- "statusType": "auto",
- "x": 380,
- "y": 280,
- "wires": []
- },
- {
- "id": "37e4e50bad96e1da",
- "type": "function",
- "z": "a7628093d9d28aea",
- "name": "function 8",
- "func": "if (msg.payload.weather == \"Clouds\") {\n msg.payload = \"Good Day! Have a Pleasant Stay\"\n return msg;\n} else if (msg.payload.weather == \"Rain\") {\n msg.payload = \"Stay Home Stay Safe! It is Raining\"\n return msg;\n}\nreturn null;",
- "outputs": 1,
- "noerr": 0,
- "initialize": "",
- "finalize": "",
- "libs": [],
- "x": 380,
- "y": 360,
- "wires": [
- [
- "871eeb936cecacd4",
- "3f468aac7b5d57a8"
- ]
- ]
- },
- {
- "id": "871eeb936cecacd4",
- "type": "debug",
- "z": "a7628093d9d28aea",
- "name": "debug 17",
- "active": true,
- "tosidebar": true,
- "console": false,
- "tostatus": false,
- "complete": "payload",
- "targetType": "msg",
- "statusVal": "",
- "statusType": "auto",
- "x": 640,
- "y": 300,
- "wires": []
- },
- {
- "id": "3f468aac7b5d57a8",
- "type": "ui_text",
- "z": "a7628093d9d28aea",
- "group": "0591eb429d5bceeb",
- "order": 3,
- "width": "5",
- "height": "3",
- "name": "text",
- "label": "text",
- "format": "{{msg.payload}}",
- "layout": "col-center",
- "className": "",
- "x": 630,
- "y": 400,
- "wires": []
- },
- {
- "id": "0591eb429d5bceeb",
- "type": "ui_group",
- "name": "Weather Report",
- "tab": "dd9a1b2e.07aee",
- "order": 1,
- "disp": true,
- "width": "6",
- "collapse": false,
- "className": ""
- },
- {
- "id": "dd9a1b2e.07aee",
- "type": "ui_tab",
- "name": "ThinkIOT",
- "icon": "dashboard",
- "order": 1,
- "disabled": false,
- "hidden": false
- }
- ]
- ///////Open Weather API with text node
- [
- {
- "id": "5855d0c84441da14",
- "type": "tab",
- "label": "Flow 17",
- "disabled": false,
- "info": "",
- "env": []
- },
- {
- "id": "dc1ac2db902753f7",
- "type": "inject",
- "z": "5855d0c84441da14",
- "name": "",
- "props": [
- {
- "p": "payload"
- },
- {
- "p": "topic",
- "vt": "str"
- }
- ],
- "repeat": "",
- "crontab": "",
- "once": true,
- "onceDelay": 0.1,
- "topic": "",
- "payload": "",
- "payloadType": "date",
- "x": 270,
- "y": 240,
- "wires": [
- [
- "0f4b93d1405f593e"
- ]
- ]
- },
- {
- "id": "07300cd3a3b59596",
- "type": "ui_gauge",
- "z": "5855d0c84441da14",
- "name": "Temperature in Celsius",
- "group": "7fb9b6660db04ea6",
- "order": 0,
- "width": 0,
- "height": 0,
- "gtype": "gage",
- "title": "Temperature in Celsius",
- "label": "units",
- "format": "{{msg.payload.tempc}}",
- "min": 0,
- "max": "100",
- "colors": [
- "#41f500",
- "#f5ed00",
- "#f50000"
- ],
- "seg1": "",
- "seg2": "",
- "diff": false,
- "className": "",
- "x": 840,
- "y": 340,
- "wires": [],
- "icon": "font-awesome/fa-wheelchair-alt"
- },
- {
- "id": "2e69171c97edfb4f",
- "type": "debug",
- "z": "5855d0c84441da14",
- "name": "debug 4",
- "active": true,
- "tosidebar": true,
- "console": false,
- "tostatus": false,
- "complete": "payload",
- "targetType": "msg",
- "statusVal": "",
- "statusType": "auto",
- "x": 820,
- "y": 240,
- "wires": []
- },
- {
- "id": "0f4b93d1405f593e",
- "type": "openweathermap",
- "z": "5855d0c84441da14",
- "name": "WeatherReport",
- "wtype": "current",
- "lon": "",
- "lat": "",
- "city": "Chennai",
- "country": "India",
- "language": "en",
- "x": 540,
- "y": 240,
- "wires": [
- [
- "f414aa5d428a78be",
- "2e69171c97edfb4f",
- "07300cd3a3b59596",
- "1bdbd564f1eb2446"
- ]
- ]
- },
- {
- "id": "f414aa5d428a78be",
- "type": "function",
- "z": "5855d0c84441da14",
- "name": "function 1",
- "func": "msg.payload=msg.payload.tempc\nreturn msg;",
- "outputs": 1,
- "noerr": 0,
- "initialize": "",
- "finalize": "",
- "libs": [],
- "x": 780,
- "y": 180,
- "wires": [
- [
- "3a93ae6486fd9ad8"
- ]
- ]
- },
- {
- "id": "1bdbd564f1eb2446",
- "type": "function",
- "z": "5855d0c84441da14",
- "name": "function 2",
- "func": "msg.payload = msg.payload.humidity\nreturn msg;",
- "outputs": 1,
- "noerr": 0,
- "initialize": "",
- "finalize": "",
- "libs": [],
- "x": 800,
- "y": 460,
- "wires": [
- [
- "2787bcbe9ec12e03"
- ]
- ]
- },
- {
- "id": "2787bcbe9ec12e03",
- "type": "ui_numeric",
- "z": "5855d0c84441da14",
- "name": "",
- "label": "Humidity Value",
- "tooltip": "",
- "group": "7fb9b6660db04ea6",
- "order": 3,
- "width": "0",
- "height": "0",
- "wrap": false,
- "passthru": true,
- "topic": "topic",
- "topicType": "msg",
- "format": "{{msg.payload.humidity}}",
- "min": 0,
- "max": "100",
- "step": 1,
- "className": "",
- "x": 1020,
- "y": 460,
- "wires": [
- []
- ]
- },
- {
- "id": "3a93ae6486fd9ad8",
- "type": "ui_chart",
- "z": "5855d0c84441da14",
- "name": "",
- "group": "7fb9b6660db04ea6",
- "order": 2,
- "width": "0",
- "height": "0",
- "label": "Temperature Chart",
- "chartType": "line",
- "legend": "false",
- "xformat": "HH:mm:ss",
- "interpolate": "linear",
- "nodata": "",
- "dot": false,
- "ymin": "0",
- "ymax": "100",
- "removeOlder": 1,
- "removeOlderPoints": "",
- "removeOlderUnit": "3600",
- "cutout": 0,
- "useOneColor": false,
- "useUTC": false,
- "colors": [
- "#1f77b4",
- "#aec7e8",
- "#ff7f0e",
- "#2ca02c",
- "#98df8a",
- "#d62728",
- "#ff9896",
- "#9467bd",
- "#c5b0d5"
- ],
- "outputs": 1,
- "useDifferentColor": false,
- "className": "",
- "x": 1010,
- "y": 120,
- "wires": [
- [
- "fbfbca4889300c97"
- ]
- ]
- },
- {
- "id": "fbfbca4889300c97",
- "type": "debug",
- "z": "5855d0c84441da14",
- "name": "debug 13",
- "active": true,
- "tosidebar": true,
- "console": false,
- "tostatus": false,
- "complete": "payload",
- "targetType": "msg",
- "statusVal": "",
- "statusType": "auto",
- "x": 1220,
- "y": 180,
- "wires": []
- },
- {
- "id": "7fb9b6660db04ea6",
- "type": "ui_group",
- "name": "Weather Report ",
- "tab": "37eb36948151e2bb",
- "order": 1,
- "disp": true,
- "width": "8",
- "collapse": false,
- "className": ""
- },
- {
- "id": "37eb36948151e2bb",
- "type": "ui_tab",
- "name": "OPENWEATHER DASHBOARD",
- "icon": "dashboard",
- "disabled": false,
- "hidden": false
- }
- ]
- //////////Https with ThingsBoard
- [
- {
- "id": "e7f51834ddda9c9d",
- "type": "tab",
- "label": "Flow 16",
- "disabled": false,
- "info": "",
- "env": []
- },
- {
- "id": "0a8a9105b50a64cc",
- "type": "inject",
- "z": "e7f51834ddda9c9d",
- "name": "all sensors",
- "props": [
- {
- "p": "payload"
- }
- ],
- "repeat": "",
- "crontab": "",
- "once": false,
- "onceDelay": 0.1,
- "topic": "",
- "payload": "{\"humidity\":81,\"temperature\":32,\"active\":\"ON\"}",
- "payloadType": "json",
- "x": 320,
- "y": 140,
- "wires": [
- [
- "a1136f35857b1ea1"
- ]
- ]
- },
- {
- "id": "ad6f7befe5c0e95e",
- "type": "inject",
- "z": "e7f51834ddda9c9d",
- "name": "humidity",
- "props": [
- {
- "p": "payload"
- },
- {
- "p": "topic",
- "vt": "str"
- }
- ],
- "repeat": "",
- "crontab": "",
- "once": false,
- "onceDelay": 0.1,
- "topic": "",
- "payload": "55",
- "payloadType": "num",
- "x": 300,
- "y": 360,
- "wires": [
- [
- "a1136f35857b1ea1"
- ]
- ]
- },
- {
- "id": "a1cc8ab767c25662",
- "type": "change",
- "z": "e7f51834ddda9c9d",
- "name": "",
- "rules": [
- {
- "t": "set",
- "p": "payload",
- "pt": "msg",
- "to": "",
- "tot": "str"
- }
- ],
- "action": "",
- "property": "",
- "from": "",
- "to": "",
- "reg": false,
- "x": 300,
- "y": 260,
- "wires": [
- []
- ]
- },
- {
- "id": "98fb73b1e26cb4fc",
- "type": "debug",
- "z": "e7f51834ddda9c9d",
- "name": "debug 22",
- "active": true,
- "tosidebar": true,
- "console": false,
- "tostatus": false,
- "complete": "payload",
- "targetType": "msg",
- "statusVal": "",
- "statusType": "auto",
- "x": 800,
- "y": 260,
- "wires": []
- },
- {
- "id": "a1136f35857b1ea1",
- "type": "http request",
- "z": "e7f51834ddda9c9d",
- "name": "",
- "method": "POST",
- "ret": "txt",
- "paytoqs": "ignore",
- "url": "http://demo.thingsboard.io/api/v1/mcydvP16D9Di4gTu2Bvy/telemetry",
- "tls": "",
- "persist": false,
- "proxy": "",
- "insecureHTTPParser": false,
- "authType": "",
- "senderr": false,
- "headers": [],
- "x": 530,
- "y": 260,
- "wires": [
- [
- "98fb73b1e26cb4fc"
- ]
- ]
- },
- {
- "id": "69c381dcd5603c71",
- "type": "comment",
- "z": "e7f51834ddda9c9d",
- "name": "21BPS1271",
- "info": "",
- "x": 570,
- "y": 120,
- "wires": []
- }
- ]
- ////////////////DHT-11 With Ardiuno
- [
- {
- "id": "d1fc6d04830a9028",
- "type": "tab",
- "label": "Flow 2",
- "disabled": false,
- "info": "",
- "env": []
- },
- {
- "id": "447e5e206fb8f049",
- "type": "function",
- "z": "d1fc6d04830a9028",
- "name": "Humidity and Temperature function",
- "func": "const m = msg.payload.split(',');\nconst h = {payload: parseFloat(m[0])};\nconst t = {payload: parseFloat(m[1])};\nreturn[h,t];",
- "outputs": 2,
- "noerr": 0,
- "initialize": "",
- "finalize": "",
- "libs": [],
- "x": 480,
- "y": 300,
- "wires": [
- [
- "83483caa8b6e472b"
- ],
- [
- "39e54cf1beb12afb"
- ]
- ]
- },
- {
- "id": "83483caa8b6e472b",
- "type": "ui_gauge",
- "z": "d1fc6d04830a9028",
- "name": "Humidity",
- "group": "3d13e99dd4927efe",
- "order": 0,
- "width": 0,
- "height": 0,
- "gtype": "gage",
- "title": "Humidity",
- "label": "units",
- "format": "{{value}}%",
- "min": 0,
- "max": "100",
- "colors": [
- "#00b500",
- "#e6e600",
- "#ca3838"
- ],
- "seg1": "",
- "seg2": "",
- "diff": false,
- "className": "",
- "x": 780,
- "y": 200,
- "wires": []
- },
- {
- "id": "39e54cf1beb12afb",
- "type": "ui_gauge",
- "z": "d1fc6d04830a9028",
- "name": "Temperature",
- "group": "c31299b60ed3890c",
- "order": 0,
- "width": 0,
- "height": 0,
- "gtype": "gage",
- "title": "Temperature",
- "label": "units",
- "format": "{{value}}C",
- "min": 0,
- "max": "100",
- "colors": [
- "#00b500",
- "#e6e600",
- "#ca3838"
- ],
- "seg1": "",
- "seg2": "",
- "diff": false,
- "className": "",
- "x": 790,
- "y": 360,
- "wires": []
- },
- {
- "id": "78a26cfd3f985b80",
- "type": "serial in",
- "z": "d1fc6d04830a9028",
- "name": "Arduino",
- "serial": "f2ed5863f922f026",
- "x": 150,
- "y": 300,
- "wires": [
- [
- "447e5e206fb8f049"
- ]
- ]
- },
- {
- "id": "3d13e99dd4927efe",
- "type": "ui_group",
- "name": "Humidity",
- "tab": "cf58f35fa1d14885",
- "order": 1,
- "disp": true,
- "width": "6",
- "collapse": false,
- "className": ""
- },
- {
- "id": "c31299b60ed3890c",
- "type": "ui_group",
- "name": "Temperature",
- "tab": "cf58f35fa1d14885",
- "order": 2,
- "disp": true,
- "width": "6",
- "collapse": false,
- "className": ""
- },
- {
- "id": "f2ed5863f922f026",
- "type": "serial-port",
- "serialport": "",
- "serialbaud": "9600",
- "databits": "8",
- "parity": "none",
- "stopbits": "1",
- "waitfor": "",
- "dtr": "none",
- "rts": "none",
- "cts": "none",
- "dsr": "none",
- "newline": "\\n",
- "bin": "false",
- "out": "char",
- "addchar": "",
- "responsetimeout": "10000"
- },
- {
- "id": "cf58f35fa1d14885",
- "type": "ui_tab",
- "name": "Tab 1",
- "icon": "dashboard",
- "order": 1
- }
- ]
- ////////Csv population data
- [
- {
- "id": "9b6223a33b65eb6d",
- "type": "tab",
- "label": "Flow 9",
- "disabled": false,
- "info": "",
- "env": []
- },
- {
- "id": "5d34406f82918504",
- "type": "change",
- "z": "9b6223a33b65eb6d",
- "name": "",
- "rules": [
- {
- "t": "set",
- "p": "payload",
- "pt": "msg",
- "to": "payload[0]",
- "tot": "msg"
- }
- ],
- "action": "",
- "property": "",
- "from": "",
- "to": "",
- "reg": false,
- "x": 300,
- "y": 200,
- "wires": [
- [
- "79558e456e811c39"
- ]
- ]
- },
- {
- "id": "79558e456e811c39",
- "type": "function",
- "z": "9b6223a33b65eb6d",
- "name": "Convert Hex to String",
- "func": "const hexBuffer = msg.payload;\n\n// Convert the hex buffer to a Buffer object\nconst buffer = Buffer.from(hexBuffer, 'hex');\n\n// Convert the Buffer to a string\nconst string = buffer.toString();\n\n// Assign the string to msg.payload for further processing\nmsg.payload = string;\n\nreturn msg;",
- "outputs": 1,
- "noerr": 0,
- "initialize": "",
- "finalize": "",
- "libs": [],
- "x": 540,
- "y": 200,
- "wires": [
- [
- "b542a92b527c643f"
- ]
- ]
- },
- {
- "id": "b542a92b527c643f",
- "type": "csv",
- "z": "9b6223a33b65eb6d",
- "name": "",
- "sep": ",",
- "hdrin": "",
- "hdrout": "none",
- "multi": "mult",
- "ret": "\\n",
- "temp": "",
- "skip": "1",
- "strings": true,
- "include_empty_strings": "",
- "include_null_values": "",
- "x": 730,
- "y": 200,
- "wires": [
- [
- "4c9636f634228f8c"
- ]
- ]
- },
- {
- "id": "4c9636f634228f8c",
- "type": "change",
- "z": "9b6223a33b65eb6d",
- "name": "",
- "rules": [
- {
- "t": "set",
- "p": "CSV",
- "pt": "flow",
- "to": "payload",
- "tot": "msg"
- }
- ],
- "action": "",
- "property": "",
- "from": "",
- "to": "",
- "reg": false,
- "x": 910,
- "y": 200,
- "wires": [
- [
- "0e2d41f2b9f210df"
- ]
- ]
- },
- {
- "id": "7b039ba8ceef766e",
- "type": "debug",
- "z": "9b6223a33b65eb6d",
- "name": "debug 4",
- "active": true,
- "tosidebar": true,
- "console": false,
- "tostatus": false,
- "complete": "payload",
- "targetType": "msg",
- "statusVal": "",
- "statusType": "auto",
- "x": 900,
- "y": 300,
- "wires": []
- },
- {
- "id": "f281331d8f62750a",
- "type": "change",
- "z": "9b6223a33b65eb6d",
- "name": "",
- "rules": [
- {
- "t": "set",
- "p": "payload",
- "pt": "msg",
- "to": "CSV",
- "tot": "flow"
- }
- ],
- "action": "",
- "property": "",
- "from": "",
- "to": "",
- "reg": false,
- "x": 580,
- "y": 300,
- "wires": [
- [
- "7b039ba8ceef766e"
- ]
- ]
- },
- {
- "id": "b6f54005d2fcfc4f",
- "type": "comment",
- "z": "9b6223a33b65eb6d",
- "name": "21BPS1271 Yash Sanjay Thakare",
- "info": "",
- "x": 600,
- "y": 140,
- "wires": []
- },
- {
- "id": "3a314d36c78298f5",
- "type": "ui-button",
- "z": "9b6223a33b65eb6d",
- "group": "b73dc5151c8cd587",
- "name": "",
- "label": "Click Here for debug window (21BPS1271)",
- "order": 1,
- "width": 0,
- "height": 0,
- "passthru": false,
- "tooltip": "",
- "color": "",
- "bgcolor": "",
- "className": "",
- "icon": "",
- "payload": "CSV",
- "payloadType": "flow",
- "topic": "topic",
- "topicType": "msg",
- "x": 210,
- "y": 300,
- "wires": [
- [
- "f281331d8f62750a"
- ]
- ]
- },
- {
- "id": "0e2d41f2b9f210df",
- "type": "ui-table",
- "z": "9b6223a33b65eb6d",
- "group": "b73dc5151c8cd587",
- "name": "CSV DashBoard",
- "label": "text",
- "order": 2,
- "width": 0,
- "height": 0,
- "maxrows": 0,
- "autocols": true,
- "columns": [],
- "x": 1100,
- "y": 200,
- "wires": []
- },
- {
- "id": "4e377f82ce564615",
- "type": "ui-template",
- "z": "9b6223a33b65eb6d",
- "group": "ea5c3d2dcfb3462e",
- "page": "",
- "ui": "",
- "name": "UPLOAD",
- "order": 0,
- "width": 0,
- "height": 0,
- "head": "",
- "format": "<v-file-input show-size multiple chips :rules=\"rules\" accept=\".csv\"\n variant=\"underlined\" label=\"File input\" v-on:change=\"uploadFile\" v-model=\"value\"\n active-color=\"primary\" @update:modelValue=\"send({payload: value})\" />\n",
- "storeOutMessages": true,
- "passthru": true,
- "resendOnRefresh": true,
- "templateScope": "local",
- "className": "",
- "x": 80,
- "y": 200,
- "wires": [
- [
- "5d34406f82918504"
- ]
- ]
- },
- {
- "id": "b73dc5151c8cd587",
- "type": "ui-group",
- "name": "CSV Table",
- "page": "76f6b77509a74a17",
- "width": "12",
- "height": "1",
- "order": -1,
- "showTitle": true,
- "className": "",
- "visible": "true",
- "disabled": "false"
- },
- {
- "id": "ea5c3d2dcfb3462e",
- "type": "ui-group",
- "name": "Upload the CSV file",
- "page": "76f6b77509a74a17",
- "width": "6",
- "height": "1",
- "order": -1,
- "showTitle": true,
- "className": "",
- "visible": "true",
- "disabled": "false"
- },
- {
- "id": "76f6b77509a74a17",
- "type": "ui-page",
- "name": "CSV DashBoard (21BPS1271)",
- "ui": "2daa43f2ba1b1c32",
- "path": "/",
- "icon": "",
- "layout": "grid",
- "theme": "c5ed292f3032aa43",
- "order": -1,
- "className": "",
- "visible": false,
- "disabled": "false"
- },
- {
- "id": "2daa43f2ba1b1c32",
- "type": "ui-base",
- "name": "UI Name",
- "path": "/dashboard"
- },
- {
- "id": "c5ed292f3032aa43",
- "type": "ui-theme",
- "name": "Theme Name",
- "colors": {
- "surface": "#ffffff",
- "primary": "#ff9933",
- "bgPage": "#eeeeee",
- "groupBg": "#ffffff",
- "groupOutline": "#cccccc"
- },
- "sizes": {
- "pagePadding": "12px",
- "groupGap": "12px",
- "groupBorderRadius": "4px",
- "widgetGap": "12px"
- }
- }
- ]
[text] ctc_Y
Viewer
*** This page was generated with the meta tag "noindex, nofollow". This happened because you selected this option before saving or the system detected it as spam. This means that this page will never get into the search engines and the search bot will not crawl it. There is nothing to worry about, you can still share it with anyone.
Editor
You can edit this paste and save as new: