summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBirte Kristina Friesel <derf@finalrewind.org>2024-01-08 18:20:47 +0100
committerBirte Kristina Friesel <derf@finalrewind.org>2024-01-08 18:20:47 +0100
commit29bd644110890823fa51a290b502129f6624b4cf (patch)
treef049d5c2b3521ab33a073b2411b4fc74f94b02e5
parentd2eef5cec894a1762654a5bf17ed799d086287ac (diff)
README: influx_attr must be empty or start with a comma
-rw-r--r--README.md5
1 files changed, 3 insertions, 2 deletions
diff --git a/README.md b/README.md
index 4632a7d..9984a08 100644
--- a/README.md
+++ b/README.md
@@ -111,7 +111,7 @@ station_cfg.pwd = "..."
mqtt_host = "..."
```
-Optionally, it can also publish readings to an InfluxDB.
+Optionally, it can also publish readings to InfluxDB.
To do so, configure URL and attribute:
```lua
@@ -119,4 +119,5 @@ influx_url = "..."
influx_attr = "..."
```
-Readings will be stored as `sds011,[influx_attr] pm2_5_ugm3=...,pm10_ugm3=...`
+Readings will be published as `sds011[influx_attr] pm2_5_ugm3=...,pm10_ugm3=...`
+So, unless `influx_attr = ''`, it must start with a comma, e.g. `influx_attr = ',device=' .. device_id`.