From 1107d0a8ee2d8daf8a484ee96c71ac9f2ba4cd74 Mon Sep 17 00:00:00 2001 From: Matthew Wall Date: Sun, 9 Nov 2014 21:51:22 +0000 Subject: [PATCH] added wee_config_device options for supporting drivers --- docs/upgrading.htm | 6 ++ docs/usersguide.htm | 177 +++++++++++++++++++++++++++++++++++++++++--- 2 files changed, 174 insertions(+), 9 deletions(-) diff --git a/docs/upgrading.htm b/docs/upgrading.htm index e9ed261f..3bb52ff2 100644 --- a/docs/upgrading.htm +++ b/docs/upgrading.htm @@ -336,6 +336,12 @@ weewx.engine.StdReport

necessary for the CC3000, FineOffsetUSB, Ultimeter, WS1, WS23xx, and WS28xx drivers.

+

Pressure calibration

+

If your pressure was calibrated using the pressure_offset parameter, + move the calibration to the [StdCalibrate] section. This applies only + to CC3000, FineOffsetUSB, Ultimeter, WS1, WS23xx, and WS28xx hardware. +

+

V2.6 or earlier

Version 2.7 is backwards compatible with earlier versions with one minor exception.

diff --git a/docs/usersguide.htm b/docs/usersguide.htm index d68c5fff..cfad2b5d 100644 --- a/docs/usersguide.htm +++ b/docs/usersguide.htm @@ -2105,6 +2105,71 @@ report_services = weewx.engine.StdPrint, weewx.engine.StdReport

$BIN_ROOT/wee_config_device /path/to/weewx.conf --help

Davis Vantage

+

The --help option will produce output + something like this:

+

Vantage driver version 3.0 +Usage: wee_config_device [config_file] [--help] [--info] [--clear] + [--set-interval=SECONDS] [--set-altitude=FEET] [--set-barometer=inHg] + [--set-bucket=CODE] [--set-rain-year-start=MM] + [--set-offset=VARIABLE,OFFSET] + [--set-transmitter-type=CHANNEL,TYPE,TEMP,HUM] + [--set-time] [--set-dst=[AUTO|ON|OFF]] + [--set-tz-code=TZCODE] [--set-tz-offset=HHMM] + [--set-lamp=[ON|OFF]] [--dump] [--logger_summary=FILE] + [--start | --stop] + +Configures the Davis Vantage weather station. + +Options: + -h, --help show this help message and exit + --debug display diagnostic information while running + -y answer yes to every prompt + --info To print configuration, reception, and barometer + calibration information about your weather station. + --clear To clear the memory of your weather station. + --set-interval=SECONDS + Sets the archive interval to the specified number of + seconds. Valid values are 60, 300, 600, 900, 1800, + 3600, or 7200. + --set-altitude=FEET Sets the altitude of the station to the specified + number of feet. + --set-barometer=inHg Sets the barometer reading of the station to a known + correct value in inches of mercury. Specify 0 (zero) + to have the console pick a sensible value. + --set-bucket=CODE Set the type of rain bucket. Specify '0' for 0.01 + inches; '1' for 0.2 MM; '2' for 0.1 MM + --set-rain-year-start=MM + Set the rain year start (1=Jan, 2=Feb, etc.). + --set-offset=VARIABLE,OFFSET + Set the onboard offset for VARIABLE inTemp, outTemp, + extraTemp[1-7], inHumid, outHumid, extraHumid[1-7], + soilTemp[1-4], leafTemp[1-4], windDir) to OFFSET + (Fahrenheit, %, degrees) + --set-transmitter-type=CHANNEL,TYPE,TEMP,HUM + Set the transmitter type for CHANNEL (1-8), TYPE + (0=iss, 1=temp, 2=hum, 3=temp_hum, 4=wind, 5=rain, + 6=leaf, 7=soil, 8=leaf_soil, 9=sensorlink, 10=none), + as extra TEMP station and extra HUM station (both 1-7, + if applicable) + --set-time Set the onboard clock to the current time. + --set-dst=AUTO|ON|OFF + Set DST to 'ON', 'OFF', or 'AUTO' + --set-tz-code=TZCODE Set timezone code to TZCODE. See your Vantage manual + for valid codes. + --set-tz-offset=HHMM Set timezone offset to HHMM. E.g. '-0800' for U.S. + Pacific Time. + --set-lamp=ON|OFF Turn the console lamp 'ON' or 'OFF'. + --start Start the logger. + --stop Stop the logger. + --dump Dump all data to the archive. NB: This may result in + many duplicate primary key errors. + --logger-summary=FILE + Save diagnostic summary to FILE (for debugging the + logger). + +Mutating actions will request confirmation before proceeding.

+ +

Station information

Use the --info option to display the current EEPROM settings:

$BIN_ROOT/wee_config_device --info 
@@ -2300,7 +2365,35 @@ Davis Vantage EEPROM settings:

The station clock can only be set manually via buttons on the console, or (if the station supports it) by WWVB radio. The fousb driver ignores the station clock since it cannot be trusted.

- + +

The --help option will produce output + something like this:

+

FineOffsetUSB driver version 1.7 +Usage: wee_config_device [config_file] [options] [--debug] [--help] + +Configuration utility for weewx devices. + +Options: + -h, --help show this help message and exit + --debug display diagnostic information while running + -y answer yes to every prompt + --info display weather station configuration + --current get the current weather conditions + --history=N display N records + --history-since=N display records since N minutes ago + --clear-memory clear station memory + --set-time set station clock to computer time + --set-interval=N set logging interval to N minutes + --live display live readings from the station + --logged display logged readings from the station + --fixed-block display the contents of the fixed block + --check-usb test the quality of the USB connection + --check-fixed-block monitor the contents of the fixed block + --format=FORMAT format for output, one of raw, table, or dict + +Mutating actions will request confirmation before proceeding.

+ +

Station information

Display the station settings with the --info option.

$BIN_ROOT/wee_config_device --info 
@@ -2312,7 +2405,7 @@ Davis Vantage EEPROM settings: abs_pressure: 933.3 current_pos: 592 data_changed: 0 - data_count: 22 + data_count: 22 date_time: 2007-01-01 22:49 hum_in_offset: 18722 hum_out_offset: 257 @@ -2322,8 +2415,8 @@ Davis Vantage EEPROM settings: magic_2: 0xaa model: None rain_coef: None - read_period: 30 - rel_pressure: 1014.8 + read_period: 30 + rel_pressure: 1014.8 temp_in_offset: 1792 temp_out_offset: 0 timezone: 0 @@ -2396,15 +2489,34 @@ Davis Vantage EEPROM settings: to download all records from the console since the last record in the archive database.

The station does not record wind gust or wind gust direction.

-

The station calculates windchill and dewpoint. The WS23xx driver - includes options to calculate windchill and dewpoint in - weewx, since - the hardware algorithms may be antiquated.

+

The hardware calculates windchill and dewpoint.

The hardware interface is a serial port, but USB-serial converters can be used with computers that have no serial port. Beware that not every type of USB-serial converter will work. Converters based on ATEN UC-232A chipset are known to work.

+

The --help option will produce output + something like this:

+

WS23xx driver version 0.21 +Usage: wee_config_device [config_file] [options] [--debug] [--help] + +Configuration utility for weewx devices. + +Options: + -h, --help show this help message and exit + --debug display diagnostic information while running + -y answer yes to every prompt + --info display weather station configuration + --current get the current weather conditions + --history=N display N history records + --history-since=N display history records since N minutes ago + --clear-memory clear station memory + --set-time set the station clock to the current time + --set-interval=N set the station archive interval to N minutes + +Mutating actions will request confirmation before proceeding.

+ +

Station information

Display the station settings with the --info option.

$BIN_ROOT/wee_config_device --info 
@@ -2457,7 +2569,6 @@ in humidity: 48.0
$BIN_ROOT/wee_config_device --clear-memory
-

La Crosse WS28xx

The station has 1797 history records. That is just over 6 days of data with an archive interval of 5 minutes.

@@ -2473,6 +2584,31 @@ in humidity: 48.0

The WS28xx driver does not support hardware archive record generation.

+

The --help option will produce output + something like this:

+

WS28xx driver version 0.33 +Usage: wee_config_device [config_file] [options] [--debug] [--help] + +Configuration utility for weewx devices. + +Options: + -h, --help show this help message and exit + --debug display diagnostic information while running + -y answer yes to every prompt + --check-transceiver check USB transceiver + --pair pair the USB transceiver with station console + --info display weather station configuration + --set-interval=N set logging interval to N minutes + --current get the current weather conditions + --history=N display N history records + --history-since=N display history records since N minutes ago + --maxtries=MAXTRIES maximum number of retries, 0 indicates no max + +Mutating actions will request confirmation before proceeding.

+ +

Station information

+

FIXME: paste ws28xx output here

+

Pairing

The console and transceiver must be paired. Pairing ensures that your transceiver is talking to your console, not your neighbor's console. @@ -2572,6 +2708,29 @@ in humidity: 48.0 CC3000 driver will convert to the appropriate units for the weewx configuration.

+

The --help option will produce output + something like this:

+

CC3000 driver version 0.8 +Usage: wee_config_device [config_file] [options] [--debug] [--help] + +Configuration utility for weewx devices. + +Options: + -h, --help show this help message and exit + --debug display diagnostic information while running + -y answer yes to every prompt + --info display weather station configuration + --current display current weather readings + --history=N display N records (0 for all records) + --history-since=N display records since N minutes ago + --clear-memory clear station memory + --set-clock set station clock to computer time + --set-interval=N set logging interval to N minutes + --set-units=UNITS set units to METRIC or ENGLISH + +Mutating actions will request confirmation before proceeding.

+ +

Station information

Display the station settings with the --info option.

$BIN_ROOT/wee_config_device --info