In my config I have  record_generation = hardware.

I modified the loop_hilo to false because some time ago, I had to rebuild 
daily summaries of the whole database. I had therefore lost all the hi/lo 
from the loops. 
To have the whole database based on the same data, I prefer to use only the 
values ​​coming from the archive records.

Now I put loop_hilo to true for not lost windgust data.
I attached a part of my configuration file.

Il giorno domenica 31 dicembre 2017 22:48:04 UTC+1, Tom Keffer ha scritto:
>
> Since WeeWX v2.4, LOOP packets have included windGust and windGustDir. 
> They are set by the driver to the max values seen since the last archive 
> record.
>
> If you set loop_hilo to False, then they will not be used to calculate 
> max and min values. 
>
> What gets recorded in the database depends on what kind of record 
> generation you are using. If record_generation=hardware (the default), 
> then what gets recorded will be whatever your Vantage supplies from the 
> archive records in the logger. If record_generation=software, then no 
> value of windGust will be recorded. From your symptoms, I suspect you are 
> using software record generation.
>
> If there is nothing in the database, then WeeWX does a "catch up," which 
> always uses the archive records from the logger.
>
> So, the behavior you are getting is consistent with loop_hilo=False and 
> record_generation=software. If I'm wrong in my analysis and you're using 
> hardware generation, let me know.
>
> Which begs the question: why not stick with the defaults? These two 
> options are for hardware that are not as capable as the Vantage. Leave them 
> at the defaults, and I'm betting your problems will go away.
>
> -tk
>
>
> -tk
>
>
> On Sun, Dec 31, 2017 at 9:27 AM, stefano siega <[email protected] 
> <javascript:>> wrote:
>
>>
>> I think I have found a problem concerning wind gusts.
>> I have a Davis Vantage Pro2 and Weewx 3.7.1.
>> I select loop_hilo=False and the windgust are not recorder in database!
>> But, if I restart WEEWX with a new database, the old entries that are 
>> added to the database, contain the correct wingust data.
>> I think weewx ignores the wingust data read from the station at each 
>> archive interval.
>> If weewx reads old data from the station's memory, then these contain the 
>> correct windgust data.
>>
>> Il giorno lunedì 6 ottobre 2014 16:35:46 UTC+2, Tom Keffer ha scritto:
>>>
>>> If you have loop_hilo=False, then LOOP records are not used to record 
>>> the wind high and low. This means that on weather stations that do not emit 
>>> windGust in their archive records (nearly every station except Vantage), 
>>> there will be no windGust field.
>>>
>>> We could change this behavior so that the windGust is set to the average 
>>> wind speed (that is, set it to windSpeed), but I'm reluctant to do this. 
>>> That's not really what windGust is intended to capture. It would solve your 
>>> display problems, but introduce semantic problems. 
>>>
>>> Changing the archive interval will not make any difference in all of 
>>> this.
>>>
>>> Fundamentally, you need to figure out why the rain rate is incorrect. I 
>>> know you have a separate thread going on that.,
>>>
>>> -tk
>>>
>>> On Sat, Oct 4, 2014 at 8:02 AM, Steve2Q <[email protected]> wrote:
>>>
>>>> Is it possible that too short of an archive interval could cause 
>>>> incorrect wind data?
>>>>
>>>> I presently have loop_hilo = False in order to keep the rain rate 
>>>> correct.
>>>>
>>>> This setting keeps the High Wind table value and Wind Speed graph to be 
>>>> incorrect (too low and wrong date/time)
>>>>
>>>> My archive interval is presently 120. Would it make a difference to set 
>>>> it back to the default of 300?
>>>>
>>>> Thanks, Steve
>>>>
>>>> -- 
>>>> You received this message because you are subscribed to the Google 
>>>> Groups "Weewx user's group" group.
>>>> To unsubscribe from this group and stop receiving emails from it, send 
>>>> an email to [email protected].
>>>> 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 [email protected] <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 [email protected].
For more options, visit https://groups.google.com/d/optout.
# WEEWX CONFIGURATION FILE
#
# Copyright (c) 2009-2015 Tom Keffer <[email protected]>
# See the file LICENSE.txt for your rights.

##############################################################################

# This section is for general configuration information.

# Set to 1 for extra debug info, otherwise comment it out or set to zero
debug = 0

# Root directory of the weewx data file hierarchy for this station
WEEWX_ROOT = /home/weewx

# How long to wait before timing out a socket (FTP, HTTP) connection
socket_timeout = 20

# Do not modify this. It is used when installing and updating weewx.
version = 3.7.1

##############################################################################

[Vantage]
    # This section is for the Davis Vantage series of weather stations.
    
    # Connection type: serial or ethernet 
    #  serial (the classic VantagePro)
    #  ethernet (the WeatherLinkIP)
    type = serial
    
    # If the connection type is serial, a port must be specified:
    #   Debian, Ubuntu, Redhat, Fedora, and SuSE:
    #     /dev/ttyUSB0 is a common USB port name
    #     /dev/ttyS0   is a common serial port name
    #   BSD:
    #     /dev/cuaU0   is a common serial port name
    port = /dev/ttyUSB0
    
    # If the connection type is ethernet, an IP Address/hostname is required:
    host = 1.2.3.4
    
    ######################################################
    # The rest of this section rarely needs any attention. 
    # You can safely leave it "as is."
    ######################################################
    
    # Serial baud rate (usually 19200)
    baudrate = 19200
    
    # TCP port (when using the WeatherLinkIP)
    tcp_port = 22222
    
    # TCP send delay (when using the WeatherLinkIP):
    tcp_send_delay = 1
    
    # The id of your ISS station (usually 1)
    iss_id = 1
    
    # How long to wait for a response from the station before giving up (in
    # seconds; must be greater than 2)
    timeout = 5
    
    # How long to wait before trying again (in seconds)
    wait_before_retry = 1.2
    
    # How many times to try before giving up:
    max_tries = 4
    
    # The driver to use:
    driver = weewx.drivers.vantage

##############################################################################

#   This service acts as a filter, converting the unit system coming from
#   the hardware to a unit system in the database.

[StdConvert]
    
    # The target_unit affects only the unit system in the database. Once
    # chosen it cannot be changed without converting the entire database.
    # Modification of target_unit after starting weewx will result in
    # corrupt data - the database will contain a mix of US and METRIC data.
    #
    # The value of target_unit does not affect the unit system for
    # reporting - reports can display US, Metric, or any combination of units.
    #
    # In most cases, target_unit should be left as the default: US
    #
    # In particular, those migrating from a standard wview installation
    # should use US since that is what the wview database contains.
    
    # DO NOT MODIFY THIS VALUE UNLESS YOU KNOW WHAT YOU ARE DOING!
    target_unit = US    # Options are 'US', 'METRICWX', or 'METRIC'

##############################################################################

#   This section can adjust data using calibration expressions.

[StdCalibrate]
    
    [[Corrections]]
        # For each type, an arbitrary calibration expression can be given. 
        # It should be in the units defined in the StdConvert section.
        # Example:
        foo = foo + 0.2

##############################################################################

#   This section is for quality control checks. If units are not specified,
#   values must be in the units defined in the StdConvert section.

[StdQC]
    
    [[MinMax]]
        barometer = 26, 32.5, inHg
        outTemp = -22, 120, degree_F
        inTemp = 10, 120, degree_F
        outHumidity = 5, 100
        inHumidity = 5, 100
        windSpeed = 0, 120, mile_per_hour
        pressure = 24, 34.5, inHg

##############################################################################

#   This section controls the origin of derived values.

[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

##############################################################################

#   For hardware that supports it, this section controls how often the
#   onboard clock gets updated.

[StdTimeSynch]
    
    # How often to check the weather station clock for drift (in seconds)
    clock_check = 14400
    
    # How much it can drift before we will correct it (in seconds)
    max_drift = 5

##############################################################################

#   This section is for configuring the archive service.

[StdArchive]
    
    # If the station hardware supports data logging then the archive interval
    # will be downloaded from the station. Otherwise, specify it (in seconds).
    archive_interval = 300
    
    # How long to wait (in seconds) before processing new archive data. Must
    # be greater than zero.
      archive_delay = 15
          
    # If possible, new archive records are downloaded from the station
    # hardware. If the hardware does not support this, then new archive
    # records will be generated in software.
    # Set the following to "software" to force software record generation.
    record_generation = hardware
    
    # Whether to include LOOP data in hi/low statistics
    loop_hilo = True
    
    # The data binding used to save archive records
    data_binding = wx_binding

##############################################################################

#   This section binds a data store to a database.

[DataBindings]
    
    [[wx_binding]]
        # The database must match one of the sections in [Databases].
        # This is likely to be the only option you would want to change.
        database = archive_sqlite
        # The name of the table within the database
        table_name = archive
        # The manager handles aggregation of data for historical summaries
        manager = weewx.wxmanager.WXDaySummaryManager
        # The schema defines the structure of the database.
        # It is *only* used when the database is created.
        schema = schemas.wview.schema
    [[forecast_binding]]
        database = forecast_sqlite

#[[lightning_binding]]
#    database = lightning_sqlite
#    table_name = archive
#    manager = weewx.manager.DaySummaryManager
#    schema = schemas.lightning.schema

#[[raw_binding]]
#    database = raw_mysql
#    table_name = raw
#    manager = weewx.manager.Manager
#    schema = user.raw.schema

##############################################################################

#   This section defines various databases.

[Databases]
    
    # A SQLite database is simply a single file
    [[archive_sqlite]]
        database_type = SQLite
        database_name = weewx.sdb
    
    # MySQL
    [[archive_mysql]]
        database_type = MySQL
        database_name = weewx
   
   # Forecast    
    [[forecast_sqlite]]
        database_name = forecast.sdb
        database_type = SQLite

# Lightning    
#[[lightning_sqlite]]
#    database_name = lightning.sdb
#    database_type = SQLite

##############################################################################

#   This section defines defaults for the different types of databases.

[DatabaseTypes]
    
    # Defaults for SQLite databases
    [[SQLite]]
        driver = weedb.sqlite
        # Directory in which the database files are located
        SQLITE_ROOT = %(WEEWX_ROOT)s/archive
    
    # Defaults for MySQL databases
    [[MySQL]]
        driver = weedb.mysql
        # The host where the database is located
        host = localhost
        # The user name for logging in to the host
        user = weewx
        # The password for the user name. Put in quotes to guard against 
parsing errors.
        password = weewx

##############################################################################

#   This section configures the internal weewx engine.

[Engine]
    
    [[Services]]
        # This section specifies the services that should be run. They are
        # grouped by type, and the order of services within each group
        # determines the order in which the services will be run.
        prep_services = weewx.engine.StdTimeSynch
        data_services = ,
        # data_services = user.as3935.AS3935                                    
                                                
        process_services = weewx.engine.StdConvert, weewx.engine.StdCalibrate, 
weewx.engine.StdQC, weewx.wxservices.StdWXCalculate
        archive_services = weewx.engine.StdArchive, 
user.forecast.ZambrettiForecast, user.forecast.WUForecast
        restful_services = weewx.restx.StdStationRegistry, 
weewx.restx.StdWunderground, weewx.restx.StdPWSweather, weewx.restx.StdCWOP, 
weewx.restx.StdWOW, weewx.restx.StdAWEKAS, user.wcloud.WeatherCloud, 
user.sync.SyncService
        report_services = weewx.engine.StdPrint, weewx.engine.StdReport, 
user.lowBattery.BatteryAlarm
############################################################################################

Reply via email to