Did the PWS Upload protocol change (2019-04)

  • 2
  • Problem
  • Updated 3 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 7 months ago

  • 2
Photo of Victoria Gardner

Victoria Gardner, Official Rep

  • 656 Posts
  • 92 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

  • 656 Posts
  • 92 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

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

  • 656 Posts
  • 92 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

  • 656 Posts
  • 92 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.
Photo of Andreas Gabler

Andreas Gabler

  • 6 Posts
  • 1 Reply Like
Hi there,
I have the same issue as above. A PWS created many moons ago, works fine, a new one generated just month ago in same account sais "Unauthorised".
I have tested sending the same string manually, and the one with the old Id goes through,m the one with the new is unauthorised. Is there anything I can check on my account settings? Thanks!
Photo of Victoria Gardner

Victoria Gardner, Official Rep

  • 656 Posts
  • 92 Reply Likes
I can't do this in a public forum.  Would you please email help@wunderground.com (or https://feedback.weather.com/customer/portal/emails/new?b_id=17298, it goes to the same place), and give me more information?  Nothing has changed that I know of, but I'm happy to look into it.  If you put a response in here with the case number it gives you, it will be a little easier to find you in the weekend's onslaught.

--Victoria
Photo of Andreas Gabler

Andreas Gabler

  • 6 Posts
  • 1 Reply Like
Thanks, will do
Photo of Andreas Gabler

Andreas Gabler

  • 6 Posts
  • 1 Reply Like
Hi Victoria,
I logged the request, Cas number is: #1688312.
Cheers,
Andreas

Photo of Andreas Gabler

Andreas Gabler

  • 6 Posts
  • 1 Reply Like
Haa, found the issue. I used the login PW, not the station ID. All solved.
Photo of Matthias

Matthias

  • 2 Posts
  • 0 Reply Likes
I have the same problem as Andreas posted. But login an PW are correct.

I have created an new station an the response is "unauthorized". If I use the older stationID, it works fine. What is the difference?

Does not work:
https://weatherstation.wunderground.com/weatherstation/updateweatherstation.php?ID=IMCKER4&PASSW...

Works:
https://weatherstation.wunderground.com/weatherstation/updateweatherstation.php?ID=ISACHSEN453&P...



Photo of Andreas Gabler

Andreas Gabler

  • 6 Posts
  • 1 Reply Like
Hallo Matthias,
verwende the station ID als Passwort, nicht Dein Passwort. ;-)

Use the station ID as password, not your login password. My old PWS works with the password, but new ones only accept the station ID as PW.

That did the trick.

Cheers,
Andreas

Photo of Matthias

Matthias

  • 2 Posts
  • 0 Reply Likes
Hallo Andreas,

vielen Dank! Das ist die Lösung. Ich hatte deine erste Lösungsbeschreibung nicht ganz verstanden. Nun funktioniert es korrekt!

Solution see answer from Andreas. The documentation should be fixed.
Photo of Andreas Gabler

Andreas Gabler

  • 6 Posts
  • 1 Reply Like
Yeah, despite they say nothing change, at some stage around 2 years ago they must have change from PW being the Login password to the station Key. It is described in the API description, so no fault on their side, but when you used to have the code work a certain way (and it still works that way for older PWS) why does it not work for the new ones.

The correct description for the URL encoded upload statement is here:
https://feedback.weather.com/customer/en/portal/articles/2924682-pws-upload-protocol?b_id=17298


All good!