diff options
author | Daniel Friesel <derf@finalrewind.org> | 2022-05-15 21:34:47 +0200 |
---|---|---|
committer | Daniel Friesel <derf@finalrewind.org> | 2022-05-15 21:34:47 +0200 |
commit | 060063f2d428903c073036876dad6dc6195576aa (patch) | |
tree | d04ea17b28706d671c9df3ea9c9d096154dd861a /README.md | |
parent | f6d4dcb42da4901944da1bc5d96c9ec6fbfbe134 (diff) |
Add InfluxDB support
Diffstat (limited to 'README.md')
-rw-r--r-- | README.md | 14 |
1 files changed, 13 insertions, 1 deletions
@@ -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=...` |