- This topic has 5 replies, 3 voices, and was last updated 5 years ago by .
Viewing 6 posts - 1 through 6 (of 6 total)
Viewing 6 posts - 1 through 6 (of 6 total)
- You must be logged in to reply to this topic.
// wp-content/mu-plugins/sanitize-uploads.php
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.
I will check the algorithm requirements, but yes, this is definitely possible if you have some flexibility on your end.
@Radu where’s the AQI in the server API? I can’t see it?
You’ll get an AQI value in the summary API return (/devices).