error 401 with import WU

79 views
Skip to first unread message

Sébastien F4GQK

unread,
Jan 12, 2021, 12:52:44 PM1/12/21
to weewx-user
Hello,

I am going to the following command:


 wee_import --config=/etc/weewx/weewx.conf --import-config=/var/tmp/wu.conf  

and I have a 401 error.

HTTP Error 401, Unauthorized

My station ID is OK on wunderground and my password is OK too.

Does anyone have the same problem?

Thank you and happy new year

Sebastien 


gjr80

unread,
Jan 12, 2021, 2:30:37 PM1/12/21
to weewx-user
Hi,

Can you please post the exact output you are seeing when wee_import fails. Also what version of WeeWX are you running?

Gary

Sébastien F4GQK

unread,
Jan 16, 2021, 3:24:49 PM1/16/21
to weewx-user
Hello,

error401.jpg


My version Weewx is : 4.3.0

Thanks

Sebastien - F4GQK 

gjr80

unread,
Jan 17, 2021, 6:20:23 PM1/17/21
to weewx-user
Thank you. It would appear the credentials you are using to access WU are not being accepted by WU. Currently there are three distinct pieces of information you will use in WeeWX to access WU. To post WeeWX data to WU you will use station ID or name and a password. These are defined in weewx.conf under [StdRESTful] [[Wunderground]]. If WeeWX is successfully uploading data to WU then these two parameters are correctly set.

When using wee_import to download data from WU you need to use station ID or name again but his time you need an API key rather than a password. The API key must be obtained from WU separately is a hexadecimal string 32 characters in length. You must define your station ID or name and API key in your import config file, in your case /var/tmp/wu.conf.

Can you confirm that you have the correct API key against the api_key setting in /var/tmp/wu.conf and is it 32 hexadecimal characters in length?

Also, could you please post future console output as text rather than as an image/screenshot, screenshots make life difficult for us, particularly when using mobile devices. There are a number of ways to do this, if you are unsure how you will find some guidance in the Help! posting to weewx-user wiki article.

Gary

gjr80

unread,
Jan 17, 2021, 6:27:53 PM1/17/21
to weewx-user
I should also add can you double check your API key in /var/tmp/wu.conf is correct by confirming it against the API key listed under the 'API Keys' tab of 'Member Settings' when you login to your WU account.

Gary

Sébastien F4GQK

unread,
Jan 19, 2021, 1:40:36 AM1/19/21
to weewx-user
Hello,

Thanks for your help, I had put the password in my wd.conf file instead of the api key  

Seb

Reply all
Reply to author
Forward
0 new messages