[ { "id": "aa0f8970.f6899", "type": "tab", "label": "CO2 Sensor S8", "disabled": false, "info": "" }, { "id": "35d7859.be248fa", "type": "serial request", "z": "aa0f8970.f6899", "name": "", "serial": "7b1a2a97.73a96c", "x": 610.9499816894531, "y": 268.566650390625, "wires": [ [ "3e553e5a.a96f0a", "d86018d5.19da1" ] ] }, { "id": "a2618e6d.23f618", "type": "function", "z": "aa0f8970.f6899", "name": "値取得", "func": "var buf = new Buffer(7); \n\n\nbuf[0]=0xFE;\nbuf[1]=0x44;\nbuf[2]=0x00;\nbuf[3]=0x08;\nbuf[4]=0x02;\nbuf[5]=0x9F;\nbuf[6]=0x25;\n\n\nmsg.payload = buf;\nreturn msg;\n", "outputs": 1, "noerr": 0, "x": 445, "y": 266.7999725341797, "wires": [ [ "35d7859.be248fa" ] ] }, { "id": "727908b2.39522", "type": "inject", "z": "aa0f8970.f6899", "name": "", "topic": "", "payload": "", "payloadType": "date", "repeat": "2", "crontab": "", "once": false, "onceDelay": 0.1, "x": 233, "y": 266.7999725341797, "wires": [ [ "a2618e6d.23f618" ] ] }, { "id": "f8e0a058.6879d", "type": "debug", "z": "aa0f8970.f6899", "name": "", "active": true, "tosidebar": true, "console": false, "tostatus": false, "complete": "false", "x": 840.9499816894531, "y": 264.0999755859375, "wires": [] }, { "id": "3e553e5a.a96f0a", "type": "function", "z": "aa0f8970.f6899", "name": "変換", "func": "var res={co2:0.0};\n\nres.co2=(msg.payload[3]*256+msg.payload[4])*1.0;\n\nmsg.payload=res;\nreturn msg;", "outputs": 1, "noerr": 0, "x": 733.5666656494141, "y": 362.7999725341797, "wires": [ [ "f8e0a058.6879d" ] ] }, { "id": "273f2448.476fac", "type": "ui_chart", "z": "aa0f8970.f6899", "name": "", "group": "a56e707.17c461", "order": 0, "width": "15", "height": "14", "label": "chart", "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", "#ff7f0e", "#2ca02c", "#98df8a", "#d62728", "#ff9896", "#9467bd", "#c5b0d5" ], "useOldStyle": false, "outputs": 1, "x": 924.949951171875, "y": 604.6666259765625, "wires": [ [] ] }, { "id": "d86018d5.19da1", "type": "function", "z": "aa0f8970.f6899", "name": "変換", "func": "var val;\n\n\nval=(msg.payload[3]*256+msg.payload[4])*1.0;\n\n\n\nmsg.payload=val;\nreturn msg;", "outputs": 1, "noerr": 0, "x": 712.566650390625, "y": 524.566650390625, "wires": [ [ "273f2448.476fac" ] ] }, { "id": "f9a780b7.dfd77", "type": "ui_button", "z": "aa0f8970.f6899", "name": "", "group": "a56e707.17c461", "order": 1, "width": 0, "height": 0, "passthru": false, "label": "クリア", "tooltip": "", "color": "", "bgcolor": "", "icon": "", "payload": "[]", "payloadType": "json", "topic": "", "x": 668.566650390625, "y": 638.566650390625, "wires": [ [ "273f2448.476fac" ] ] }, { "id": "7b1a2a97.73a96c", "type": "serial-port", "z": "", "serialport": "COM4", "serialbaud": "9600", "databits": "8", "parity": "none", "stopbits": "1", "waitfor": "", "dtr": "none", "rts": "none", "cts": "none", "dsr": "none", "newline": "30", "bin": "bin", "out": "time", "addchar": "", "responsetimeout": "500" }, { "id": "a56e707.17c461", "type": "ui_group", "z": "", "name": "Charts", "tab": "a8194b95.932e8", "order": 2, "disp": false, "width": "15", "collapse": false }, { "id": "a8194b95.932e8", "type": "ui_tab", "z": "", "name": "ホーム", "icon": "dashboard", "disabled": false, "hidden": false } ]