Wunderground doesn't accept my data

235 views
Skip to first unread message

David Barto

unread,
Jun 20, 2020, 8:39:48 PM6/20/20
to weewx...@googlegroups.com
I’ve got a new Station KCAPOWAY177

I’ve got an API key <very long string> and a ‘key’ <8 alpha numeric key> and my password to log into the site.

No matter which of the 3 I choose for my password, the response to wunderfixer is always the same.

$ ./bin/wunderfixer --test --config=$(pwd)/weewx.conf --station=KCAPOWAY177 —password=<pick any one> --verbose
Using configuration file /Users/Shared/weewx/weewx.conf.
Using database binding 'wx_binding', which is bound to database 'archive_sqlite'
Weather Underground Station:   KCAPOWAY177
Date to check:                 2020-06-20
Number of archive records:     1055
Unable to open Weather Underground station KCAPOWAY177  or  HTTP Error 403: Forbidden
Could not get Weather Underground data. Exiting.



Any idea of where to go now?

David

Tom Keffer

unread,
Jun 20, 2020, 8:59:39 PM6/20/20
to weewx-user
Normally, if you give the wrong API key, you get a 401 error. You are getting a 403 error, which implies that the key may be right, but you do not have authorization to access the data. Are you sure you have the right station?

Also, double check the API key. You can find it here. Does it match what you have in weewx.conf?

-tk

--
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 weewx-user+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-user/4DA82895-538B-4EC3-9D85-4E148E4CFB29%40kdbarto.org.

David Barto

unread,
Jun 21, 2020, 11:58:42 AM6/21/20
to weewx...@googlegroups.com
The key, password, and API all match with the station name.

When I look at the station under https://www.wunderground.com/member/devices -> My Devices, it shows Offline.

I’m assuming that is because I’m not sending data rather than some other step in the setup process that I’m not able to discern. Web searches don’t show any registration steps that I’ve missed.

Is it just a WU thing, or am I really just missing something obvious?

David

Tom Keffer

unread,
Jun 21, 2020, 12:25:38 PM6/21/20
to weewx-user
Odds are it's a WU thing. 

If you're comfortable manipulating URLs, you can try a GET request directly. Use the URL


where XXXXX is your API key. Sometimes this will give you additional detail.

Interestingly, when I try the above with my own API key, I get a 204 ("No Content") error, not a 403.

-tk



David Barto

unread,
Jun 21, 2020, 12:48:52 PM6/21/20
to weewx...@googlegroups.com
Weird, when presented my very long API key I get back a blank page. I’ll assume that is good. When I give it the short key I get back

{"metadata":{"transaction_id":"##############"},"success":false,"errors":[{"error":{"code":"CDN-0001","message":"Invalid apiKey."}}]}

What debugging do I need to turn on (and where to look on the Mac) to see the URL being sent when I’m using wunderfixer to see what it is sending?

David


David Barto

unread,
Jun 21, 2020, 12:58:34 PM6/21/20
to weewx...@googlegroups.com
Following up to myself, the entry for WU in the weewx.conf file looks like the following

enable = true
station = KCAPOWAY177
apiKey = "Very long API key from the WU
# password = "login password
rapid-fire = true

David

Tom Keffer

unread,
Jun 21, 2020, 1:49:01 PM6/21/20
to weewx-user
Blank page is probably good, and hopefully means that it's accepting the API key. To be sure, try curl:


where, again, XXXXX is your API key. This will give you the returned status code. I would expect 204.

NB: the API key is necessary to download data, the password is necessary to upload data. So, you want the API key. 

-tk

David Barto

unread,
Jun 21, 2020, 2:32:07 PM6/21/20
to weewx...@googlegroups.com
Curl gets a 204. So my configuration ’should’ be working.

password is set to the password I login with.

Wunderfixer still returning a 503, so that is unusual.

I’m now seeing.

Jun 21 11:26:19 Magrathea weewx[23591]: restx: Wunderground-RF: Failed to publish record 2020-06-21 11:26:15 PDT (1592763975): Failed upload after 1 tries
Jun 21 11:26:24 Magrathea weewx[23591]: restx: Wunderground-RF: Failed to publish record 2020-06-21 11:26:19 PDT (1592763979): Failed upload after 1 tries
Jun 21 11:26:30 Magrathea weewx[23591]: restx: Wunderground-RF: Failed to publish record 2020-06-21 11:26:25 PDT (1592763985): Failed upload after 1 tries
Jun 21 11:26:35 Magrathea weewx[23591]: restx: Wunderground-RF: Failed to publish record 2020-06-21 11:26:29 PDT (1592763989): Failed upload after 1 tries
Jun 21 11:26:40 Magrathea weewx[23591]: restx: Wunderground-RF: Failed to publish record 2020-06-21 11:26:35 PDT (1592763995): Failed upload after 1 tries
Jun 21 11:26:45 Magrathea weewx[23591]: restx: Wunderground-RF: Failed to publish record 2020-06-21 11:26:39 PDT (1592763999): Failed upload after 1 tries
Jun 21 11:26:50 Magrathea weewx[23591]: restx: Wunderground-RF: Failed to publish record 2020-06-21 11:26:45 PDT (1592764005): Failed upload after 1 tries
Jun 21 11:26:55 Magrathea weewx[23591]: restx: Wunderground-RF: Failed to publish record 2020-06-21 11:26:49 PDT (1592764009): Failed upload after 1 tries
Jun 21 11:27:00 Magrathea weewx[23591]: restx: Wunderground-RF: Failed to publish record 2020-06-21 11:26:55 PDT (1592764015): Failed upload after 1 tries
Jun 21 11:27:05 Magrathea weewx[23591]: restx: Wunderground-RF: Failed to publish record 2020-06-21 11:27:01 PDT (1592764021): Failed upload after 1 tries


I’ve got ‘debug = 1’ in my configuration, so what else would be useful to include to finish this up?

David

Tom Keffer

unread,
Jun 21, 2020, 2:43:20 PM6/21/20
to weewx-user
OK, now you have an upload problem, which suggests a password problem. Make sure you're using the right password. Does it have any special characters in it? If so, enclose with quotes in weewx.conf.

-tk

David Barto

unread,
Jun 21, 2020, 3:16:19 PM6/21/20
to weewx...@googlegroups.com
Enclosing with quotes didn=E2=80=99t change anything and I logged out/in
from Wunderground and explicitly typed in the password. That worked.

       enable = true
       station = KCAPOWAY177
       password ="AlphaNumericDataH3Re"
       # Set the following to True to have weewx use the WU "Rapidfire"
       # protocol. Not all hardware can support it. See the User's Guide.
       rapidfire = True

Still failing. Debug is set to 1, is there anything else that could be
useful?

David

Tom Keffer

unread,
Jun 21, 2020, 3:19:20 PM6/21/20
to weewx-user
Sounds like yet another WU SNAFU. 

You could try disabling RapidFire and just use regular postings. RF has always been unreliable.

-tk

David Barto

unread,
Jun 21, 2020, 3:23:06 PM6/21/20
to weewx...@googlegroups.com
Perhaps I should just give up on the WU. PWSweather takes my data just
fine, and I'll add the NWS and a couple of others in the near
future.

David

Tom Keffer

unread,
Jun 21, 2020, 4:27:25 PM6/21/20
to weewx-user
I don't blame you. 

Ernest Jillson

unread,
Jun 22, 2020, 4:29:51 PM6/22/20
to weewx...@googlegroups.com
I'm helping someone set up a brand new pi with weewx and vantage vue. We are getting the same thing in the logs. Failed to publish record. This is using python 3 and weewx 4.x (latest). It says it's adding records to database, but fails upload to WU. He even tried changing the password. Meanwhile I've been running fine with 3.9.2 and python 2.
 
I'll be following this thread to see what the resolution might end up being.


Ernest Jillson

unread,
Jun 23, 2020, 5:16:07 PM6/23/20
to weewx...@googlegroups.com
Ok. This IS strange.
 
I'm running weewx 3.9x and have my data going to wunderground with station ID and site password. The person I was helping is using weewx 4.1 and station ID and password was failing as mentioned in this thread. Today, just for the heck of it, he decided to try using the "key" associated with his account. Bingo! Not sure if it's a difference between 3.9x and 4.1 or maybe that he has a vue and I have vp2?  At least we got it working. Maybe that will work for the OP too!
 
WU_PWS_Key.JPG

David Barto

unread,
Jun 23, 2020, 5:46:13 PM6/23/20
to weewx...@googlegroups.com
Where (what field) did you plug the key into?

David

On Jun 23, 2020, at 2:15 PM, Ernest Jillson <etji...@gmail.com> wrote:

Ok. This IS strange.
 
I'm running weewx 3.9x and have my data going to wunderground with station ID and site password. The person I was helping is using weewx 4.1 and station ID and password was failing as mentioned in this thread. Today, just for the heck of it, he decided to try using the "key" associated with his account. Bingo! Not sure if it's a difference between 3.9x and 4.1 or maybe that he has a vue and I have vp2?  At least we got it working. Maybe that will work for the OP too!
 
<WU_PWS_Key.JPG>

Ernest Jillson

unread,
Jun 23, 2020, 6:01:49 PM6/23/20
to weewx...@googlegroups.com
In weewx.conf:  For the password, instead of entering your site password, try the key there.  It's NOT the api key. It's under "My Devices" in your member settings on WU.
[StdRestful]
    [[Wunderground]]
        enable = true
        station = KCASANFRA11
        password = XXXXXXXX
        rapidfire = True
        api_key = xxxxxxxxxxxxxxxxxxxxxx

Tom Keffer

unread,
Jun 23, 2020, 6:24:03 PM6/23/20
to weewx-user
Something new every day from the WeatherUnderground.



Ernest Jillson

unread,
Jun 23, 2020, 6:43:13 PM6/23/20
to weewx-user
OP (David) replied back to me directly. That didn't work for him. But his setup is identical to mine. weewx 3.9, davis vp2. I'm using actual site password. 
David

David


David

To unsubscribe from this group and stop receiving emails from it, send an email to weewx...@googlegroups.com.

--
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 weewx...@googlegroups.com.

--
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 weewx...@googlegroups.com.

--
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 weewx...@googlegroups.com.

--
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 weewx...@googlegroups.com.

--
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 weewx...@googlegroups.com.

--
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 weewx...@googlegroups.com.

--
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 weewx...@googlegroups.com.

--
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 weewx...@googlegroups.com.

--
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 weewx...@googlegroups.com.

--
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 weewx...@googlegroups.com.

--
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 weewx...@googlegroups.com.

--
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 weewx...@googlegroups.com.

--
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 weewx...@googlegroups.com.

--
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 weewx...@googlegroups.com.

Tom Keffer

unread,
Jun 23, 2020, 6:57:20 PM6/23/20
to weewx-user
... and I'm using v4.1.1, using a password. Works fine.

Over the 10+ years I've dealt with the WU, I've learned to just throw up my hands when weird stuff happens.

To unsubscribe from this group and stop receiving emails from it, send an email to weewx-user+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-user/bf132679-0882-423d-ba74-fac079231b83o%40googlegroups.com.

gjr80

unread,
Jun 23, 2020, 10:29:03 PM6/23/20
to weewx-user
Likewise but not 10+ years....

Apologies to Forrest Gump's mother but the first thing that came into my head was ' Weather Underground is like a box of chocolates....you never know what your gonna get'

Gary

vince

unread,
Jun 24, 2020, 10:51:45 AM6/24/20
to weewx-user
On Tuesday, June 23, 2020 at 7:29:03 PM UTC-7, gjr80 wrote:
Apologies to Forrest Gump's mother but the first thing that came into my head was ' Weather Underground is like a box of chocolates....you never know what your gonna get'



I lean more toward "WU is as WU does..." or "WU happens..." 
Reply all
Reply to author
Forward
0 new messages