summaryrefslogtreecommitdiff
path: root/init.lua
diff options
context:
space:
mode:
authorBirte Kristina Friesel <derf@finalrewind.org>2024-01-16 21:45:31 +0100
committerBirte Kristina Friesel <derf@finalrewind.org>2024-01-16 21:45:31 +0100
commit817e7fdbb7f7259c0c8ef53002f13a38bc5de734 (patch)
treec9b8ec99026b5439623d8c6e0ba83a4d804afe09 /init.lua
parente134b03803f8b5fb9315381040c160e6a2b50bb5 (diff)
Remove adc_counts; only work with lx output for now
Diffstat (limited to 'init.lua')
-rw-r--r--init.lua6
1 files changed, 3 insertions, 3 deletions
diff --git a/init.lua b/init.lua
index 646df3b..fd3c74d 100644
--- a/init.lua
+++ b/init.lua
@@ -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)