[ { "id": "72b47fbc1d8980c0", "type": "tab", "label": "フロー 1", "disabled": false, "info": "", "env": [] }, { "id": "7ee537264a0ef06f", "type": "modbus-read", "z": "72b47fbc1d8980c0", "name": "", "topic": "", "showStatusActivities": false, "logIOActivities": false, "showErrors": false, "showWarnings": true, "unitid": "1", "dataType": "HoldingRegister", "adr": "0", "quantity": "2", "rate": "1", "rateUnit": "s", "delayOnStart": false, "startDelayTime": "", "server": "e05bc2f36b061110", "useIOFile": false, "ioFile": "", "useIOForPayload": false, "emptyMsgOnFail": false, "x": 110, "y": 140, "wires": [ [ "1df04a58f0837b9e", "84eb818cb4e468b8", "0615356754ea0df0" ], [ "d9797dae778b0ff6" ] ] }, { "id": "597ca64e6a772db8", "type": "ui_chart", "z": "72b47fbc1d8980c0", "name": "", "group": "83458d4503ecd418", "order": 1, "width": 0, "height": 0, "label": "気温", "chartType": "line", "legend": "false", "xformat": "HH:mm:ss", "interpolate": "linear", "nodata": "", "dot": false, "ymin": "", "ymax": "", "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": 590, "y": 140, "wires": [ [] ] }, { "id": "923b1b9ce26fa715", "type": "ui_text", "z": "72b47fbc1d8980c0", "group": "83458d4503ecd418", "order": 2, "width": 0, "height": 0, "name": "", "label": "気温", "format": "{{msg.payload}}℃", "layout": "row-left", "className": "", "x": 590, "y": 180, "wires": [] }, { "id": "d9797dae778b0ff6", "type": "modbus-response", "z": "72b47fbc1d8980c0", "name": "", "registerShowMax": 20, "x": 170, "y": 300, "wires": [] }, { "id": "1a1aab96a3f46597", "type": "file", "z": "72b47fbc1d8980c0", "name": "", "filename": "/root/data/data.csv", "filenameType": "str", "appendNewline": false, "createDir": false, "overwriteFile": "false", "encoding": "none", "x": 710, "y": 400, "wires": [ [] ] }, { "id": "0615356754ea0df0", "type": "function", "z": "72b47fbc1d8980c0", "name": "", "func": "var now = new Date();\nvar nowStr =\n \"\" + now.getFullYear() +\n \"/\" + ('0' + (now.getMonth() + 1)).slice(-2) +\n \"/\" + ('0' + now.getDate()).slice(-2) +\n \" \" + ('0' + now.getHours()).slice(-2) +\n \":\" + ('0' + now.getMinutes()).slice(-2) +\n \":\" + ('0' + now.getSeconds()).slice(-2);\n \nmsg.payload = {\n // 日時\n \"日時\": nowStr,\n // 気温\n \"気温\":msg.payload[0]/10,\n // 湿度\n \"湿度\":msg.payload[1]/10\n}\n \nreturn msg;", "outputs": 1, "noerr": 0, "initialize": "", "finalize": "", "libs": [], "x": 620, "y": 300, "wires": [ [ "8458a14057a7f141" ] ] }, { "id": "8458a14057a7f141", "type": "csv", "z": "72b47fbc1d8980c0", "name": "", "sep": ",", "hdrin": "", "hdrout": "once", "multi": "mult", "ret": "\\n", "temp": "日時,気温,湿度", "skip": "0", "strings": false, "include_empty_strings": "", "include_null_values": "", "x": 490, "y": 400, "wires": [ [ "1a1aab96a3f46597" ] ] }, { "id": "1df04a58f0837b9e", "type": "function", "z": "72b47fbc1d8980c0", "name": "Temperature", "func": "msg.payload = msg.payload[0]/10\nreturn msg;", "outputs": 1, "noerr": 0, "initialize": "", "finalize": "", "libs": [], "x": 350, "y": 120, "wires": [ [ "597ca64e6a772db8", "923b1b9ce26fa715" ] ] }, { "id": "84eb818cb4e468b8", "type": "function", "z": "72b47fbc1d8980c0", "name": "Humid", "func": "msg.payload = msg.payload[1]/10\nreturn msg;", "outputs": 1, "noerr": 0, "initialize": "", "finalize": "", "libs": [], "x": 350, "y": 200, "wires": [ [ "8296ccfd7360da65" ] ] }, { "id": "8296ccfd7360da65", "type": "ui_gauge", "z": "72b47fbc1d8980c0", "name": "", "group": "83458d4503ecd418", "order": 2, "width": 0, "height": 0, "gtype": "gage", "title": "湿度", "label": "パーセント", "format": "{{value}}", "min": 0, "max": "100", "colors": [ "#00b500", "#e6e600", "#ca3838" ], "seg1": "", "seg2": "", "className": "", "x": 570, "y": 220, "wires": [] }, { "id": "e05bc2f36b061110", "type": "modbus-client", "name": "", "clienttype": "simpleser", "bufferCommands": true, "stateLogEnabled": false, "queueLogEnabled": false, "failureLogEnabled": false, "tcpHost": "127.0.0.1", "tcpPort": "502", "tcpType": "DEFAULT", "serialPort": "/dev/ttymxc4", "serialType": "RTU", "serialBaudrate": "9600", "serialDatabits": "8", "serialStopbits": "1", "serialParity": "none", "serialConnectionDelay": "100", "serialAsciiResponseStartDelimiter": "0x3A", "unit_id": "1", "commandDelay": "1", "clientTimeout": "1000", "reconnectOnTimeout": true, "reconnectTimeout": "2000", "parallelUnitIdsAllowed": true }, { "id": "83458d4503ecd418", "type": "ui_group", "name": "計測データ", "tab": "7c45c70b23a7c3b7", "order": 1, "disp": true, "width": "6", "collapse": false, "className": "" }, { "id": "7c45c70b23a7c3b7", "type": "ui_tab", "name": "計測データ", "icon": "dashboard", "disabled": false, "hidden": false } ]