Local JSON endpoint documentation

Where can I find the technical documentation of the /json endpoint when accessing a PurpleAir sensor locally over the network?

I’ve checked the API documentation, but the fields do not match.

Where can I find the documentation for the JSON fields? In particular what does the pm2_5_atm and pm2_5_cf_1 represent?

We don’t currently have documentation for everything on the /json endpoint. However, some of the fields are similar to what’s recorded to the SD card. This includes both pm2_5_atm and pm2_5_cf_1.

Note that there may be some differences between the SD card data, and what’s obtained via /json. We’ll add better documentation for data obtained via the /json endpoint.

3 Likes

Please post when documentation is available for the json data. I’m writing queries for an sql db for an educational demo. Thanks

Aha, so atm is for outdoor or “atmospheric” conditions and cf1 is for indoor conditions.

Does that mean the sensors use cf1 to calculate their AQI when set to indoor, or do all sensors use atm to calculate the *_aqi values?