I'm trying to see if there is either an existing node or example flow that can help me calculate the US AQI value from PM2.5 and PM10 readings.
I have an SDS011 particulate sensor connected to a NodeMCU that is then publishing the PM2.5 and PM10 values to my MQTT broker. I can subscribe to those in Node-Red. I'd like to turn those numbers into an AQI number.
Has anyone else done this? If so, is there a node I can add to my palette? Or does someone have an example flow I can adapt for my situation?
That was one of the issues I was having when I first made my post, the equation(s) weren't posted at any of the air quality sites that Google kept turning up.
But it turns out that the wikipedia page is reasonably good on the subject.
After some more thought, I figure I don't necessarily need to calculate the AQI. Instead, I think a gauge that has the 6 quality categories on it mapped to the PPM values on that wikipedia page will work provided I can find a gauge that supports 6 sectors and I can set a scale for each sector (though maybe something on a log scale might work too).