I recently purchased an ECOWITT GW1000 along with an Ambient WS-2000, using 
Matts Interceptor driver I have gotten everything working including the Air 
quality Sensor.  I added the pm2_5 to the database schema and have the data 
archiving.  

My next step was to add a Group and Data label for the data.  I tried the 
code below but the last line causes weewx to fail on startup, the issue 
seems to be the chararters for micro (µ) and the superscript (³).  I feel 
like there must be a way to escape these characters and get them to work 
but I can't figure out this last step...  I was able to get it working by 
just using ug/m3, but i'd really like to see the µg/m³ instead.  Any ideas?

import weewx.units
weewx.units.obs_group_dict['pm2_5'] = 'group_concentration'

weewx.units.MetricUnits['group_concentration'] = 'microgram_per_meter_cubed'
weewx.units.MetricWXUnits['group_concentration'] = 
'microgram_per_meter_cubed'
weewx.units.USUnits['group_concentration'] = 'microgram_per_meter_cubed'

weewx.units.default_unit_format_dict['microgram_per_meter_cubed'] = '%.3f'
weewx.units.default_unit_label_dict['microgram_per_meter_cubed'] = ' µg/m³'

Paul

-- 
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/5c5b4f24-44cd-46f6-9948-041259c16f56%40googlegroups.com.

Reply via email to