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 weewx-user+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/87529e82-e371-440f-8424-3a55c22c10d7n%40googlegroups.com.

Reply via email to