there is an existing optional formatting tag ‘ordinal_compass’ for data_type 
‘windDir’
eg. where $current.windDir.raw = 45, $current.windDir.ordinal_compass = “NE"

i would like to create a new optional formatting tag ‘category’ for new xtype 
‘aqi_pm2_51’ (air quality index derived PM2.5)
e.g. where $current.aqi_pm2_51.raw = 75, $current.aqi_pm2_51.category = 
“Moderate”

how do i create the new optional formatting tag?
so far all i have found is to extend weewx.units.ValueHelper - i guess a 
function called “catgeory” would be picked up to do the formatting. but this 
would require changing rather than extending weewx codebase.
have i missed something obvious?

-- 
You received this message because you are subscribed to the Google Groups 
"weewx-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/487EFABB-872F-449C-A685-8BB5FD83EF98%40gmail.com.

Reply via email to