[ { "id": "9b34396c.499d78", "type": "inject", "z": "e55a49ba.fb6e6", "name": "", "repeat": "", "crontab": "", "once": false, "topic": "", "payload": "", "payloadType": "date", "x": 160, "y": 300, "wires": [ [ "709bb851.7081a" ] ] }, { "id": "709bb851.7081a", "type": "function", "z": "e55a49ba.fb6e6", "name": "multiple readings", "func": "msg.payload = [\n [{\n numValue: 10,\n randomValue: Math.random()*10,\n strValue: \"message1\",\n time: new Date().getTime()-1\n },\n {\n tag1:\"sensor1\",\n tag2:\"device2\"\n }],\n [{\n numValue: 20,\n randomValue: Math.random()*10,\n strValue: \"message2\",\n time: new Date().getTime()\n },\n {\n tag1:\"sensor1\",\n tag2:\"device2\"\n }]\n];\nreturn msg;", "outputs": 1, "noerr": 0, "initialize": "", "finalize": "", "x": 210, "y": 420, "wires": [ [ "1c4b4356.094875", "ed1551da.50935" ] ] }, { "id": "1c4b4356.094875", "type": "influxdb out", "z": "e55a49ba.fb6e6", "influxdb": "eb03f3e5.68c528", "name": "", "measurement": "test", "precision": "ms", "retentionPolicy": "", "database": "test", "precisionV18FluxV20": "ms", "retentionPolicyV18Flux": "", "org": "Clot", "bucket": "api/v2/query", "x": 230, "y": 540, "wires": [] }, { "id": "ed1551da.50935", "type": "debug", "z": "e55a49ba.fb6e6", "name": "", "active": true, "tosidebar": true, "console": false, "tostatus": false, "complete": "false", "statusVal": "", "statusType": "auto", "x": 400, "y": 320, "wires": [] }, { "id": "eb03f3e5.68c528", "type": "influxdb", "z": "", "hostname": "127.0.0.1", "port": "8086", "protocol": "http", "database": "database", "name": "", "usetls": false, "tls": "", "influxdbVersion": "2.0", "url": "http://localhost:8086", "rejectUnauthorized": true } ]