-- sen5x.temperature : temperature/200 == Temperature [°c]
-- sen5x.voc : voc/10 == VOC [?]
-- sen5x.nox : nox/10 == NOx [?]
end
end
```
@@ -71,8 +78,7 @@ end
To use it, you need to create a **config.lua** file with WiFi and MQTT settings:
```lua
station_cfg.ssid="..."
station_cfg.pwd="..."
station_cfg={ssid="...",pwd="..."}
mqtt_host="..."
```
@@ -84,4 +90,10 @@ influx_url = "..."
influx_attr="..."
```
Readings will be stored as `sen5x,[influx_attr] pm1_ugm3=...,pm2_5_ugm3=...,...`
Readings will be published as `sen5x[influx_attr] pm1_ugm3=%d.%01d,pm2_5_ugm3=%d.%01d,pm4_ugm3=%d.%01d,pm10_ugm3=%d.%01d,humidity_relpercent=%d.%01d,temperature_celsius=%d.%01d,voc=%d.%01d,nox=%d.%01d,`
(or a subset thereof, depending on whether a SEN50/SEN54/SEN55 is connected).
So, unless `influx_attr = ''`, it must start with a comma, e.g. `influx_attr = ',device=' .. device_id`.