[ { "id": "5e7eba5f.6bd054", "type": "influxdb in", "z": "651fb1e2.0d98e8", "influxdb": "b075efa4.7befb", "name": "", "query": "select * from m05_nAleat", "rawOutput": false, "precision": "", "retentionPolicy": "", "x": 300, "y": 180, "wires": [ [ "6ee092cf.7ac3cc" ] ] }, { "id": "73bffa0.0572f08", "type": "debug", "z": "651fb1e2.0d98e8", "name": "", "active": true, "tosidebar": true, "console": false, "tostatus": false, "complete": "false", "x": 510, "y": 260, "wires": [] }, { "id": "a532dbd.a213c28", "type": "inject", "z": "651fb1e2.0d98e8", "name": "", "topic": "", "payload": "", "payloadType": "date", "repeat": "", "crontab": "", "once": false, "onceDelay": 0.1, "x": 160, "y": 80, "wires": [ [ "5e7eba5f.6bd054" ] ] }, { "id": "6ee092cf.7ac3cc", "type": "function", "z": "651fb1e2.0d98e8", "name": "--> timestamp, value", "func": "a = msg.payload;\nvar val = \"\";\nvar lastEntryValue;\na.forEach(function(entry) {\n val+=\"timestamp: \"+entry.time+\", value: \"+entry.value + \"\\n\";\n lastEntryValue = entry.value;\n});\nmsg.payload = val;\nvar msg_val = {payload : lastEntryValue} \n\nreturn [msg,msg_val];", "outputs": 2, "noerr": 0, "x": 260, "y": 280, "wires": [ [ "73bffa0.0572f08" ], [ "bf714ec7.fdad9" ] ] }, { "id": "bf714ec7.fdad9", "type": "debug", "z": "651fb1e2.0d98e8", "name": "", "active": true, "tosidebar": true, "console": false, "tostatus": false, "complete": "false", "x": 510, "y": 300, "wires": [] }, { "id": "b075efa4.7befb", "type": "influxdb", "z": "", "hostname": "vps656540.ovh.net", "port": "8086", "protocol": "http", "database": "aulaVirtual2020", "name": "", "usetls": false, "tls": "" } ]