diff options
author | Birte Kristina Friesel <derf@finalrewind.org> | 2024-01-16 21:45:31 +0100 |
---|---|---|
committer | Birte Kristina Friesel <derf@finalrewind.org> | 2024-01-16 21:45:31 +0100 |
commit | 817e7fdbb7f7259c0c8ef53002f13a38bc5de734 (patch) | |
tree | c9b8ec99026b5439623d8c6e0ba83a4d804afe09 /init.lua | |
parent | e134b03803f8b5fb9315381040c160e6a2b50bb5 (diff) |
Remove adc_counts; only work with lx output for now
Diffstat (limited to 'init.lua')
-rw-r--r-- | init.lua | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -55,12 +55,12 @@ function connect_wifi() end function push_data() - local lx, raw = temt6000.read() + local lx = temt6000.read() if lx == nil then print("TEMT6000 error") else - local json_str = string.format('{"illuminance_lx": %d, "adc_counts": %d, "rssi_dbm": %d}', lx, raw, wifi.sta.getrssi()) - local influx_str = string.format("illuminance_lx=%d,adc_counts=%d", lx, raw) + local json_str = string.format('{"illuminance_lx": %d, "rssi_dbm": %d}', lx, wifi.sta.getrssi()) + local influx_str = string.format("illuminance_lx=%d", lx) if not publishing_mqtt then publishing_mqtt = true watchdog:start(true) |