diff options
author | Daniel Friesel <derf@finalrewind.org> | 2022-05-26 08:46:21 +0200 |
---|---|---|
committer | Daniel Friesel <derf@finalrewind.org> | 2022-05-26 08:46:21 +0200 |
commit | f4d699388cf65b5c883473eb9c7a12109e19ef11 (patch) | |
tree | a2519573e9b236d9bd5ab173849099ca9124e168 | |
parent | 0367bc298f7f5f060bb6c7b9fcf5ce261cdaddb6 (diff) |
expose automatic baseline correction status via influxdb
-rw-r--r-- | init.lua | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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) |