If you set windrun=software in [StdWXCalculate], windrun will be calculated, but it will only be the run over the archive interval. To get the run over longer periods you need, of course, the database.
So, yes, you will have to add windrun to the database schema. See the section *Adding a new type to the database <http://www.weewx.com/docs/customizing.htm#add_archive_type>* for how to do this. On Sun, Aug 25, 2019 at 1:34 PM Steve Schindler <[email protected]> wrote: > I am trying to display windrun using WeeWX ver. 3.9.2 and a Davis VP2 > station. Currently on my web page, I'm seeing the literal tag > "$day.windrun.sum" vice a value. > > I did some digging around and discovered in Issue #250 that " > StdWXCalculate can optionally (it is disabled by default) augment each > archive record with a calculated windrun field." So I added windrun to > StdWXCalculate (although I'm not sure that this is still required): > > [StdWXCalculate] > > [[Calculations]] > # Derived quantities are calculated by this service. Possible > values are: > # hardware - use the value provided by hardware > # software - use the value calculated by weewx > # prefer_hardware - use value provide by hardware if available, > # otherwise use value calculated by weewx > > pressure = prefer_hardware > barometer = prefer_hardware > altimeter = prefer_hardware > windchill = prefer_hardware > heatindex = prefer_hardware > dewpoint = prefer_hardware > inDewpoint = prefer_hardware > rainRate = prefer_hardware > # Added windrun 8-24-2019 > windrun = software > > Also in that Issue, Tom mentioned "It should be possible to sum the > archive records and get the total for the day. However, this is only > possible if windrun appears in the database." > > This make me think that I need to add a new observation type (windrun) to > the WeeWx database. > > Am I on the right track here? > > Log file is attached. > > -- > 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]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/weewx-user/08c01789-84e6-49cb-959c-042ac08293a5%40googlegroups.com > <https://groups.google.com/d/msgid/weewx-user/08c01789-84e6-49cb-959c-042ac08293a5%40googlegroups.com?utm_medium=email&utm_source=footer> > . > -- 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]. To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-user/CAPq0zEC%2BjxwqEUnxqT9zsrz%2B0xr0Kwc1LPQSKmUtUiHwBvGwgw%40mail.gmail.com.
