Actually, looking through the code, the engine would do the same thing for
any type of hardware: it always reverts to the hardware archive interval,
even if you request software record generation.

Clearly, that's wrong. I've changed this in commit c9a8c0
<https://github.com/weewx/weewx/commit/c9a8c099e4f090152dd4aa74cc943f25d3c0e6a1>
.

Pers, if you want to try the new semantics, replace your copy of engine.py
with this one
<https://raw.githubusercontent.com/weewx/weewx/c9a8c099e4f090152dd4aa74cc943f25d3c0e6a1/bin/weewx/engine.py>
.

-tk



On Sun, Nov 4, 2018 at 3:26 PM gjr80 <[email protected]> wrote:

> I would suggest a bit of searching of the forums, it seems there are some
> peculiarities with the WMR200 and archive interval.
>
> Gary
>
> On Monday, 5 November 2018 05:55:08 UTC+10, Per Edström wrote:
>>
>> Sorry about that - here it is..
>>
>> It seems like the config-value (300) is overridden by the WMR200-value
>> (60).
>>
>>
>> Nov  4 20:49:26 RPi-3B_Skalet systemd[1]: Starting LSB: weewx weather
>> system...
>> Nov  4 20:49:26 RPi-3B_Skalet weewx[17619]: engine: Initializing weewx
>> version 3.8.2
>> Nov  4 20:49:26 RPi-3B_Skalet weewx[17619]: engine: Using Python 2.7.13
>> (default, Sep 26 2018, 18:42:22) #012[GCC 6.3.0 20170516]
>> Nov  4 20:49:26 RPi-3B_Skalet weewx[17619]: engine: Platform
>> Linux-4.14.70-v7+-armv7l-with-debian-9.4
>> Nov  4 20:49:26 RPi-3B_Skalet weewx[17619]: engine: Locale is
>> 'en_GB.UTF-8'
>> Nov  4 20:49:26 RPi-3B_Skalet weewx[17619]: engine: pid file is
>> /var/run/weewx.pid
>> Nov  4 20:49:26 RPi-3B_Skalet weewx[17623]: engine: Using configuration
>> file /etc/weewx/weewx.conf
>> Nov  4 20:49:26 RPi-3B_Skalet weewx[17623]: engine: Debug is 1
>> Nov  4 20:49:26 RPi-3B_Skalet weewx[17623]: engine: Initializing engine
>> Nov  4 20:49:26 RPi-3B_Skalet weewx[17623]: engine: Loading station type
>> WMR200 (weewx.drivers.wmr200)
>> Nov  4 20:49:26 RPi-3B_Skalet weewx[17608]: Starting weewx weather
>> system: weewx.
>> Nov  4 20:49:26 RPi-3B_Skalet systemd[1]: Started LSB: weewx weather
>> system.
>> Nov  4 20:49:26 RPi-3B_Skalet weewx[17623]: wmr200: MainThread: I driver
>> version is 3.3.5
>> Nov  4 20:49:26 RPi-3B_Skalet weewx[17623]: wmr200: MainThread: I sensor
>> map is {'outTempBatteryStatus': 'battery_status_out', 'extraTemp10':
>> 'temperature_10', 'outHumidity': 'humidity_1', 'rainRate': 'rain_rate',
>> 'extraHumid8': 'humidity_8', 'heatindex4': 'heatindex_4', 'rainTotal':
>> 'rain_total', 'rainBatteryStatus': 'battery_status_rain', 'heatindex6':
>> 'heatindex_6', 'extraTemp5': 'temperature_5', 'uvFault': 'uv_fault',
>> 'extraTemp2': 'temperature_2', 'heatindex': 'heatindex_1', 'rain24':
>> 'rain_24', 'inHeatindex': 'heatindex_0', 'inTemp': 'temperature_0',
>> 'extraHumid9': 'humidity_9', 'hourRain': 'rain_hour', 'windFault':
>> 'wind_fault', 'extraHumid10': 'humidity_10', 'windchill': 'windchill',
>> 'clockUnsynchronized': 'clock_unsynchronized', 'extraTemp7':
>> 'temperature_7', 'rain': 'rain', 'forecastIcon': 'forecast_icon',
>> 'pressure': 'pressure', 'extraHumid4': 'humidity_4', 'extraHumid5':
>> 'humidity_5', 'extraHumid2': 'humidity_2', 'extraHumid3': 'humidity_3',
>> 'extraTemp8': 'temperature_8', 'extraTemp9': 'temperature_9', 'extraTemp6':
>> 'temperature_6', 'heatindex5': 'heatindex_5', 'extraTemp4':
>> 'temperature_4', 'heatindex7': 'heatindex_7', 'altimeter': 'altimeter',
>> 'extraTemp3': 'temperature_3', 'heatindex2': 'heatindex_2', 'heatindex3':
>> 'heatindex_3', 'extraHumid6': 'humidity_6', 'extraHumid7': 'humidity_7',
>> 'windBatteryStatus': 'battery_status_wind', 'UV': 'uv', 'rainFault':
>> 'rain_fault', 'windDir': 'wind_dir', 'outTemp': 'temperature_1',
>> 'windSpeed': 'wind_speed', 'inHumidity': 'humidity_0', 'outTempFault':
>> 'out_fault', 'windGust': 'wind_gust', 'uvBatteryStatus':
>> 'battery_status_uv', 'heatindex8': 'heatindex_8', 'heatindex10':
>> 'heatindex_10', 'heatindex9': 'heatindex_9'}
>> Nov  4 20:49:26 RPi-3B_Skalet weewx[17623]: wmr200: MainThread: I Created
>> watchdog thread to poke for live data every 30 seconds
>> Nov  4 20:49:26 RPi-3B_Skalet weewx[17623]: wmr200: MainThread: I Created
>> USB polling thread to read block on device
>> Nov  4 20:49:26 RPi-3B_Skalet weewx[17623]: wmr200: Thread-2: I USB
>> polling device thread for live data launched
>> Nov  4 20:49:26 RPi-3B_Skalet weewx[17623]: wmr200: MainThread: I Reset
>> console device
>> Nov  4 20:49:27 RPi-3B_Skalet weewx[17623]: wmr200: Thread-2: I USB
>> polling device thread signaled to start
>> Nov  4 20:49:27 RPi-3B_Skalet weewx[17623]: wmr200: MainThread: D
>> Configuration setup
>> Nov  4 20:49:27 RPi-3B_Skalet weewx[17623]: wmr200: Thread-1: I Started
>> watchdog thread live data
>> Nov  4 20:49:27 RPi-3B_Skalet weewx[17623]: wmr200: MainThread: D   Log
>> sensor faults: True
>> Nov  4 20:49:27 RPi-3B_Skalet weewx[17623]: wmr200: MainThread: D   Using
>> PC Time: True
>> Nov  4 20:49:27 RPi-3B_Skalet weewx[17623]: wmr200: MainThread: D   Erase
>> archive data: False
>> Nov  4 20:49:27 RPi-3B_Skalet weewx[17623]: wmr200: MainThread: D   Archive
>> interval: 60
>> Nov  4 20:49:27 RPi-3B_Skalet weewx[17623]: wmr200: MainThread: D
>>  Archive threshold: 604800
>> Nov  4 20:49:27 RPi-3B_Skalet weewx[17623]: engine: Loading service
>> weewx.engine.StdTimeSynch
>> Nov  4 20:49:27 RPi-3B_Skalet weewx[17623]: engine: Finished loading
>> service weewx.engine.StdTimeSynch
>> Nov  4 20:49:27 RPi-3B_Skalet weewx[17623]: engine: Loading service
>> weewx.engine.StdConvert
>> Nov  4 20:49:27 RPi-3B_Skalet weewx[17623]: engine: StdConvert target
>> unit is 0x1
>> Nov  4 20:49:27 RPi-3B_Skalet weewx[17623]: engine: Finished loading
>> service weewx.engine.StdConvert
>> Nov  4 20:49:27 RPi-3B_Skalet weewx[17623]: engine: Loading service
>> weewx.engine.StdCalibrate
>> Nov  4 20:49:27 RPi-3B_Skalet weewx[17623]: engine: Finished loading
>> service weewx.engine.StdCalibrate
>> Nov  4 20:49:27 RPi-3B_Skalet weewx[17623]: engine: Loading service
>> weewx.engine.StdQC
>> Nov  4 20:49:27 RPi-3B_Skalet weewx[17623]: engine: Finished loading
>> service weewx.engine.StdQC
>> Nov  4 20:49:27 RPi-3B_Skalet weewx[17623]: engine: Loading service
>> weewx.wxservices.StdWXCalculate
>> Nov  4 20:49:27 RPi-3B_Skalet weewx[17623]: wxcalculate: The following
>> values will be calculated: barometer=prefer_hardware, windchill=hardware,
>> dewpoint=prefer_hardware, appTemp=prefer_hardware, rainRate=hardware,
>> windrun=prefer_hardware, heatindex=hardware, maxSolarRad=prefer_hardware,
>> humidex=prefer_hardware, pressure=prefer_hardware,
>> inDewpoint=prefer_hardware, ET=prefer_hardware, altimeter=prefer_hardware,
>> cloudbase=prefer_hardware
>> Nov  4 20:49:27 RPi-3B_Skalet weewx[17623]: wxcalculate: The following
>> algorithms will be used for calculations: altimeter=aaNOAA, maxSolarRad=RS
>> Nov  4 20:49:27 RPi-3B_Skalet weewx[17623]: engine: Finished loading
>> service weewx.wxservices.StdWXCalculate
>> Nov  4 20:49:27 RPi-3B_Skalet weewx[17623]: engine: Loading service
>> weewx.engine.StdArchive
>> Nov  4 20:49:27 RPi-3B_Skalet weewx[17623]: engine: Archive will use data
>> binding wx_binding
>> Nov  4 20:49:27 RPi-3B_Skalet weewx[17623]: engine: Record generation
>> will be attempted in 'software'
>> Nov  4 20:49:27 RPi-3B_Skalet weewx[17623]: engine: The archive interval
>> in the configuration file (300) does not match the station hardware
>> interval (60).
>> Nov  4 20:49:27 RPi-3B_Skalet weewx[17623]: engine: Using archive
>> interval of 60 seconds (specified by hardware)
>> Nov  4 20:49:27 RPi-3B_Skalet weewx[17623]: engine: Use LOOP data in
>> hi/low calculations: 1
>> Nov  4 20:49:27 RPi-3B_Skalet weewx[17623]: manager: Daily summary
>> version is 2.0
>> Nov  4 20:49:27 RPi-3B_Skalet weewx[17623]: engine: Using binding
>> 'wx_binding' to database 'weewx.sdb'
>> Nov  4 20:49:27 RPi-3B_Skalet weewx[17623]: manager: Starting backfill of
>> daily summaries
>> Nov  4 20:49:27 RPi-3B_Skalet weewx[17623]: engine: Finished loading
>> service weewx.engine.StdArchive
>> Nov  4 20:49:27 RPi-3B_Skalet weewx[17623]: engine: Loading service
>> weewx.restx.StdStationRegistry
>> Nov  4 20:49:27 RPi-3B_Skalet weewx[17623]: restx: StationRegistry:
>> Registration not requested.
>> Nov  4 20:49:27 RPi-3B_Skalet weewx[17623]: engine: Finished loading
>> service weewx.restx.StdStationRegistry
>> Nov  4 20:49:27 RPi-3B_Skalet weewx[17623]: engine: Loading service
>> weewx.restx.StdWunderground
>> Nov  4 20:49:27 RPi-3B_Skalet weewx[17623]: restx: Wunderground: Posting
>> not enabled.
>> Nov  4 20:49:27 RPi-3B_Skalet weewx[17623]: engine: Finished loading
>> service weewx.restx.StdWunderground
>> Nov  4 20:49:27 RPi-3B_Skalet weewx[17623]: engine: Loading service
>> weewx.restx.StdPWSweather
>> Nov  4 20:49:27 RPi-3B_Skalet weewx[17623]: restx: PWSweather: Posting
>> not enabled.
>> Nov  4 20:49:27 RPi-3B_Skalet weewx[17623]: engine: Finished loading
>> service weewx.restx.StdPWSweather
>> Nov  4 20:49:27 RPi-3B_Skalet weewx[17623]: engine: Loading service
>> weewx.restx.StdCWOP
>> Nov  4 20:49:27 RPi-3B_Skalet weewx[17623]: restx: CWOP: Posting not
>> enabled.
>> Nov  4 20:49:27 RPi-3B_Skalet weewx[17623]: engine: Finished loading
>> service weewx.restx.StdCWOP
>> Nov  4 20:49:27 RPi-3B_Skalet weewx[17623]: engine: Loading service
>> weewx.restx.StdWOW
>> Nov  4 20:49:27 RPi-3B_Skalet weewx[17623]: restx: WOW: Posting not
>> enabled.
>> Nov  4 20:49:27 RPi-3B_Skalet weewx[17623]: engine: Finished loading
>> service weewx.restx.StdWOW
>> Nov  4 20:49:27 RPi-3B_Skalet weewx[17623]: engine: Loading service
>> weewx.restx.StdAWEKAS
>> Nov  4 20:49:27 RPi-3B_Skalet weewx[17623]: restx: AWEKAS: Posting not
>> enabled.
>> Nov  4 20:49:27 RPi-3B_Skalet weewx[17623]: engine: Finished loading
>> service weewx.restx.StdAWEKAS
>> Nov  4 20:49:27 RPi-3B_Skalet weewx[17623]: engine: Loading service
>> weewx.engine.StdPrint
>> Nov  4 20:49:27 RPi-3B_Skalet weewx[17623]: engine: Finished loading
>> service weewx.engine.StdPrint
>> Nov  4 20:49:27 RPi-3B_Skalet weewx[17623]: engine: Loading service
>> weewx.engine.StdReport
>> Nov  4 20:49:27 RPi-3B_Skalet weewx[17623]: engine: Finished loading
>> service weewx.engine.StdReport
>> Nov  4 20:49:27 RPi-3B_Skalet weewx[17623]: engine: Starting up weewx
>> version 3.8.2
>> Nov  4 20:49:27 RPi-3B_Skalet weewx[17623]: engine: Station does not
>> support reading the time
>> Nov  4 20:49:27 RPi-3B_Skalet weewx[17623]: wmr200: MainThread: D
>> genStartup() phase getting archive packets since 2018-11-04 20:48:00 CET
>> (1541360880)
>> Nov  4 20:49:33 RPi-3B_Skalet weewx[17623]: wmr200: MainThread: I Time
>> drift between host and console in seconds:34
>> Nov  4 20:49:33 RPi-3B_Skalet weewx[17623]: wmr200: MainThread: D
>>  Queuing live packet rx:1 live_queue_len:1
>>
>> --
> 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.
>

-- 
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.

Reply via email to