I noticed that the dashboard and API have the IAQ metrics but it is not available in the local JSON. Can we: add this output to the JSON (by adding the BSEC library to the firmware) or have the formula used to calculate this?
@d-gonzalez sadly the VOC AQI cannot be added to the JSON. It requires history data, in this case the last 24h readings, which are only stored on the server side. It is not the BSEC, but it is very similar.
Can you use the Server API instead? it is much easier then with the local JSON.
Well, I query the local JSON every 10 seconds or so (might be more, I forget what I set telegraf to), and I’d hate to hit your API every 10s as well.
If I keep the historical data of the device, can I calculate the AQI as well? I’m using a formula I saw online that takes the moving average of the last 50 readings and use that as the baseline for the gas resistance readings, but I don’t think I’m doing this right.