The illuminance/luminosity issue has come up several times over the past 
4-5 years. I'm aware of issues #613 
<https://github.com/weewx/weewx/issues/613> and #685 
<https://github.com/weewx/weewx/issues/685> and this weewx-user thread 
<https://groups.google.com/g/weewx-user/c/MaWgABMS0rE/m/YZfeAxvPDQAJ>, 
there may well be others. From memory, I recall the following from a chat 
that Tom and I had some years ago:

- we agreed that the wview_extended field luminosity should be re-named or 
a new field added and whatever fields we end up with should be assigned a 
WeeWX unit group by default
- we could not come up with a solution that would not impact existing users 
that utilise a 'light' related field (I do not include 'radiation' or 
'maxSolarRad' to be a 'light' related field)
- we agreed to leave things as they are until a solution was developed

Unfortunately the record of that chat has long disappeared into the ether.

At present the wview_extended schema includes a field named 'luminosity' 
but no field 'illuminance'. WeeWX assigns the field 'illuminance' to the 
unit group 'group_illuminance' (which only supports the unit Lux), WeeWX 
does not (by default) assign the field 'luminosity' to any unit group. This 
disconnect/omission provides a degree of protection in preventing 
illuminance data being unwittingly stored in the luminosity field as any 
such arrangement would require the user to make deliberate schema/unit 
group assignment/field mapping changes.

Not a solution but a little history as to why we find ourselves in the 
position we are now.

Gary

On Saturday, 23 November 2024 at 08:05:59 UTC+11 vince wrote:

> Perhaps. It's interesting that the weewx docs have an example of renaming 
> 'luminosity' to 'illuminance' (link) 
> <https://www.weewx.com/docs/5.1/utilities/weectl-database/?h=luminosity#rename-an-observation-type>
>  and 
> mention if for one model of fousb only.
>
>    - https://en.wikipedia.org/wiki/Luminosity - energy per unit of time 
>    (W)
>    - https://en.wikipedia.org/wiki/Solar_irradiance  - energy per unit of 
>    area (W/m2)
>    - https://en.wikipedia.org/wiki/Illuminance (aka brightness) in lux - 
>    https://en.wikipedia.org/wiki/Lux
>
> FWIW as an example - a WeatherFlow station emits 'solar_radiation' and 
> 'illuminance' readings from the hardware. They report them as W/m2 and lux 
> respectively.  Weewx group_radiation uses W/m2 for 'radiation' and 
> 'maxSolarRad' and group_illuminance uses lux for 'illuminance' if that 
> helps any.
>
> There was a long discussion in jan-2019 (wow) in the WF dev forum about 
> the differences.  That particular gear derives radiation from the 
> brightness and uv sensors in the hardware.  Guess every vendor does it 
> their own way.
>
> I think you talked my 'perhaps' above into a 'probably yes'.
>
> On Friday, November 22, 2024 at 11:23:06 AM UTC-8 Steeple Ian wrote:
>
>> In the current WeeWX repository.
>>
>> I am looking at wview_extended.py in the /scr/schemas folder. On line 77: 
>> -
>>
>> ('luminosity' ,     'REAL'),
>>
>> Am I correct in thinking that this may be incorrect and should actually 
>> be 'illuminance'?
>>
>> Thanks,
>> Ian
>>
>

-- 
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 visit 
https://groups.google.com/d/msgid/weewx-user/e66bfd77-a59a-418a-a875-a2a3523748edn%40googlegroups.com.

Reply via email to