bakerkj / weewx-purpleair

WeeWx Extension to pull data from the local interface of a Purple Air air quality sensor
GNU General Public License v2.0
17 stars 11 forks source link

Definition of pm units conflicts with WeeWX #16

Closed rlmalisz closed 3 years ago

rlmalisz commented 3 years ago

The definition on line 77 of purpleair.py:

weewx.units.default_unit_label_dict['microgram_per_meter_cubed'] = ' \xc2\xb5g/m\xc2\xb3'

Makes the graph label generated by weewx's genplot.py to be a bit wonky...this is a string, and it's expecting Unicode. Commenting this line out made the problem go away, Discussion here in the Google group:

https://groups.google.com/g/weewx-user/c/BCSWQASW26I

--Richard

bakerkj commented 3 years ago

@rlmalisz I believe PR #17 fixes this issue. I have applied that. Please give the new code a shot.