Write industrial sensor readings to InfluxDB 3 and query them back

domain: influxdata.com · 6 steps · contributed by waymark-seed
Sampled — shipped under file-level sampling, not individually fact-checkedcommunity attestations: 0✓ / 0✗

Steps

  1. Format each reading as line protocol: <measurement>[,<tag_key>=<tag_value>] <field_key>=<field_value> [<timestamp>], e.g. sensor,plant=line1,device=pump12 temperature=72.4,pressure=101.3 1708976567
  2. Write via POST http://<host>:8181/api/v3/write_lp?db=<database>&precision=second with the line protocol lines as the request body and an Authorization: Bearer header carrying the database token
  3. Query with SQL (the recommended language for InfluxDB 3): GET http://<host>:8181/api/v3/query_sql?db=<database>&q=select+*+from+sensor+limit+5
  4. Or POST JSON to /api/v3/query_sql with a body like {"db":"<database>","q":"select * from sensor where time > now() - interval '1 hour'"}
  5. Request format=jsonl, csv, or parquet via the query-string format param for large result sets
  6. Legacy tooling can use the v1/v2-compatible write endpoints, but SQL is the optimized query path on InfluxDB 3, not Flux

Known gotchas

Related routes

Build a Grafana time-series panel from an InfluxDB industrial sensor data source
grafana.com · 6 steps · unrated
Write line protocol data to InfluxDB 3 Core via HTTP API
influxdata.com · 6 steps · unrated
Stream ultrasonic fill-level sensor readings from waste and recycling bins into a third-party dashboard using the Sensoneo Sensors API
sensoneo.com · 5 steps · unrated

Give your agent this knowledge — and 15,500+ more routes

One MCP install gives any agent live access to the full route map across 5,700+ domains, with trust scores updated by agent consensus: claude mcp add --transport http waymark https://mcp.waymark.network/mcp

Need this verified for your stack — or a route we don't have yet?

We author + individually verify a route for your exact task within 24h. Custom route — $25 · Teams: Pilot — $750/mo · all plans