Thanks Tom

Whats the best way to get the windrun data ?? 

This gives me spaces
$day.windrun
$week.windrun
$month.windrun
$year.windrun


This gives me the same number for day and week (below)
$day.windrun.max
$week.windrun.max
$month.windrun.max
$year.windrun.max

Day: 54.1 km
Week: 54.1 km
Month: 684.8 km
Year: 829.6 km

Cheers
Michael


On Saturday, 30 December 2017 11:15:02 UTC+11, Tom Keffer wrote:
>
> Opened as Issue #294 <https://github.com/weewx/weewx/issues/294>.
>
> -tk
>
> On Fri, Dec 29, 2017 at 4:11 PM, Thomas Keffer <tke...@gmail.com 
> <javascript:>> wrote:
>
>> That's effin brilliant, Gary. Never occurred to me. 
>>
>> So, the solution would be to add the "current" windrun on to the total.
>>
>> -tk
>>
>> On Fri, Dec 29, 2017 at 4:06 PM, gjr80 <gjrod...@gmail.com <javascript:>> 
>> wrote:
>>
>>> I can see why the 1st archive entry after midnight is always 0. 
>>> StdWXCalculate calculates windrun by queriying the archive for windSpeed 
>>> and interval values after midnight and up to and including the current 
>>> archive record dateTime. As StdWXCalculate is run before StdArchive the 1st 
>>> archive record after midnight is not yet in the archive when windrun is 
>>> calculated by StdWxCalculate (in fact because of this the windrun from the 
>>> current achive record is never included). Hence for the 1st archive record 
>>> after midnight windrun is calculated as 0 (there were no records) and that 
>>> is what StdArchive saves to archive. The StdWXCalculate windrun calculation 
>>> should add in the windrun calculated from the current archive record.
>>>
>>> Not sure about the other anomalies though.
>>>
>>> Gary
>>>
>>> --
>>> 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+...@googlegroups.com <javascript:>.
>>> 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 weewx-user+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to