[ { "id": "85db7f2b.fc768", "type": "ttn message", "z": "d2e9533e.28ddd", "name": "", "app": "72b796f5.de08e8", "dev_id": "", "field": "", "x": 290, "y": 280, "wires": [ [ "2f2759a5.3d10d6", "5f68503c.62119" ] ] }, { "id": "2f2759a5.3d10d6", "type": "debug", "z": "d2e9533e.28ddd", "name": "", "active": true, "tosidebar": true, "console": false, "tostatus": false, "complete": "payload_raw", "x": 490, "y": 180, "wires": [], "icon": "node-red-dashboard/ui_gauge.png" }, { "id": "5f68503c.62119", "type": "function", "z": "d2e9533e.28ddd", "name": "Extract message", "func": " var temp1 = (msg.payload_raw[0] * 100 + msg.payload_raw[1])/100;\n var temp2 = (msg.payload_raw[4] * 100 + msg.payload_raw[5])/100;\n var temp3 = (msg.payload_raw[8] * 100 + msg.payload_raw[9])/100;\n var temp4 = (msg.payload_raw[12] * 100 + msg.payload_raw[13])/100;\n var hum1 = (msg.payload_raw[2] * 100 + msg.payload_raw[3])/100;\n var hum2 = (msg.payload_raw[6] * 100 + msg.payload_raw[7])/100;\n var hum3 = (msg.payload_raw[10] * 100 + msg.payload_raw[11])/100;\n var hum4 = (msg.payload_raw[14] * 100 + msg.payload_raw[15])/100;\n var CO = msg.payload_raw[16];\n var smoke = msg.payload_raw[17];\n var min = (msg.payload_raw[18] < 128) ? msg.payload_raw[18] : msg.payload_raw[18] - 256;\n var max = (msg.payload_raw[19] < 128) ? msg.payload_raw[19] : msg.payload_raw[19] - 256;\n \n var t1 = {topic : 'temperature 1', payload: Number((temp1).toFixed(2))};\n var t2 = {topic : 'temperature 2', payload: Number((temp2).toFixed(2))};\n var t3 = {topic : 'temperature 3', payload: Number((temp3).toFixed(2))};\n var t4 = {topic : 'temperature 4', payload: Number((temp4).toFixed(2))};\n var h1 = {topic : 'humidity 1', payload: Number((hum1).toFixed(2))};\n var h2 = {topic : 'humidity 2', payload: Number((hum2).toFixed(2))};\n var h3 = {topic : 'humidity 3', payload: Number((hum3).toFixed(2))};\n var h4 = {topic : 'humidity 4', payload: Number((hum4).toFixed(2))};\n var c = {topic : 'CO', payload: Number((CO).toFixed(0))};\n var s = {topic : 'smoke', payload: Number((smoke).toFixed(0))};\n var mi = {topic : 'min irc', payload: Number((min).toFixed(0))};\n var ma = {topic : 'max irc', payload: Number((max).toFixed(0))};\n\n return [t1,t2,t3,t4,h1,h2,h3,h4,c,s,mi,ma];\n", "outputs": 12, "noerr": 0, "x": 490, "y": 500, "wires": [ [ "73cbf78f.4063b8", "6ed44a39.01ea84", "f3df133e.ab924" ], [ "6ed44a39.01ea84", "4181f5dd.26ec9c", "f1d555e1.12a448" ], [ "6ed44a39.01ea84", "83509eca.fd67a", "73837cc4.b55b54" ], [ "6ed44a39.01ea84", "1d2497d9.0e3b58", "41eeea89.e13c94" ], [ "6ed44a39.01ea84", "ab55b930.538e18", "3c52dd97.cf1ab2" ], [ "6ed44a39.01ea84", "526e0d90.7bb234", "2f026701.188ca8" ], [ "6ed44a39.01ea84", "b8b6129.47227f", "456ce81c.961038" ], [ "6ed44a39.01ea84", "28444613.52112a", "2d207ab3.87e296" ], [ "6ed44a39.01ea84", "3668ee16.525292" ], [ "6ed44a39.01ea84", "7df2dfd.00aca2" ], [ "6ed44a39.01ea84", "c21ac32d.edd4c" ], [ "6ed44a39.01ea84", "a9824763.52b798" ] ] }, { "id": "73cbf78f.4063b8", "type": "ui_gauge", "z": "d2e9533e.28ddd", "name": "Temperature 1", "group": "a2b12e.c11dced", "order": 0, "width": 0, "height": 0, "gtype": "gage", "title": "Temperature 1", "label": "°C", "format": "{{value}}", "min": "-20", "max": "100", "colors": [ "#8000ff", "#0080ff", "#80ffff" ], "seg1": "10", "seg2": "20", "x": 820, "y": 260, "wires": [] }, { "id": "6ed44a39.01ea84", "type": "debug", "z": "d2e9533e.28ddd", "name": "", "active": true, "tosidebar": true, "console": false, "tostatus": false, "complete": "true", "x": 690, "y": 180, "wires": [] }, { "id": "4181f5dd.26ec9c", "type": "ui_gauge", "z": "d2e9533e.28ddd", "name": "Temperature 2", "group": "a2b12e.c11dced", "order": 0, "width": 0, "height": 0, "gtype": "gage", "title": "Temperature 2", "label": "°C", "format": "{{value}}", "min": "-20", "max": "100", "colors": [ "#8000ff", "#0080ff", "#80ffff" ], "seg1": "10", "seg2": "20", "x": 820, "y": 300, "wires": [] }, { "id": "83509eca.fd67a", "type": "ui_gauge", "z": "d2e9533e.28ddd", "name": "Temperature 3", "group": "a2b12e.c11dced", "order": 0, "width": 0, "height": 0, "gtype": "gage", "title": "Temperature 3", "label": "°C", "format": "{{value}}", "min": "-20", "max": "100", "colors": [ "#8000ff", "#0080ff", "#80ffff" ], "seg1": "10", "seg2": "20", "x": 820, "y": 340, "wires": [] }, { "id": "f3df133e.ab924", "type": "ui_chart", "z": "d2e9533e.28ddd", "name": "Temperature 1", "group": "3101cbb9.842984", "order": 0, "width": 0, "height": 0, "label": "Temperature 1", "chartType": "line", "legend": "false", "xformat": "HH:mm:ss", "interpolate": "linear", "nodata": "", "dot": false, "ymin": "", "ymax": "", "removeOlder": 1, "removeOlderPoints": "", "removeOlderUnit": "86400", "cutout": 0, "useOneColor": false, "colors": [ "#1f77b4", "#aec7e8", "#3fcfc5", "#335499", "#86b9e3", "#0d84f0", "#d1b6e0", "#9467bd", "#c5b0d5" ], "useOldStyle": false, "x": 1000, "y": 260, "wires": [ [], [] ] }, { "id": "f1d555e1.12a448", "type": "ui_chart", "z": "d2e9533e.28ddd", "name": "Temperature 2", "group": "3101cbb9.842984", "order": 0, "width": 0, "height": 0, "label": "Temperature 2", "chartType": "line", "legend": "false", "xformat": "HH:mm:ss", "interpolate": "linear", "nodata": "", "dot": false, "ymin": "", "ymax": "", "removeOlder": 1, "removeOlderPoints": "", "removeOlderUnit": "86400", "cutout": 0, "useOneColor": false, "colors": [ "#1f77b4", "#aec7e8", "#3fcfc5", "#335499", "#86b9e3", "#0d84f0", "#d1b6e0", "#9467bd", "#c5b0d5" ], "useOldStyle": false, "x": 1000, "y": 300, "wires": [ [], [] ] }, { "id": "73837cc4.b55b54", "type": "ui_chart", "z": "d2e9533e.28ddd", "name": "Temperature 3", "group": "3101cbb9.842984", "order": 0, "width": 0, "height": 0, "label": "Temperature 3", "chartType": "line", "legend": "false", "xformat": "HH:mm:ss", "interpolate": "linear", "nodata": "", "dot": false, "ymin": "", "ymax": "", "removeOlder": 1, "removeOlderPoints": "", "removeOlderUnit": "86400", "cutout": 0, "useOneColor": false, "colors": [ "#1f77b4", "#aec7e8", "#3fcfc5", "#335499", "#86b9e3", "#0d84f0", "#d1b6e0", "#9467bd", "#c5b0d5" ], "useOldStyle": false, "x": 1000, "y": 340, "wires": [ [], [] ] }, { "id": "1d2497d9.0e3b58", "type": "ui_chart", "z": "d2e9533e.28ddd", "name": "Temperature 4", "group": "3101cbb9.842984", "order": 0, "width": 0, "height": 0, "label": "Temperature 4", "chartType": "line", "legend": "false", "xformat": "HH:mm:ss", "interpolate": "linear", "nodata": "", "dot": false, "ymin": "", "ymax": "", "removeOlder": 1, "removeOlderPoints": "", "removeOlderUnit": "86400", "cutout": 0, "useOneColor": false, "colors": [ "#1f77b4", "#aec7e8", "#3fcfc5", "#335499", "#86b9e3", "#0d84f0", "#d1b6e0", "#9467bd", "#c5b0d5" ], "useOldStyle": false, "x": 1000, "y": 380, "wires": [ [], [] ] }, { "id": "41eeea89.e13c94", "type": "ui_gauge", "z": "d2e9533e.28ddd", "name": "Temperature 4", "group": "a2b12e.c11dced", "order": 0, "width": 0, "height": 0, "gtype": "gage", "title": "Temperature 4", "label": "°C", "format": "{{value}}", "min": "-20", "max": "100", "colors": [ "#8000ff", "#0080ff", "#80ffff" ], "seg1": "10", "seg2": "20", "x": 820, "y": 380, "wires": [] }, { "id": "ab55b930.538e18", "type": "ui_gauge", "z": "d2e9533e.28ddd", "name": "Humidity 1", "group": "fd9d2584.9bb618", "order": 0, "width": 0, "height": 0, "gtype": "gage", "title": "Humidity 1", "label": "RH", "format": "{{value}}", "min": "0", "max": "100", "colors": [ "#d38df1", "#fab6fa", "#fce2f8" ], "seg1": "", "seg2": "", "x": 810, "y": 460, "wires": [] }, { "id": "526e0d90.7bb234", "type": "ui_gauge", "z": "d2e9533e.28ddd", "name": "Humidity 2", "group": "fd9d2584.9bb618", "order": 0, "width": 0, "height": 0, "gtype": "gage", "title": "Humidity 2", "label": "RH", "format": "{{value}}", "min": "0", "max": "100", "colors": [ "#d38df1", "#fab6fa", "#fce2f8" ], "seg1": "", "seg2": "", "x": 810, "y": 500, "wires": [] }, { "id": "b8b6129.47227f", "type": "ui_gauge", "z": "d2e9533e.28ddd", "name": "Humidity 3", "group": "fd9d2584.9bb618", "order": 0, "width": 0, "height": 0, "gtype": "gage", "title": "Humidity 3", "label": "RH", "format": "{{value}}", "min": "0", "max": "100", "colors": [ "#d38df1", "#fab6fa", "#fce2f8" ], "seg1": "", "seg2": "", "x": 810, "y": 540, "wires": [] }, { "id": "28444613.52112a", "type": "ui_gauge", "z": "d2e9533e.28ddd", "name": "Humidity 4", "group": "fd9d2584.9bb618", "order": 0, "width": 0, "height": 0, "gtype": "gage", "title": "Humidity 4", "label": "RH", "format": "{{value}}", "min": "0", "max": "100", "colors": [ "#d38df1", "#fab6fa", "#fce2f8" ], "seg1": "", "seg2": "", "x": 810, "y": 580, "wires": [] }, { "id": "3c52dd97.cf1ab2", "type": "ui_chart", "z": "d2e9533e.28ddd", "name": "Humidity 1", "group": "47fceeed.87f76", "order": 0, "width": 0, "height": 0, "label": "Humidity 1", "chartType": "line", "legend": "false", "xformat": "HH:mm:ss", "interpolate": "linear", "nodata": "", "dot": false, "ymin": "", "ymax": "", "removeOlder": 1, "removeOlderPoints": "", "removeOlderUnit": "86400", "cutout": 0, "useOneColor": false, "colors": [ "#c10dc6", "#dcb6e0", "#ad6196", "#a4284a", "#c5a5b3", "#ce2f8e", "#d1b6e0", "#9467bd", "#c5b0d5" ], "useOldStyle": false, "x": 990, "y": 460, "wires": [ [], [] ] }, { "id": "2f026701.188ca8", "type": "ui_chart", "z": "d2e9533e.28ddd", "name": "Humidity 2", "group": "47fceeed.87f76", "order": 0, "width": 0, "height": 0, "label": "Humidity 2", "chartType": "line", "legend": "false", "xformat": "HH:mm:ss", "interpolate": "linear", "nodata": "", "dot": false, "ymin": "", "ymax": "", "removeOlder": 1, "removeOlderPoints": "", "removeOlderUnit": "86400", "cutout": 0, "useOneColor": false, "colors": [ "#c10dc6", "#dcb6e0", "#ad6196", "#a4284a", "#c5a5b3", "#ce2f8e", "#d1b6e0", "#9467bd", "#c5b0d5" ], "useOldStyle": false, "x": 990, "y": 500, "wires": [ [], [] ] }, { "id": "456ce81c.961038", "type": "ui_chart", "z": "d2e9533e.28ddd", "name": "Humidity 3", "group": "47fceeed.87f76", "order": 0, "width": 0, "height": 0, "label": "Humidity 3", "chartType": "line", "legend": "false", "xformat": "HH:mm:ss", "interpolate": "linear", "nodata": "", "dot": false, "ymin": "", "ymax": "", "removeOlder": 1, "removeOlderPoints": "", "removeOlderUnit": "86400", "cutout": 0, "useOneColor": false, "colors": [ "#c10dc6", "#dcb6e0", "#ad6196", "#a4284a", "#c5a5b3", "#ce2f8e", "#d1b6e0", "#9467bd", "#c5b0d5" ], "useOldStyle": false, "x": 990, "y": 540, "wires": [ [], [] ] }, { "id": "2d207ab3.87e296", "type": "ui_chart", "z": "d2e9533e.28ddd", "name": "Humidity 4", "group": "47fceeed.87f76", "order": 0, "width": 0, "height": 0, "label": "Humidity 4", "chartType": "line", "legend": "false", "xformat": "HH:mm:ss", "interpolate": "linear", "nodata": "", "dot": false, "ymin": "", "ymax": "", "removeOlder": 1, "removeOlderPoints": "", "removeOlderUnit": "86400", "cutout": 0, "useOneColor": false, "colors": [ "#c10dc6", "#dcb6e0", "#ad6196", "#a4284a", "#c5a5b3", "#ce2f8e", "#d1b6e0", "#9467bd", "#c5b0d5" ], "useOldStyle": false, "x": 990, "y": 580, "wires": [ [], [] ] }, { "id": "3668ee16.525292", "type": "ui_text", "z": "d2e9533e.28ddd", "group": "41ac9a95.3af414", "order": 0, "width": 0, "height": 0, "name": "CO", "label": "CO", "format": "{{msg.payload}}", "layout": "row-spread", "x": 790, "y": 620, "wires": [] }, { "id": "7df2dfd.00aca2", "type": "ui_text", "z": "d2e9533e.28ddd", "group": "41ac9a95.3af414", "order": 0, "width": 0, "height": 0, "name": "smoke", "label": "smoke", "format": "{{msg.payload}}", "layout": "row-spread", "x": 790, "y": 660, "wires": [] }, { "id": "c21ac32d.edd4c", "type": "ui_gauge", "z": "d2e9533e.28ddd", "name": "min", "group": "a414891d.9b0188", "order": 0, "width": 0, "height": 0, "gtype": "donut", "title": "MIN", "label": "Damper angle", "format": "{{value}}", "min": "-24", "max": "24", "colors": [ "#37b062", "#8aec82", "#b8df2f" ], "seg1": "", "seg2": "", "x": 790, "y": 700, "wires": [] }, { "id": "a9824763.52b798", "type": "ui_gauge", "z": "d2e9533e.28ddd", "name": "max", "group": "a414891d.9b0188", "order": 0, "width": 0, "height": 0, "gtype": "donut", "title": "MAX", "label": "Damper angle", "format": "{{value}}", "min": "-24", "max": "24", "colors": [ "#37b062", "#8aec82", "#b8df2f" ], "seg1": "", "seg2": "", "x": 790, "y": 740, "wires": [] }, { "id": "72b796f5.de08e8", "type": "ttn app", "z": "", "appId": "lorawanlib", "region": "eu", "accessKey": "ttn-account-v2.BQTEfcDeeX19nn8j7i2ljqkBQynIKLVEYfprCdavOYw" }, { "id": "a2b12e.c11dced", "type": "ui_group", "z": "", "name": "Temperatures", "tab": "30c2e0f.8cac52", "disp": true, "width": "6", "collapse": false }, { "id": "3101cbb9.842984", "type": "ui_group", "z": "", "name": "Temperatures", "tab": "30c2e0f.8cac52", "disp": true, "width": "6", "collapse": false }, { "id": "fd9d2584.9bb618", "type": "ui_group", "z": "", "name": "Humidities", "tab": "30c2e0f.8cac52", "disp": true, "width": "6", "collapse": false }, { "id": "47fceeed.87f76", "type": "ui_group", "z": "", "name": "Humidities", "tab": "30c2e0f.8cac52", "disp": true, "width": "6", "collapse": false }, { "id": "41ac9a95.3af414", "type": "ui_group", "z": "", "name": "Gases", "tab": "30c2e0f.8cac52", "disp": true, "width": "6", "collapse": false }, { "id": "a414891d.9b0188", "type": "ui_group", "z": "", "name": "IRC", "tab": "30c2e0f.8cac52", "disp": true, "width": "6", "collapse": false }, { "id": "30c2e0f.8cac52", "type": "ui_tab", "z": "", "name": "Monitoring system for HVAC", "icon": "dashboard" } ]