Home Forum Support Get AQI from JSON

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #6055
    d.gonzalez
    Participant

    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?

    #6071
    uRADMonitor
    Keymaster

    @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.

    #6078
    d.gonzalez
    Participant

    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.

    #6079
    uRADMonitor
    Keymaster

    I will check the algorithm requirements, but yes, this is definitely possible if you have some flexibility on your end.

    #29021
    Alex Khassapov
    Participant

    @Radu where’s the AQI in the server API? I can’t see it?

    #29025
    uRADMonitor
    Keymaster

    You’ll get an AQI value in the summary API return (/devices).

Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.