summaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2022-05-15 21:34:47 +0200
committerDaniel Friesel <derf@finalrewind.org>2022-05-15 21:34:47 +0200
commit060063f2d428903c073036876dad6dc6195576aa (patch)
treed04ea17b28706d671c9df3ea9c9d096154dd861a /README.md
parentf6d4dcb42da4901944da1bc5d96c9ec6fbfbe134 (diff)
Add InfluxDB support
Diffstat (limited to 'README.md')
-rw-r--r--README.md14
1 files changed, 13 insertions, 1 deletions
diff --git a/README.md b/README.md
index e592ccb..e37a46e 100644
--- a/README.md
+++ b/README.md
@@ -45,11 +45,23 @@ function uart_callback(data)
end
end
```
+## Application Example
-See **init.lua** for an example. To use it, you need to create a **config.lua** file with WiFI and MQTT settings:
+**init.lua** is an example application with HomeAssistant integration.
+To use it, you need to create a **config.lua** file with WiFI and MQTT settings:
```lua
station_cfg.ssid = "..."
station_cfg.pwd = "..."
mqtt_host = "..."
```
+
+Optionally, it can also publish readings to an InfluxDB.
+To do so, configure URL and attribute:
+
+```
+influx_url = "..."
+influx_attr = "..."
+```
+
+Readings will be stored as `vindriktning,[influx_attr] pm2_5_ugm3=...`