Skip to content

Instantly share code, notes, and snippets.

@trlafleur
trlafleur / README.md
Last active January 20, 2024 17:01
NowCast AQI for PM2.5

This will calculates proper AQI and Nowcast-AQI from PM2.5 sensors readings.

Expect a feed of PM2.5 sensor readings, that are stored in a queue, each hour, we take the average of these values and store in an hour array.

We then compute AQI and NowCast-AQI for 24, 12, 6, and 3 hours, and send them out as MQTT data and in JSON format.

References: