If you want a formula for converting W/sq m to lux then I can't help, my 
understanding is there is no direct formula as lux is dependent on the 
wavelength of the light. Assuming you have a formula then I guess you can 
directly code it with some in-line python code in your template or you can 
make WeeWX lux aware by extending the WeeWX units module. The latter is 
fairly easily done by adding a handful of lines to bin/user/extensions.py, 
some example code is in the Creating a new unit group section 
<http://weewx.com/docs/customizing.htm#Assigning_a_unit_group> in the 
Customization Guide.

Gary

On Friday, 8 February 2019 15:19:02 UTC+10, Scott Grayban wrote:
>
> I have a JSON template that I parse but the one thing I want to change is 
> Watts to Lux and I can't figure out if that is even possible.
>
> On Thursday, February 7, 2019 at 9:16:37 PM UTC-8, gjr80 wrote:
>>
>> Might need some more information as to exactly what you are trying to do. 
>> WeeWX has no concept of what lux is so it cannot convert to/from lux like 
>> it can convert between C and F. Or are you wanting to do something3 else?
>>
>> Gary
>>
>> On Friday, 8 February 2019 05:27:30 UTC+10, Scott Grayban wrote:
>>>
>>> Is there anyway to get this changed ?
>>>
>>> W/m² to Lux
>>>
>>

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

Reply via email to