diff --git a/docs/utilities.htm b/docs/utilities.htm index 1532b876..0c7c24ca 100644 --- a/docs/utilities.htm +++ b/docs/utilities.htm @@ -157,7 +157,7 @@ Options: --debug Show diagnostic information while running. -
@@ -379,7 +379,7 @@ If you are using a MySQL database it is assumed that you have the appropriate permissions for the requested operation. -
If the database does not already exist, this command will create it @@ -483,7 +483,7 @@ should thoroughly check the generated output for personal/private information before posting the information publicly. -
By default, wee_debug sends its output to the system "standard output" (stdout) unless the --output option is used.
-Command --output with no parameter sends output to the default file /var/tmp/weewx.debug. Example:
+By default, wee_debug sends its output to + the system "standard output" (stdout) + unless the --output option is used.
+The option --output with no parameter + sends output to the default file + /var/tmp/weewx.debug. Example:
wee_debug --info --output-
Command --output with a specified file will send it to that file. Example:
+The option --output with a specified file + will send it to that file. Example:
wee_debug --info --output /home/weewx/another.debug
The depth of information included in the wee_debug output can be changed using the - --verbosity option. The --verbosity option can be set to - 0, 1 or 2 with each higher level successively displaying more information. The default level is 1. The +
The amount of information included in the + wee_debug output can be changed using the + --verbosity option. The + --verbosity option can be set to + 0, 1 or 2 with each higher level successively displaying more + information. The default level is 1. The information displayed for each level is:
| command line option | +option | Records imported for a CSV or Cumulus import | Records imported for a Weather Underground import |
- Note
If the --date command line option is omitted the default
+ Note
If the --date option is omitted the default
is to import all available records when importing from a CSV or Cumulus source or to import today's records
only when importing from Weather Underground.
wee_import --import-config=/folder/import.conf --log=-
Inclusion of the --verbose command line option will cause additional +
Inclusion of the --verbose option will cause additional information to be printed during wee_import execution.
wee_import --import-config=/folder/import.conf --verbose @@ -1060,9 +1066,8 @@ the daily summaries using the wee_database utility.
wee_import requires a second configuration file, the import configuration file, in addition to the standard weewx configuration file. The import configuration file specifies the import type - and various options associated with each type of import. The import configuration file is specified at the - wee_import command line using the mandatory --import-config command line option. How you construct the import configuration + and various options associated with each type of import. The import configuration file is specified using the mandatory --import-config option. How you construct the import configuration file is up to you; however, the recommended method is to copy one of the example import configuration files located in the util/import folder, modify the configuration options in the newly copied file to suit the import to be performed and then use this file as the import configuration file.
@@ -1661,7 +1666,7 @@ the daily summaries using the wee_database utility.To perform a dry run enter the following command:
@@ -1688,7 +1693,7 @@ Finished dry run import. 70685 records were processed and 70685 unique records w
Note
As the weewx database is not altered when the --dry-run command line option is used, wee_import
+ class="code">--dry-run option is used, wee_import
log output is suspended during a dry run import. In effect, the use of --dry-run is equivalent to --dry-run --log=-.
During a dry run import the only wee_import output is that displayed on
@@ -1884,14 +1889,14 @@ Aug 22 14:38:28 jessie2 weewx[863]: manager: unable to add record 2010-09-04 04:
To perform a dry run enter the following command:
wee_import --import-config=/var/tmp/wu.conf --date="2016/01/20 22:30-2016/01/23 06:00" --dry-run
- Note
If the --date command line option is omitted or a date
+ Note
If the --date option is omitted or a date
(not date-time) range is used during a Weather Underground import, then the current days history
data will be imported. This includes records timestamped from 00:00
(inclusive) at the start of the day up to but NOT including the 00:00
@@ -1936,7 +1941,7 @@ Finished dry run import. 607 records were processed and 607 unique records would
Note To perform a dry run enter the following command: If there is more than one Cumulus monthly log file then wee_import will
provide summary information on a per period basis during the import. In addition, if the --date command line option is used then source data that falls outside
- the date or date range specified with the --date command line option is
+ class="code">--date
As the weewx database is not altered when the --dry-run command line option is used, wee_import
+ class="code">--dry-run option is used, wee_import
log output is suspended during a dry run import. In effect, the use of --dry-run is equivalent to --dry-run --log=-.
During a dry run import the only wee_import output is that displayed on
@@ -1997,8 +2002,8 @@ Confirm successful import in the weewx log file.
records for the same import performed at different times. If importing the current day this could be
because an additional record may have been added between wee_import runs.
For periods before today, this behaviour appears to be a vagary of Weather Underground. The only
- solution appears to be to repeat the import with the same --date command
- line option setting and observe whether the missing records are imported. Repeating the import will
+ solution appears to be to repeat the import with the same --date
+ option setting and observe whether the missing records are imported. Repeating the import will
not adversely affect any existing data as records with timestamps that are already in the weewx archive will be ignored. It may; however, generated many UNIQUE constraint failed: archive.dateTime messages in the When first importing data it is prudent to do a dry run import before any data are actually imported. A
dry run import will perform all steps of the import without actually writing imported data to the weewx database. In addition, consideration should be given to any additional
- command line options to be used such as --date.
+ options to be used such as --date.
wee_import --import-config=/var/tmp/cumulus.conf --dry-run
@@ -2227,8 +2232,8 @@ Are you sure you want to proceed (y/n)?
option is used then source data that falls outside
+ the date or date range specified with the --date option is
ignored. In such cases the preamble may look similar to:
Starting wee_import... @@ -2256,7 +2261,7 @@ Are you sure you want to proceed (y/n)?
Again if there is more than one Cumulus monthly log file and if the --date - command line option is used then the progress information may instead look similar to:
+ option is used then the progress information may instead look similar to:Period 4 ...
Records processed: 2521; Unique records: 2521; Last timestamp: 2016-03-01 09:40:00 AEST (1456789200)
@@ -2477,7 +2482,7 @@ Options:
-q, --query For each record, query the user before making a
change.
- The wunderfixer options are described in more detail below:
@@ -2568,13 +2573,17 @@ Options:The --query option will cause wunderfixer to seek user confirmation before each missing record is uploaded to - Weather Underground. When queried you may respond with y to publish the record, - n to skip the record without publishing, a to - publish the record and automatically publish all further records or q to skip the - record and quit wunderfixer. The --query command - line option should not be used as part of a cron job. +
The --query option will cause + wunderfixer to seek user confirmation + before each missing record is uploaded to Weather Underground. + When queried you may respond with y to + publish the record, n to skip the record + without publishing, a to publish the + record and automatically publish all further records or + q to skip the record and quit + wunderfixer. The + --query option should not be used as + part of a cron job.
@@ -2585,8 +2594,7 @@ Options: you have missing Weather Underground data. Running wunderfixer directly is also a useful exercise in the lead up to setting wunderfixer to run as a cron job as it allows you to verify correct operation - of wunderfixer through the on screen reporting. To run wunderfixer from the command line: + of wunderfixer through the on screen reporting.@@ -2597,6 +2605,8 @@ Options: class="code">weewx.conf. Data for another station or date could be published by using the --station, --password and --date options.
+To run wunderfixer directly:
+