Hello, I recently updatet to 3.7.1. Since then I had some troubles with WMR200 driver related to Interval column in MySQL. I downloaded latest WMR200 driver ("3.3.2") from github and finally it works just fine for few days. But from this midnight weewx doesn't work. If you have any sugestions how to fix this problem or want some other logs/informations I will answer that as soon as possible.
Thanks I am adding some info from /var/log/syslog with debug=1 May 14 16:20:57 pi weewx[2512]: engine: Initializing weewx version 3.7.1 May 14 16:20:57 pi weewx[2512]: engine: Using Python 2.7.3 (default, Jun 22 2016, 03:14:32) #012[GCC 4.6.3] May 14 16:20:58 pi weewx[2512]: engine: Platform Linux-3.18.0-trunk-rpi-armv6l-with-debian-7.11 May 14 16:20:58 pi weewx[2512]: engine: Locale is 'LC_CTYPE=en_US.UTF-8;LC_NUMERIC=sk_SK.UTF-8;LC_TIME=sk_SK.UTF-8;LC_COLLATE=en_US.UTF-8;LC_MONETARY=sk_SK.UTF-8;LC_MESSAGES=en_US.UTF-8;LC_PAPER=sk_SK.UTF-8;LC_NAME=sk_SK.UTF-8;LC_ADDRESS=sk_SK.UTF-8;LC_TELEPHONE=sk_SK.UTF-8;LC_MEASUREMENT=sk_SK.UTF-8;LC_IDENTIFICATION=sk_SK.UTF-8' May 14 16:20:58 pi weewx[2512]: engine: pid file is /var/run/weewx.pid May 14 16:20:58 pi weewx[2516]: engine: Using configuration file /etc/weewx/weewx.conf May 14 16:20:58 pi weewx[2516]: engine: debug is 1 May 14 16:20:58 pi weewx[2516]: engine: Initializing engine May 14 16:20:58 pi weewx[2516]: engine: Loading station type WMR200 (weewx.drivers.wmr200) May 14 16:20:58 pi weewx[2516]: wmr200: MainThread: I driver version is 3.3.1 May 14 16:20:58 pi weewx[2516]: wmr200: MainThread: I sensor map is {'outTempBatteryStatus': 'battery_status_out', 'outHumidity': 'humidity_1', 'rainRate': 'rain_rate', 'heatindex4': 'heatindex_5', 'rainTotal': 'rain_total', 'rainBatteryStatus': 'battery_status_rain', 'heatindex6': 'heatindex_7', 'extraTemp5': 'temperature_6', 'uvFault': 'uv_fault', 'extraTemp2': 'temperature_3', 'heatindex': 'heatindex_1', 'extraTemp3': 'temperature_4', 'rain24': 'rain_24', 'inHeatindex': 'heatindex_0', 'inTemp': 'temperature_0', 'extraTemp1': 'temperature_2', 'hourRain': 'rain_hour', 'windFault': 'wind_fault', 'windchill': 'windchill', 'clockUnsynchronized': 'clock_unsynchronized', 'extraTemp7': 'temperature_8', 'rain': 'rain', 'forecastIcon': 'forecast_icon', 'pressure': 'pressure', 'extraHumid4': 'humidity_5', 'extraHumid5': 'humidity_6', 'extraHumid2': 'humidity_3', 'extraHumid3': 'humidity_4', 'extraHumid1': 'humidity_2', 'extraTemp6': 'temperature_7', 'heatindex5': 'heatindex_6', 'extraTemp4': 'temperature_5', 'heatindex7': 'heatindex_8', 'altimeter': 'altimeter', 'heatindex1': 'heatindex_2', 'heatindex2': 'heatindex_3', 'heatindex3': 'heatindex_4', 'extraHumid6': 'humidity_7', 'extraHumid7': 'humidity_8', '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'} May 14 16:20:58 pi weewx[2516]: wmr200: MainThread: I Created watchdog thread to poke for live data every 30 seconds May 14 16:20:58 pi weewx[2516]: wmr200: MainThread: I Created USB polling thread to read block on device May 14 16:20:58 pi weewx[2516]: wmr200: Thread-2: I USB polling device thread for live data launched May 14 16:20:58 pi weewx[2516]: wmr200: MainThread: I Reset console device May 14 16:20:58 pi weewx[2516]: wmr200: Thread-2: I USB polling device thread signaled to start May 14 16:20:59 pi weewx[2516]: wmr200: MainThread: D Configuration setup May 14 16:20:59 pi weewx[2516]: wmr200: MainThread: D Log sensor faults: True May 14 16:20:59 pi weewx[2516]: wmr200: MainThread: D Using PC Time: True May 14 16:20:59 pi weewx[2516]: wmr200: MainThread: D Erase archive data: False May 14 16:20:59 pi weewx[2516]: wmr200: MainThread: D Archive interval: 300 May 14 16:20:59 pi weewx[2516]: wmr200: MainThread: D Archive threshold: 604800 May 14 16:20:59 pi weewx[2516]: engine: Loading service weewx.engine.StdTimeSynch May 14 16:20:59 pi weewx[2516]: wmr200: Thread-1: I Started watchdog thread live data May 14 16:20:59 pi weewx[2516]: engine: Finished loading service weewx.engine.StdTimeSynch May 14 16:20:59 pi weewx[2516]: engine: Loading service weewx.engine.StdConvert May 14 16:20:59 pi weewx[2516]: engine: StdConvert target unit is 0x10 May 14 16:20:59 pi weewx[2516]: engine: Finished loading service weewx.engine.StdConvert May 14 16:20:59 pi weewx[2516]: engine: Loading service weewx.engine.StdCalibrate May 14 16:20:59 pi weewx[2516]: engine: Finished loading service weewx.engine.StdCalibrate May 14 16:20:59 pi weewx[2516]: engine: Loading service weewx.engine.StdQC May 14 16:20:59 pi weewx[2516]: engine: Finished loading service weewx.engine.StdQC May 14 16:20:59 pi weewx[2516]: engine: Loading service weewx.wxservices.StdWXCalculate May 14 16:20:59 pi weewx[2516]: wxcalculate: The following values will be calculated: barometer=prefer_hardware, windchill=prefer_hardware, dewpoint=prefer_hardware, appTemp=prefer_hardware, rainRate=hard ware, windrun=prefer_hardware, heatindex=prefer_hardware, maxSolarRad=prefer_hardware, humidex=prefer_hardware, pressure=hardware, inDewpoint=prefer_hardware, ET=prefer_hardware, altimeter=hardware, cloud base=prefer_hardware May 14 16:20:59 pi weewx[2516]: wxcalculate: The following algorithms will be used for calculations: altimeter=aaNOAA, maxSolarRad=RS May 14 16:20:59 pi weewx[2516]: engine: Finished loading service weewx.wxservices.StdWXCalculate May 14 16:20:59 pi weewx[2516]: engine: Loading service weewx.engine.StdArchive May 14 16:20:59 pi weewx[2516]: engine: Archive will use data binding wx_binding May 14 16:20:59 pi weewx[2516]: engine: Record generation will be attempted in 'hardware' May 14 16:20:59 pi weewx[2516]: engine: Using archive interval of 300 seconds (specified by hardware) May 14 16:20:59 pi weewx[2516]: engine: Use LOOP data in hi/low calculations: 1 May 14 16:21:00 pi weewx[2516]: manager: Daily summary version is 2.0 May 14 16:21:00 pi weewx[2516]: engine: Using binding 'wx_binding' to database 'weewx' May 14 16:21:00 pi weewx[2516]: manager: Starting backfill of daily summaries May 14 16:21:00 pi weewx[2516]: engine: Finished loading service weewx.engine.StdArchive May 14 16:21:00 pi weewx[2516]: engine: Loading service weewx.restx.StdStationRegistry May 14 16:21:00 pi weewx[2516]: restx: StationRegistry: Station will be registered. May 14 16:21:00 pi weewx[2516]: engine: Finished loading service weewx.restx.StdStationRegistry May 14 16:21:00 pi weewx[2516]: engine: Loading service weewx.restx.StdWunderground May 14 16:21:00 pi weewx[2516]: restx: Wunderground: Posting not enabled. May 14 16:21:00 pi weewx[2516]: engine: Finished loading service weewx.restx.StdWunderground May 14 16:21:00 pi weewx[2516]: engine: Loading service weewx.restx.StdPWSweather May 14 16:21:00 pi weewx[2516]: restx: PWSweather: Posting not enabled. May 14 16:21:00 pi weewx[2516]: engine: Finished loading service weewx.restx.StdPWSweather May 14 16:21:00 pi weewx[2516]: engine: Loading service weewx.restx.StdCWOP May 14 16:21:00 pi weewx[2516]: restx: CWOP: Posting not enabled. May 14 16:21:00 pi weewx[2516]: engine: Finished loading service weewx.restx.StdCWOP May 14 16:21:00 pi weewx[2516]: engine: Loading service weewx.restx.StdWOW May 14 16:21:00 pi weewx[2516]: restx: WOW: Posting not enabled. May 14 16:21:00 pi weewx[2516]: engine: Finished loading service weewx.restx.StdWOW May 14 16:21:00 pi weewx[2516]: engine: Loading service weewx.restx.StdAWEKAS May 14 16:21:00 pi weewx[2516]: restx: AWEKAS: Posting not enabled. May 14 16:21:00 pi weewx[2516]: engine: Finished loading service weewx.restx.StdAWEKAS May 14 16:21:00 pi weewx[2516]: engine: Loading service weewx.engine.StdPrint May 14 16:21:00 pi weewx[2516]: engine: Finished loading service weewx.engine.StdPrint May 14 16:21:00 pi weewx[2516]: engine: Loading service weewx.engine.StdReport May 14 16:21:00 pi weewx[2516]: engine: Finished loading service weewx.engine.StdReport May 14 16:21:00 pi weewx[2516]: engine: Starting up weewx version 3.7.1 May 14 16:21:00 pi weewx[2516]: engine: Station does not support reading the time May 14 16:21:00 pi weewx[2516]: wmr200: MainThread: D genStartup() phase getting archive packets since 2017-05-14 00:00:00 CEST (1494712800) May 14 16:21:01 pi weewx[2516]: wmr200: MainThread: I Time drift between host and console in seconds:1 May 14 16:21:01 pi weewx[2516]: wmr200: MainThread: D Queuing live packet rx:1 live_queue_len:1 May 14 16:21:01 pi weewx[2516]: wmr200: MainThread: D Queuing live packet rx:2 live_queue_len:2 May 14 16:21:10 pi weewx[2516]: wmr200: MainThread: D Initializing Rain.rain_total_last to 3.91 May 14 16:21:10 pi weewx[2516]: wmr200: MainThread: D Queuing live packet rx:3 live_queue_len:3 May 14 16:21:11 pi weewx[2516]: wmr200: MainThread: D Queuing live packet rx:4 live_queue_len:4 May 14 16:21:15 pi weewx[2516]: wmr200: MainThread: D Queuing live packet rx:5 live_queue_len:5 May 14 16:21:21 pi weewx[2516]: wmr200: MainThread: D Queuing live packet rx:6 live_queue_len:6 May 14 16:21:23 pi weewx[2516]: wmr200: MainThread: D Queuing live packet rx:7 live_queue_len:7 May 14 16:21:28 pi weewx[2516]: wmr200: MainThread: D Queuing live packet rx:8 live_queue_len:8 May 14 16:21:28 pi weewx[2516]: wmr200: MainThread: D Queuing live packet rx:9 live_queue_len:9 May 14 16:21:29 pi weewx[2516]: wmr200: MainThread: D Queuing live packet rx:10 live_queue_len:10 May 14 16:21:31 pi weewx[2516]: wmr200: MainThread: D Queuing live packet rx:11 live_queue_len:11 May 14 16:21:35 pi weewx[2516]: wmr200: MainThread: D Queuing live packet rx:12 live_queue_len:12 May 14 16:21:40 pi weewx[2516]: wmr200: MainThread: D Queuing live packet rx:13 live_queue_len:13 May 14 16:21:43 pi weewx[2516]: wmr200: MainThread: D Queuing live packet rx:14 live_queue_len:14 May 14 16:21:48 pi weewx[2516]: wmr200: MainThread: D Queuing live packet rx:15 live_queue_len:15 May 14 16:21:50 pi weewx[2516]: wmr200: MainThread: D Queuing live packet rx:16 live_queue_len:16 May 14 16:21:56 pi weewx[2516]: wmr200: MainThread: D adjust_rain rain_total:3.91 Rain.rain_total_last:3.91 rain_interval:0.00 May 14 16:21:56 pi weewx[2516]: wmr200: MainThread: D Queuing live packet rx:17 live_queue_len:17 May 14 16:21:57 pi weewx[2516]: wmr200: MainThread: D Queuing live packet rx:18 live_queue_len:18 May 14 16:21:59 pi weewx[2516]: wmr200: MainThread: W Wind sensor: Battery low May 14 16:21:59 pi weewx[2516]: wmr200: MainThread: W Rain sensor: Battery low May 14 16:21:59 pi weewx[2516]: wmr200: MainThread: D Queuing live packet rx:19 live_queue_len:19 May 14 16:22:00 pi weewx[2516]: wmr200: MainThread: D Acknowledged control packet rx:1 May 14 16:22:00 pi weewx[2516]: wmr200: MainThread: D Queuing live packet rx:20 live_queue_len:20 May 14 16:22:03 pi weewx[2516]: wmr200: MainThread: D Queuing archive packet rx:1 archive_queue_len:1 May 14 16:22:04 pi weewx[2516]: wmr200: MainThread: I genStartup() Still receiving archive packets cnt:0 len:1 May 14 16:22:04 pi weewx[2516]: wmr200: MainThread: I Using pc time adjusting archive record time by 1 sec 2017-05-14 00:18:00 CEST (1494713880) => 2017-05-14 00:18:01 CEST (1494713881) May 14 16:22:04 pi weewx[2516]: wmr200: MainThread: D Initializing Archive Data.rain_total_last to 3.91 May 14 16:22:04 pi weewx[2516]: wmr200: MainThread: D genStartup() Yielding received archive record cnt:1 after requested timestamp:1494712800 pkt_interval:1081 pkt:2017-05-14 00:18:01 CEST (1494713881) May 14 16:22:05 pi weewx[2516]: manager: Added record 2017-05-14 00:18:01 CEST (1494713881) to database 'weewx' May 14 16:22:05 pi weewx[2516]: engine: Main loop exiting. Shutting engine down. May 14 16:22:05 pi weewx[2516]: restx: Shut down StationRegistry thread. May 14 16:22:05 pi weewx[2516]: wmr200: Thread-2: I USB polling device thread exiting May 14 16:22:05 pi weewx[2516]: wmr200: MainThread: I USB polling thread expired May 14 16:22:05 pi weewx[2516]: wmr200: Thread-1: I Watchdog received shutdown May 14 16:22:05 pi weewx[2516]: wmr200: Thread-1: I Watchdog thread exiting May 14 16:22:05 pi weewx[2516]: wmr200: MainThread: I Watchdog thread expired May 14 16:22:05 pi weewx[2516]: wmr200: MainThread: I Received packet count live:20 archive:1 control:1 May 14 16:22:05 pi weewx[2516]: wmr200: MainThread: I Received bytes:2960 sent bytes:56 May 14 16:22:05 pi weewx[2516]: wmr200: MainThread: I Packet archive queue len:0 live queue len:20 May 14 16:22:05 pi weewx[2516]: wmr200: MainThread: W Exiting with packets still in live queue cnt:20 May 14 16:22:05 pi weewx[2516]: wmr200: MainThread: I Driver gracefully exiting May 14 16:22:05 pi weewx[2516]: engine: Caught unrecoverable exception in engine: May 14 16:22:05 pi weewx[2516]: **** 'interval' May 14 16:22:05 pi weewx[2516]: **** Traceback (most recent call last): May 14 16:22:05 pi weewx[2516]: **** File "/usr/share/weewx/weewx/engine.py", line 871, in main May 14 16:22:05 pi weewx[2516]: **** engine.run() May 14 16:22:05 pi weewx[2516]: **** File "/usr/share/weewx/weewx/engine.py", line 159, in run May 14 16:22:05 pi weewx[2516]: **** self.dispatchEvent(weewx.Event(weewx.STARTUP)) May 14 16:22:05 pi weewx[2516]: **** File "/usr/share/weewx/weewx/engine.py", line 223, in dispatchEvent May 14 16:22:05 pi weewx[2516]: **** callback(event) May 14 16:22:05 pi weewx[2516]: **** File "/usr/share/weewx/weewx/engine.py", line 508, in startup May 14 16:22:05 pi weewx[2516]: **** self._catchup(self.engine.console.genStartupRecords) May 14 16:22:05 pi weewx[2516]: **** File "/usr/share/weewx/weewx/engine.py", line 622, in _catchup May 14 16:22:05 pi weewx[2516]: **** origin='hardware')) May 14 16:22:05 pi weewx[2516]: **** File "/usr/share/weewx/weewx/engine.py", line 223, in dispatchEvent May 14 16:22:05 pi weewx[2516]: **** callback(event) May 14 16:22:05 pi weewx[2516]: **** File "/usr/share/weewx/weewx/engine.py", line 588, in new_archive_record May 14 16:22:05 pi weewx[2516]: **** dbmanager.addRecord(event.record, accumulator=self.old_accumulator) May 14 16:22:05 pi weewx[2516]: **** File "/usr/share/weewx/weewx/manager.py", line 245, in addRecord May 14 16:22:05 pi weewx[2516]: **** self._addSingleRecord(record, cursor, log_level) May 14 16:22:05 pi weewx[2516]: **** File "/usr/share/weewx/weewx/manager.py", line 1179, in _addSingleRecord May 14 16:22:05 pi weewx[2516]: **** _weight = self._calc_weight(record) May 14 16:22:05 pi weewx[2516]: **** File "/usr/share/weewx/weewx/manager.py", line 1543, in _calc_weight May 14 16:22:05 pi weewx[2516]: **** weight = 60.0 * record['interval'] if self.version >= '2.0' else 1.0 May 14 16:22:05 pi weewx[2516]: **** KeyError: 'interval' May 14 16:22:05 pi weewx[2516]: **** Exiting. -- 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.
# WEEWX CONFIGURATION FILE # # Copyright (c) 2009-2015 Tom Keffer <tkef...@gmail.com> # 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 = 1 # Root directory of the weewx data file hierarchy for this station WEEWX_ROOT = / # 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 ############################################################################## # This section is for information about the station. [Station] # Description of the station location location = "Rajecké Teplice, Slovakia" # Latitude and longitude in decimal degrees latitude = 49.127735 longitude = 18.682635 # Altitude of the station, with unit it is in. This is downloaded from # from the station if the hardware supports it. altitude = 420, meter # Set to type of station hardware. There must be a corresponding stanza # in this file with a 'driver' parameter indicating the driver to be used. station_type = WMR200 # If you have a website, you may specify an URL #station_url = http://www.example.com # The start of the rain year (1=January; 10=October, etc.). This is # downloaded from the station if the hardware supports it. rain_year_start = 1 # Start of week (0=Monday, 6=Sunday) week_start = 0 station_url = http://meteorajecketeplice.ddns.net/ ############################################################################## [WMR200] model = WMR200 archive_interval = 300 driver = weewx.drivers.wmr200 ############################################################################## # This section is for uploading data to Internet sites [StdRESTful] [[StationRegistry]] # To register this weather station with weewx, set this to true register_this_station = true [[AWEKAS]] # This section is for configuring posts to AWEKAS. # If you wish to do this, set the option 'enable' to true, # and specify a username and password. enable = false username = replace_me password = replace_me [[CWOP]] # This section is for configuring posts to CWOP. # If you wish to do this, set the option 'enable' to true, # and specify the station ID (e.g., CW1234). enable = false station = replace_me # If this is an APRS (radio amateur) station, uncomment # the following and replace with a passcode (e.g., 12345). #passcode = replace_me (APRS stations only) [[PWSweather]] # This section is for configuring posts to PWSweather.com. # If you wish to do this, set the option 'enable' to true, # and specify a station and password. enable = false station = replace_me password = replace_me [[WOW]] # This section is for configuring posts to WOW. # If you wish to do this, set the option 'enable' to true, # and specify a station and password. enable = false station = replace_me password = replace_me [[Wunderground]] # This section is for configuring posts to the Weather Underground. # If you wish to do this, set the option 'enable' to true, # and specify a station (e.g., 'KORHOODR3') and password. enable = false station = replace_me password = replace_me # Set the following to True to have weewx use the WU "Rapidfire" # protocol. Not all hardware can support it. See the User's Guide. rapidfire = False ############################################################################## # This section specifies what reports, using which skins, to generate. [StdReport] # Where the skins reside, relative to WEEWX_ROOT SKIN_ROOT = /etc/weewx/skins # Where the generated reports should go, relative to WEEWX_ROOT HTML_ROOT = /usr/share/nginx/www # The database binding indicates which data should be used in reports. data_binding = wx_binding # Each of the following subsections defines a report that will be run. [[StandardReport]] # See the customizing guide to change the units, plot types and line # colors, modify the fonts, display additional sensor data, and other # customizations. Many of those changes can be made here by overriding # parameters, or by modifying templates within the skin itself. # The StandardReport uses the 'Standard' skin, which contains the # images, templates and plots for the report. skin = Bootstrap [[[Units]]] [[[[Groups]]]] group_altitude = meter group_speed2 = meter_per_second2 group_pressure = mbar group_rain = mm group_rainrate = mm_per_hour group_temperature = degree_C group_degree_day = degree_C_day group_speed = km_per_hour [[FTP]] # FTP'ing the results to a webserver is treated as just another report, # albeit one with an unusual report generator! skin = Ftp # If you wish to use FTP, uncomment and fill out the next four lines. #user = replace with the ftp username #password = replace with the ftp password #server = replace with the ftp server name, e.g, www.threefools.org #path = replace with the ftp destination directory (e.g., /weather) # Set to True for an FTP over TLS (FTPS) connection. Not all servers # support this. secure_ftp = False # To upload files from something other than what HTML_ROOT is set # to above, specify a different HTML_ROOT here. #HTML_ROOT = /var/www/html/weewx # Most FTP servers use port 21 port = 21 # Set to 1 to use passive mode, zero for active mode passive = 1 [[RSYNC]] # rsync'ing to a webserver is treated as just another report skin = Rsync # If you wish to use rsync, you must configure passwordless ssh using # public/private key authentication from the user account that weewx # runs as to the user account on the remote machine where the files # will be copied. # # The following three lines determine where files will be sent. #server = replace with the rsync server name, e.g, www.threefools.org #path = replace with the rsync destination directory (e.g., /weather) #user = replace with the rsync username # Rsync can be configured to remove files from the remote server if # they don't exist under HTML_ROOT locally. USE WITH CAUTION: if you # make a mistake in the remote path, you could could unintentionally # cause unrelated files to be deleted. Set to 1 to enable remote file # deletion, zero to allow files to accumulate remotely. delete = 0 ############################################################################## # 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 = METRIC # 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 = 900, 1100, mbar outTemp = -50, 50, degree_C inTemp = -50, 50, degree_C outHumidity = 0, 100 inHumidity = 0, 100 windSpeed = 0, 120, meter_per_second rainRate = 0, 1000, mm_per_hour rain = 0, 1000, mm uv = 0, 16 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 = hardware barometer = prefer_hardware altimeter = hardware windchill = prefer_hardware heatindex = prefer_hardware dewpoint = prefer_hardware inDewpoint = prefer_hardware rainRate = 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 archive_delay = 60 # 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_mysql # 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 ############################################################################## # 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 ############################################################################## # 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 = /var/lib/weewx # 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 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 = , process_services = weewx.engine.StdConvert, weewx.engine.StdCalibrate, weewx.engine.StdQC, weewx.wxservices.StdWXCalculate archive_services = weewx.engine.StdArchive restful_services = weewx.restx.StdStationRegistry, weewx.restx.StdWunderground, weewx.restx.StdPWSweather, weewx.restx.StdCWOP, weewx.restx.StdWOW, weewx.restx.StdAWEKAS report_services = weewx.engine.StdPrint, weewx.engine.StdReport ##############################################################################