AQI Index from weather service

Looking to get an enum value from the Tridium weather service AirNow.gov values. Typical Tridium gives me the Ozone and Particulate 2.5 values but not the AQI value. Whats frustrating is there is an Air Quality view on the provider that shows the AQI. The actual AQI is based on the highest of the 2 properties. Table of values is fairly simple and would like use an array to find the AQI index.

I realize that I could use a bunch of > < blocks or a selector, but having a table function that you could map non-linear values would be neat. Asked Tridium if we could use the Generic table function that was part of kitIO (Think it now lives in nrio module) and heard crickets.

Thanks

Ken

Yeah, so I’ve never tried it that way. This could be made into a program object without issue.

I can make one for you tomorrow.

Also, why an enum value and not a string?

No matter, here’s an object that can give you the enum and string

aqiProg.bog (4.3 KB)

Plan is to use this in logic to inhibit testing of emergency generators when AQ is bad. Several states are already issuing fines.

Charles,

Thanks for putting that program together and finally seeing how to do an array lookup!

Ken