Thanks, Gary! This worked. On Tuesday, June 15, 2021 at 9:46:15 PM UTC-4 gjr80 wrote:
> When you added your new fields did you assign them to a unit group? You > need to do this if you want to make use of the WeeWX formatting and unit > conversion capabilities in reports for your new fields. If you don't assign > a field to a unit group then WeeWX does not know if it is a speed, a > temperature or a pressure etc and the field will be displayed 'as is' in > reports. To add your fields to a unit group add something like the > following to the bottom of /usr/share/weewx/user/extensions.py (or > depending on your WeeWX installation type > /home/weewx/bin/user/extensions.py) (untested): > > import weewx.units > weewx.units.obs_group_dict['WindSpeed2avg'] = 'group_speed' > weewx.units.obs_group_dict['WindGust10avg'] = 'group_speed' > > You will need to restart WeeWX for the changes to take effect. > > Gary > On Wednesday, 16 June 2021 at 09:33:11 UTC+10 Ron Walker wrote: > >> >> I am running Weewx version 4.3 on a Raspberry Pi 3 which is running >> Raspbian 9. I added two wind speed measurements, WindSpeed2avg and >> WindGust10avg, which show wind speed averaged over 2 minutes and wind gusts >> averaged over 10 minutes respectively. >> >> When the values are displayed on the webpage they display with 6 decimal >> places. The same is true for the wind direction associated with each >> measurement. For example, wind speed 2 min average displays 8.389286 NE >> (35.321429) and direction does not display the degree symbol. >> >> I've looked in the units.py file, but did not see anything there. Can >> anyone tell me where I can make the proper adjustments to the way these >> values display? >> >> Thanks in advance! >> >> Ron >> > -- 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/15754246-71de-45ce-9092-b46a8cdb2f1dn%40googlegroups.com.
