Hello,

I added a second data source to my WeeWx installation on RPI as it is 
explained in the customization guide.
My database is metric.

So I imported a temperature 'AQM_Temp' in degree Celsius and a snow height 
'Snow_height' in cm.
I assinged the 'group_temperature' as unit group to the signal 'AQM_Temp' 
and defined the following new unit group for the snow height:

#Define unit groups which are not already defined
weewx.units.USUnits['group_snow_height'] = 'inch1'
weewx.units.MetricUnits['group_snow_height'] = 'cm1'
weewx.units.MetricWXUnits['group_snow_height'] = 'cm1'
weewx.units.default_unit_format_dict['inch1']  = '%.0f'
weewx.units.default_unit_label_dict['inch1']  = ' in'
weewx.units.default_unit_format_dict['cm1']  = '%.0f'
weewx.units.default_unit_label_dict['cm1']  = ' cm'
weewx.units.conversionDict['inch1']  = {'cm1': lambda x : x * 2.54}
weewx.units.conversionDict['cm1']  = {'inch1': lambda x : x * 0.394}

The signal 'AQM_Temp' is automatically converted from deg Farenheit to 
Celsius, so from US unit to METRIC unit.
The signal 'Snow_height" is not converted at all and still is in cm after 
importing it.

Even if I define a new unit group 'group_temperature2' with all the 
conversion rules the signal 'AQM_Temp' is automatically converted to deg 
Celsius (with the specified conversion calculation).
If I convert 'AQM_Temp' in deg Farenheit first and leave 'Snow_height' in 
Celsius everything is fine even when assigning the unit group 
'group_temperature'

I do not understand how WeeWx can seperate between those two signals and 
why is is behaving different.
Maybe sombody has an idea.

Regards,
engolling

-- 
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.
For more options, visit https://groups.google.com/d/optout.

Reply via email to