Did the PWS Upload protocol change (2019-04)

  • 1
  • Problem
  • Updated 2 months ago
I am maintaining a module allowing to upload PWS Data to WU and also download. A user now notified me, that the module runs into an authentication error with his newly created weather station. I have tested it and first thought of a password or stationID issue, but that is not the problem, but also the component itself is not either since my station uploads nicely without issues 

Therefore I am wondering if the protocol for uploading has changed? Within the station overview there is now a new station key, which makes me think that are changes?

Can you please confirm and post the new protocol if there is such think. 

The working station is IHESSENB22 (created a few years back) - the new station is IOEDHE5

Thanks


Photo of Enno Lueckel

Enno Lueckel

  • 21 Posts
  • 1 Reply Like

Posted 2 months ago

  • 1
Photo of Victoria Gardner

Victoria Gardner, Official Rep

  • 605 Posts
  • 84 Reply Likes
Do you mean has it changed from this:  https://feedback.weather.com/customer/en/portal/articles/2924682-pws-upload-protocol?b_id=17298

This document was used by a tech just a few weeks ago, so I think the answer is no; he would have warned me if a change was afoot.  But I will check further.

--Victoria
Photo of Enno Lueckel

Enno Lueckel

  • 21 Posts
  • 1 Reply Like
Hi,
this is the method I have been using and which works for "old" stations. However when creating a new one it does not seem to work any longer. I have tried to use it for a test in the chrome browser and also via a PHP curl query and neither works always saying "unauthorized". When using my old login, same works without any issues.

-- Enno
Photo of Victoria Gardner

Victoria Gardner, Official Rep

  • 597 Posts
  • 84 Reply Likes
Enno, the PWS tech says that nothing has changed.  

--Victoria
Photo of Enno Lueckel

Enno Lueckel

  • 21 Posts
  • 1 Reply Like
Thanks ... I will send some test login tomorrow. Maybe it is this account ???
Photo of joegr

joegr

  • 20 Posts
  • 9 Reply Likes
While I'm not having any trouble with the protocol, but I have noticed a recent change.  I don't send a wind direction if there is no wind.  The result was that the graph didn't indication any direction when there was no wind.  I haven't changed anything, but now when there is no wind, the graph shows zero degrees direction. 
Should I change my code to just resend the last valid wind direction when there is no wind, instead of not sending anything at all?

Photo of Victoria Gardner

Victoria Gardner, Official Rep

  • 565 Posts
  • 80 Reply Likes
I would not alter your data, if that is the way it comes out.  I have seen stations with a direction at zero wind speed, and others without.

But if other people who use the data want to weigh in, that's fine, too.  My only credential here is that I look at a LOT of PWS output.

--Victoria
Photo of John Baxendale

John Baxendale

  • 3 Posts
  • 0 Reply Likes
Is this still the valid API docs? I've seen links elsewhere to a totally different API.

Trying to access the URL right now I get nothing but "bad request" on the above URL. Is this URL deprecated as per the forum posts of Dec 2018 or did that not happen?

There's a lot of conflicting information...
Photo of Victoria Gardner

Victoria Gardner, Official Rep

  • 565 Posts
  • 80 Reply Likes
"This" what?  PWS API documentation is here:  https://docs.google.com/document/d/1eKCnKXI9xnoMGRRzOL1xPCBihNV2rOet08qpE_gArAY/edit

--Victoria
Photo of John Baxendale

John Baxendale

  • 3 Posts
  • 0 Reply Likes
I see links to https://feedback.weather.com/customer/en/portal/articles/2924682-pws-upload-protocol?b_id=17298 peppered across your documentation too - is this page no longer valid? Can you maybe mark it as deprecated so as not to confuse people?
Photo of John Baxendale

John Baxendale

  • 3 Posts
  • 0 Reply Likes
Ok, it seems the "feedback.weather.com" documentation is for the PWS upload protocol, whereas the docs on Google are for the download/query API.

Uploading data via GET requests to http://rtupdate.wunderground.com/weatherstation/updateweatherstation.php still works.