Commit Graph

14 Commits

Author SHA1 Message Date
12756abf25 Add basic README 2022-09-13 14:58:24 -07:00
3fe21300fe Add licensing info 2022-09-13 14:55:47 -07:00
c474999f6a Use nanosecond timestamps 2022-06-15 17:00:59 -07:00
fa2542f361 Modernize 2022-06-08 17:30:54 -07:00
a3c2f84223 Bump all dependencies 2022-06-08 17:30:54 -07:00
c88858e43f First step toward supporting multiple database writes 2022-06-08 15:00:29 -07:00
aefd8cde25 Remove unnecessary event loop match arms 2021-08-31 00:09:17 -07:00
f65a0f7fdc Don't set log level if not specified in config
If we set a default here, it doesn't allow setting the level in the
environment variable.
2021-08-31 00:08:32 -07:00
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