From 060063f2d428903c073036876dad6dc6195576aa Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Sun, 15 May 2022 21:34:47 +0200 Subject: Add InfluxDB support --- README.md | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) (limited to 'README.md') 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=...` -- cgit v1.2.3