WU Import Utility: **** Invalid --date option specified.

55 views
Skip to first unread message

Den S

unread,
Feb 3, 2017, 8:18:57 AM2/3/17
to weewx-user
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

gjr80

unread,
Feb 3, 2017, 8:34:22 AM2/3/17
to weewx-user
Hi,

Have a close read of the wee_import help using

wee_import --help

or the wee_import section of the Utilities Guide. You will see that the format of the --date option is

--date=YYYY-mm-dd

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

Den

unread,
Feb 3, 2017, 8:54:35 AM2/3/17
to weewx...@googlegroups.com

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

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

gjr80

unread,
Feb 3, 2017, 9:35:47 AM2/3/17
to weewx-user
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

Andrew Milner

unread,
Feb 3, 2017, 11:06:10 AM2/3/17
to weewx-user
I couldn't see any inconsistency in the documentation either - just in your 'example' in the post.


On Friday, 3 February 2017 16:35:47 UTC+2, gjr80 wrote:
Den,

Yes, dates are separated by - not /, I should not have rushed my reply as I was going out the door.
er

Den

unread,
Feb 3, 2017, 1:12:24 PM2/3/17
to weewx...@googlegroups.com

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

Andrew Milner

unread,
Feb 3, 2017, 2:38:32 PM2/3/17
to weewx-user
You're right

gjr80

unread,
Feb 3, 2017, 2:49:18 PM2/3/17
to weewx-user
Thanks Den, well spotted, that must be a bit of old syntax from before we went to --to and --from for date-time ranges. I will get it fixed.

Gary

Den

unread,
Feb 3, 2017, 3:13:17 PM2/3/17
to weewx...@googlegroups.com

I know how hard it can be too keep everything current, all but impossible. Without user's input we'd all be very far behind. I manage a couple of local ham radio web sites and am very happy when bugs, typos and other anomalies are pointed out to me.

WeeWX is a terrific piece of work... very impressive. It drives an 'in house' wx display upgraded from Weatherlink to WeeWx now running on a Pi that boots to a HDD and supports a 24" display. Without WeeWX I'd be searching for a replacement laptop for my very sick Dell D600 that is now ready for scrap.

Thanks for the quick reply, my test download went well and will be filling up the last few years in a day or two.

Den

gjr80

unread,
Feb 3, 2017, 7:33:29 PM2/3/17
to weewx-user
Utilities Guide has been updated. Should now be consistent with wee_import --help.

Gary
Reply all
Reply to author
Forward
0 new messages