|
From the utilities / weewx_import / importing from Weather
Underground / Step-by-step:
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
- mis-use of the 'date' parameter shows a range rather then one
date. this should be to and from
- dates should use '-' NOT '/'
At least that's what my link shows: http://www.weewx.com/docs/utilities.htm#Step-by-step_instructions46
This is what got me to post the issue. Following the help page
rather than the --help
Den
On 2/3/2017 9:35 AM, gjr80 wrote:
Den,
Yes, dates are separated by - not /, I should not have rushed my
reply as I was going out the door.
I had a quick check just now of the on-line Utilities Guide and
the wee_import
--help output and I did not notice any inconsistency.
If there is please let us know what it is and we will fix it.
Gary
On Friday, 3 February 2017 23:54:35 UTC+10, Den S wrote:
Gary,
I was following the on-line Utilities guide. It looks
like both of us needed to read the help file!!
Dates are separated with a '-' not a '/'. Times are not
needed so I will leave them out.
This worked:
{ wee_import --import-config=/var/tmp/wu.conf
--from=2016-01-20 --to=2016-01-23 --dry-run }
Guess the online user's documentation needs a bit of
updating.
Thanks for your quick reply... think I am ready to do some
importing.
Den
On 2/3/2017 8:34 AM, gjr80 wrote:
Hi,
Have a close read of the wee_import
help using
or the wee_import section of the Utilities Guide.
You will see that the format of the --date
option is
--date
is used for importing a single (entire) day. You appear
to be wanting to import a time span so you need to use --from
and --to
and not --date.
Again have a look at the the --help
output or the wee_import section of the Utilities Guide.
Based on the dates and times you posted perhaps you are
after something like:
wee_import --import-config=/var/tmp/wu.conf --from=2016/01/20T22:30 --to=2016/01/23T06:00 --dry-run
Gary
On Friday, 3 February 2017 23:18:57 UTC+10, Den S wrote:
Trying to import WU data following the
Utilities example and get the following:
wee_import --import-config=/var/tmp/wu.conf --date="2016/01/20
22:30-2016/01/23 06:00" --dry-run
Starting wee_import...
**** Command line option error.
**** Invalid --date option specified.
**** Nothing done, exiting.
I have confirmed there is 'History' data on the WU
site for these test pages.
Help!
Thanks
--
You received this message because you are subscribed to a
topic in the Google Groups "weewx-user" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/weewx-user/JGhqG1frdQw/unsubscribe.
To unsubscribe from this group and all its topics, send an
email to weewx-user+...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to a topic in
the Google Groups "weewx-user" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/weewx-user/JGhqG1frdQw/unsubscribe.
To unsubscribe from this group and all its topics, 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.
|