Commit Graph

6 Commits

Author SHA1 Message Date
45a3bb3c50 Use JSON path expressions for JSON payload support 2021-08-30 23:41:02 -07:00
2984561a9a Support JSON in MQTT payloads
The imeptus for this is to allow embedding an event timestamp with the
data, since MQTT doesn't tag messages with the time they were sent.  So
Instead of having a payload value like "some value", you could have:

{
    "timestamp": 1630360029124,
    "value": "some value"
}

... and then configure the mapping in mqtt2db to be a JSON mapping, with
timestamp field name "timestamp" and value field name "value", and we
just figure things out.

If no mapping payload type is specified, we just assume it's a raw value
as before.
2021-08-30 14:46:11 -07:00
0b95f5bf7c Print full mqtt errors 2021-08-30 02:41:53 -07:00
cb1d05c646 Use rustls instead of openssl with influxdb client 2021-08-30 02:41:27 -07:00
7940d168fe Add tokio-compat-02 for influxdb client
The HTTP client the influxdb client uses is still on tokio 0.2.
2021-08-29 00:55:48 -07:00
525b5152ef Initial import 2021-08-24 22:24:24 -07:00