​The function bound to NEW_ARCHIVE_RECORD has a parameter (named 'record'
in my example) which has all the values of the current record. So,
record['windGust'] would be the gust value. Take a look at my example, and
you can see I referenced record['windGust'] (as well as record['outTemp'])
in the fictional function "my_fancy_formula()".

-tk​

On Thu, Jun 15, 2017 at 12:27 PM, David Watts <[email protected]> wrote:

> Hi,
>
> Thanks to you both - will try your suggestion, Tom.
>
> I was tinkering with something that would be used in place of the 'heat
> index' calculation.
>
> Would it be easy to 'import' the gust value into the formulas file if I
> did decide to do this in the end?
>
> Thanks
>
>
> On Thursday, 15 June 2017 17:52:08 UTC+1, David Watts wrote:
>>
>> Hi
>>
>> I want to tinker with the 'heat index' formula in wxformulas.py and
>> introduce wind gusts and speed into it.
>>
>> I notice the wind speed is available (V_mph, used for wind chill) but how
>> would I introduce the wind gust?
>>
>> Thanks
>>
> --
> 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.
>

-- 
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