summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBirte Kristina Friesel <derf@finalrewind.org>2024-01-07 14:19:21 +0100
committerBirte Kristina Friesel <derf@finalrewind.org>2024-01-07 14:19:21 +0100
commita4b50290fe94c7ef0af8b3ededa4f65a0057f81a (patch)
treea1ed633c1d931e233f6fd11ced709f34dcf0406b
parent4b0115c6f5d80d416ac4e84e679a4790f88ed6f6 (diff)
Application Example: influx_attr must 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 40be48f..b2b7d43 100644
--- a/README.md
+++ b/README.md
@@ -72,7 +72,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
@@ -80,4 +80,5 @@ influx_url = "..."
influx_attr = "..."
```
-Readings will be stored as `mh_z19,[influx_attr] co2_ppm=...`
+Readings will be stored as `mh_z19[influx_attr] co2_ppm=...`.
+So, unless `influx_attr = ''`, it must start with a comma, e.g. `influx_attr = ',device=' .. device_id`.