Thanks for the debugging info. You've obviously looked through the source code to see what the calculation uses!
A few questions: What hardware are you using? Did you set windrun to "software" in [[Calculations]]? Or, something else? Are the "zero" values truly zero, or are they null? It's a pretty simple calculation. Hard to see what's going wrong. One thing you could try is to insert a couple of temporary print statement in the code to see what values it is using and what logic it is following. -tk On Fri, Dec 29, 2017 at 1:35 PM, Michael Hornsby < michael.d.horn...@gmail.com> wrote: > Thanks Tom > > I enabled windrun in weewx , added the fields to the database. Here's an > example of what was calculated by weewx and the zero values I mentioned. > > 1514466000 is Friday, 29 December 2017 00:00:00 > > 1514552400 is Saturday, 30 December 2017 00:00:00 > > > > > dateTime usUnits interval windSpeed windrun > 1514465700 1 5 4.205298013 173.1249273 > 1514466000 1 5 4.715231788 0 > 1514466300 1 5 3.927631579 0 > 1514466600 1 5 3.713333333 0.327302632 > 1514466900 1 5 2.291390728 0.636747076 > 1514467200 1 5 2.635761589 0.827696303 > 1514552100 1 5 6.947019868 115.6742846 > 1514552400 1 5 6.264900662 0 > 1514552700 1 5 6.611842105 0 > 1514553000 1 5 8.44 0.550986842 > 1514553300 1 5 8.417218543 1.254320175 > Just wondering if this is what you would expect, two zero values ? > > My backfill based on the code in wxservices.py gave me > > 1514552400 as 0.0 > and 1514552700 as 0.550986842105 > > Thanks > Michael > > > > On Saturday, 30 December 2017 07:52:22 UTC+11, Tom Keffer wrote: >> >> What was the wind for the first five minutes? Maybe it was calm? >> >> Also, note that the archive record at midnight belongs to the *previous* day. >> So, 12:05AM will be the very first record of the day. >> >> Finally, did you specify that windrun be calculated? By default, it is >> not. See the section [[Calculations]] >> <http://weewx.com/docs/usersguide.htm#[[Calculations]]> in the User's >> Guide. >> >> -tk >> >> On Fri, Dec 29, 2017 at 12:10 PM, Michael Hornsby <michael....@gmail.com> >> wrote: >> >>> Hi >>> >>> I've enabled windrun and am working on back filing the database. When I >>> looked through the database to compare my back filling with the actual >>> calculations I find at midnight there are two zero values for windrun. >>> >>> at 12:00 windrun is zero - ok I would expect that but at 12:05 windrun >>> is also zero. I would expect windrun would be the wind for the first 5 >>> minutes of the day ?? >>> >>> Am I missing something ?? >>> >>> Thanks >>> Michael >>> >>> -- >>> 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. >>> 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. > -- 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.