[ { "id": "246e9ac.46f0966", "type": "debug", "z": "6a46c10b.0aa48", "name": "Temperatura en ÂșC", "active": true, "tosidebar": true, "console": false, "tostatus": false, "complete": "payload", "targetType": "msg", "statusVal": "", "statusType": "auto", "x": 610, "y": 140, "wires": [] }, { "id": "4dd313eb.ee820c", "type": "modbus-read", "z": "6a46c10b.0aa48", "name": "", "topic": "", "showStatusActivities": false, "logIOActivities": false, "showErrors": false, "unitid": "1", "dataType": "HoldingRegister", "adr": "0", "quantity": "2", "rate": "5", "rateUnit": "s", "delayOnStart": false, "startDelayTime": "", "server": "ec1b1086.32794", "useIOFile": false, "ioFile": "", "useIOForPayload": false, "emptyMsgOnFail": false, "x": 180, "y": 180, "wires": [ [ "483db296.ed37dc" ], [] ] }, { "id": "483db296.ed37dc", "type": "function", "z": "6a46c10b.0aa48", "name": "ModBus -> T, RH", "func": "var fT = parseFloat(parseInt(msg.payload[1]))/10;\nvar fRH = parseFloat(parseInt(msg.payload[0]))/10;\n\nreturn [{\"payload\": fT},{\"payload\": fRH}];", "outputs": 2, "noerr": 0, "initialize": "", "finalize": "", "x": 390, "y": 180, "wires": [ [ "246e9ac.46f0966", "df26d7ec.789748" ], [ "fd0e3527.2da6c8" ] ] }, { "id": "fd0e3527.2da6c8", "type": "debug", "z": "6a46c10b.0aa48", "name": "Humitat relativa en %", "active": true, "tosidebar": true, "console": false, "tostatus": false, "complete": "payload", "targetType": "msg", "statusVal": "", "statusType": "auto", "x": 620, "y": 220, "wires": [] }, { "id": "df26d7ec.789748", "type": "mqtt out", "z": "6a46c10b.0aa48", "name": "", "topic": "T_modbus", "qos": "", "retain": "", "broker": "2dcde1db.aeb8be", "x": 660, "y": 80, "wires": [] }, { "id": "ec1b1086.32794", "type": "modbus-client", "name": "CWT-TH03S", "clienttype": "simpleser", "bufferCommands": true, "stateLogEnabled": false, "queueLogEnabled": false, "tcpHost": "127.0.0.1", "tcpPort": "502", "tcpType": "DEFAULT", "serialPort": "/dev/ttyUSB0", "serialType": "RTU", "serialBaudrate": "4800", "serialDatabits": "8", "serialStopbits": "1", "serialParity": "none", "serialConnectionDelay": "100", "unit_id": 1, "commandDelay": 1, "clientTimeout": 1000, "reconnectOnTimeout": true, "reconnectTimeout": 2000, "parallelUnitIdsAllowed": true }, { "id": "2dcde1db.aeb8be", "type": "mqtt-broker", "name": "", "broker": "broker.hivemq.com", "port": "1883", "clientid": "", "usetls": false, "compatmode": false, "keepalive": "60", "cleansession": true, "birthTopic": "", "birthQos": "0", "birthPayload": "", "closeTopic": "", "closeQos": "0", "closePayload": "", "willTopic": "", "willQos": "0", "willPayload": "" } ]