On Wednesday, February 17, 2021 at 11:27:40 PM UTC+1 [email protected] wrote:

> Formats and labels are keyed to *unit groups*, not observation types. If 
> you really want to use luminance (instead of illuminance), you need to tell 
> the system what unit group it is in. You do that by making an assignment to 
> the data structure weewx.units.obs_group_dict:
>
> import weewx.units
> weewx.units.obs_group_dict['luminance'] = 'group_illuminance'
>
> See the section *Assigning a unit group 
> <http://www.weewx.com/docs/customizing.htm#Assigning_a_unit_group>* in 
> the Customizing Guide. 
>
> However, be aware that illuminance is not the same of luminance. 
> Illuminance measures the amount of light falling on a surface area. 
> Luminance measures the amount of light passing through a solid angle. Only 
> illuminance is measured in lux.
>

This is almost what I ended up doing:

import weewx.units
weewx.units.obs_group_dict['outTempBatteryStatus'] = 'group_volt'
weewx.units.obs_group_dict['luminosity'] = 'group_illuminance'

I hadn't picked up on the difference between luminance and illuminance. But 
the field I'm using is called yet another thing, luminosity. What's that 
than? Time for a bit of googling I suppose, although I'm not sure I'll go 
as far as adding a field especially for this. Since there's a field for 
luminosity I think maybe I'll use that regardless.

Thanks for the help!

Cheers,
Jan-Jaap

-- 
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/6b31a15e-07ee-48ba-aa59-956cc63e9678n%40googlegroups.com.

Reply via email to