[ { "id": "4bd768c5.c40fa8", "type": "tab", "label": "Flow 2", "disabled": false, "info": "" }, { "id": "f55b7fb3.27ec3", "type": "function", "z": "4bd768c5.c40fa8", "name": "Example", "func": "var payload = msg.payload;\nvar msg0={\n \"variable\":\"bat.rawValue\",\n \"value\":payload[\"bat\"]\n}\nvar msg1={\n \"variable\":\"temp.rawValue\",\n \"value\":payload[\"temp\"]\n}\nvar msg2={\n \"variable\":\"hum.rawValue\",\n \"value\":payload[\"hum\"]\n}\n\nreturn [msg0,msg1,msg2];", "outputs": 1, "noerr": 0, "initialize": "", "finalize": "", "x": 300, "y": 120, "wires": [ [ "a10ddd00.179cd", "8c4e6fde.96f2b" ] ] }, { "id": "a10ddd00.179cd", "type": "Virtual out", "z": "4bd768c5.c40fa8", "endpoint": "d8c8012e.b542a", "name": "", "x": 500, "y": 120, "wires": [] }, { "id": "f8474258.9ca5a", "type": "inject", "z": "4bd768c5.c40fa8", "name": "", "props": [ { "p": "payload" } ], "repeat": "", "crontab": "", "once": false, "onceDelay": 0.1, "topic": "", "payload": "{\"bat\":2000,\"temp\":23,\"hum\":68}", "payloadType": "json", "x": 120, "y": 120, "wires": [ [ "f55b7fb3.27ec3", "dff1e168.74711" ] ] }, { "id": "dff1e168.74711", "type": "debug", "z": "4bd768c5.c40fa8", "name": "", "active": false, "tosidebar": true, "console": false, "tostatus": false, "complete": "false", "statusVal": "", "statusType": "auto", "x": 320, "y": 60, "wires": [] }, { "id": "8c4e6fde.96f2b", "type": "debug", "z": "4bd768c5.c40fa8", "name": "", "active": true, "tosidebar": true, "console": false, "tostatus": false, "complete": "true", "targetType": "full", "statusVal": "", "statusType": "auto", "x": 510, "y": 200, "wires": [] }, { "id": "d8c8012e.b542a", "type": "Virtual endpoint", "name": "", "cycletime": "500", "inactivetime": "300", "vartable": [ { "addr": "", "name": "bat", "variation": "0", "interfaceType": "READ", "variableType": "rawValue", "mulFactor": "1", "category": "Electric voltage", "measurementType": "", "unitType": "Mili Volt", "fieldDataType": "", "historyConfiguration": "", "unitSymbol": "ms²", "decimals": "" }, { "addr": "", "name": "temp", "variation": "0", "interfaceType": "READ", "variableType": "rawValue", "mulFactor": "1", "category": "Temperature", "measurementType": "", "unitType": "Celsius", "fieldDataType": "", "historyConfiguration": "", "unitSymbol": "ms²", "decimals": "" }, { "addr": "", "name": "hum", "variation": "0", "interfaceType": "READ", "variableType": "rawValue", "mulFactor": "1", "category": "Humidity", "measurementType": "", "unitType": "Percentage", "fieldDataType": "", "historyConfiguration": "", "unitSymbol": "ms²", "decimals": "" } ], "eventstable": [] } ]