influx db thing set
A simple example showing how to integrate thing set node with influx db
[{"id":"c9fc6dfb32778bf8","type":"tab","label":"Websocket","disabled":false,"info":"","env":[]},{"id":"5df2bc29bb72e22e","type":"junction","z":"c9fc6dfb32778bf8","x":640,"y":140,"wires":[["fa86e21aa27cc9e7"]]},{"id":"65fbee07c3b44e8a","type":"websocket in","z":"c9fc6dfb32778bf8","name":"","server":"f74bed25c3b2c826","client":"","x":180,"y":60,"wires":[["4602895377e2b88a"]]},{"id":"fa86e21aa27cc9e7","type":"websocket out","z":"c9fc6dfb32778bf8","name":"","server":"f74bed25c3b2c826","client":"","x":940,"y":140,"wires":[]},{"id":"2240a70e787846a7","type":"debug","z":"c9fc6dfb32778bf8","name":"debug 1","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":920,"y":60,"wires":[]},{"id":"3c6c1136fb9a67bd","type":"inject","z":"c9fc6dfb32778bf8","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":200,"y":140,"wires":[["6b0f3dca1ff4974c"]]},{"id":"6b0f3dca1ff4974c","type":"function","z":"c9fc6dfb32778bf8","name":"Send 0","func":"msg.payload = JSON.stringify({\n status: 0\n})\nreturn msg;","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":460,"y":140,"wires":[["5df2bc29bb72e22e"]]},{"id":"5934415bf03c484b","type":"function","z":"c9fc6dfb32778bf8","name":"Send 1","func":"msg.payload = JSON.stringify({\n status: 1\n})\nreturn msg;","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":460,"y":220,"wires":[["5df2bc29bb72e22e"]]},{"id":"ad28d063ea6357f8","type":"inject","z":"c9fc6dfb32778bf8","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":200,"y":220,"wires":[["5934415bf03c484b"]]},{"id":"4602895377e2b88a","type":"function","z":"c9fc6dfb32778bf8","name":"parse","func":"msg.payload = JSON.parse(msg.payload || '{}')\nreturn msg;","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":450,"y":60,"wires":[["2240a70e787846a7","c35be82f9d27ecf7"]]},{"id":"c35be82f9d27ecf7","type":"influxdb out","z":"c9fc6dfb32778bf8","influxdb":"70dea2ca63c75f4a","name":"","measurement":"esp32","precision":"","retentionPolicy":"","database":"database","precisionV18FluxV20":"ms","retentionPolicyV18Flux":"","org":"WGLabz","bucket":"Test","x":1010,"y":220,"wires":[]},{"id":"9447df4b389017b9","type":"inject","z":"c9fc6dfb32778bf8","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":370,"y":300,"wires":[["554cca05667fbc9b"]]},{"id":"554cca05667fbc9b","type":"influxdb in","z":"c9fc6dfb32778bf8","influxdb":"70dea2ca63c75f4a","name":"","query":"from(bucket: \"Test\")\n |> range(start: -10m)\n |> filter(fn: (r) => r[\"_measurement\"] == \"esp32\")\n |> aggregateWindow(every: 1m, fn: mean, createEmpty: false)\n |> yield(name: \"mean\")","rawOutput":false,"precision":"","retentionPolicy":"","org":"WGLabz","x":690,"y":320,"wires":[["d021d643d1ac68ef"]]},{"id":"d021d643d1ac68ef","type":"debug","z":"c9fc6dfb32778bf8","name":"debug 2","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":940,"y":300,"wires":[]},{"id":"f74bed25c3b2c826","type":"websocket-listener","path":"/test/esp32","wholemsg":"false"},{"id":"70dea2ca63c75f4a","type":"influxdb","hostname":"127.0.0.1","port":"8086","protocol":"http","database":"database","name":"","usetls":false,"tls":"","influxdbVersion":"2.0","url":"http://192.168.0.103:8086","rejectUnauthorized":true}]