summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2022-05-26 08:46:21 +0200
committerDaniel Friesel <derf@finalrewind.org>2022-05-26 08:46:21 +0200
commitf4d699388cf65b5c883473eb9c7a12109e19ef11 (patch)
treea2519573e9b236d9bd5ab173849099ca9124e168
parent0367bc298f7f5f060bb6c7b9fcf5ce261cdaddb6 (diff)
expose automatic baseline correction status via influxdb
-rw-r--r--init.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/init.lua b/init.lua
index 05e4c67..75197c6 100644
--- a/init.lua
+++ b/init.lua
@@ -64,7 +64,7 @@ function uart_callback(data)
end
local json_str = string.format('{"rssi_dbm":%d,"co2_ppm":"%d","temperature_celsius":%d}', wifi.sta.getrssi(), mh_z19.co2, mh_z19.temp)
- local influx_str = string.format("co2_ppm=%d,temperature_celsius=%d", mh_z19.co2, mh_z19.temp)
+ local influx_str = string.format("co2_ppm=%d,temperature_celsius=%d,abc_ticks=%d,abc_count=%d", mh_z19.co2, mh_z19.temp, mh_z19.abc_ticks, mh_z19.abc_count)
if not publishing_mqtt then
watchdog:start(true)