Enabling Windrun

63 views
Skip to first unread message

Steve Schindler

unread,
Aug 25, 2019, 4:34:45 PM8/25/19
to weewx-user
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.


mylog.txt

Thomas Keffer

unread,
Aug 25, 2019, 7:21:57 PM8/25/19
to weewx-user
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 for how to do this.

--
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.
To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-user/08c01789-84e6-49cb-959c-042ac08293a5%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages