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 <gjroder...@gmail.com> 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+unsubscr...@googlegroups.com. > 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.