Sending data to WU with no temperature reading

  • 1
  • Question
  • Updated 4 months ago
I'm writing my own upload script, and I have just discovered that if I upload data (eg wind / Barom) with no temperature associated, WU records the temperature as 0 F (-17.8 °C). This seems to be a bug as the wiki http://wiki.wunderground.com/index.php/PWS_-_Upload_Protocol says the only compulsory fields are:

  • action
  • ID
  • PASSWORD
  • dateutc
Anyone else encountered this? Is the only way around it to upload data ONLY with a temperature measurement?
Photo of James Samazan

James Samazan

  • 4 Posts
  • 0 Reply Likes

Posted 4 months ago

  • 1
Photo of Tim Roche

Tim Roche, Official Rep

  • 328 Posts
  • 35 Reply Likes
what is your station ID?  We used to require temperature, even though it wasn't stated.  We have removed that restriction and now allow uploads without temp, but some of our APIs might not like that
Photo of James Samazan

James Samazan

  • 4 Posts
  • 0 Reply Likes
Station ID is IPERTH208, it is a test station at the moment while I iron out bugs in the upload script.

If you can see the raw data, you'll see that in some cases it did upload temperature with a "NaN" readoing or an "inf" reading. I fixed that bug and just uploaded with no tempf / dewpt / humid fields but it still doesnt like it.

This is a recent "post" string (with password removed) and yes I also need to fix the 2m average wind speed bug, but the same problem occurs with temp even with valid wind data

:&ID=IPERTH208&PASSWORD=******&dateutc=2018-06-06+05%3a37%3a19&windspeedmph=NaN&winddir=0&windspdmph_avg2m=NaN&winddir_avg2m=0&windgustmph=0&windgustdir=0&rainin=0&dailyrainin=0.37&baromin=29.76964&Softwaretype=JWHWXUploader&action=updateraw

I have a verified station at the same location I will switch to once I'm sure the new script is stable.

https://www.wunderground.com/personal-weather-station/dashboard?ID=IPERTH208 
Photo of James Samazan

James Samazan

  • 4 Posts
  • 0 Reply Likes
ANd here iis another post line but with valid wind data, still coming up in WU as -17.8C

ID=IPERTH208&PASSWORD=******&dateutc=2018-06-06+06%3a03%3a19&windspeedmph=5.304735&winddir=275&windspdmph_avg2m=5.304735&winddir_avg2m=275&windgustmph=6.263422&windgustdir=275&rainin=0&dailyrainin=0.37&baromin=29.74011&Softwaretype=JWHWXUploader&action=updateraw
Photo of Tim Roche

Tim Roche, Official Rep

  • 328 Posts
  • 35 Reply Likes
yeah, we are recording the data as NULL in the database, but the outgoing API decides that means 0.

This isn't a trivial thing to fix unfortunately.  We'll look into it, but we'll be working against 20 years of entrenched practice.  A timely fix is unlikely
Photo of James Samazan

James Samazan

  • 4 Posts
  • 0 Reply Likes
Ok cool, I'll only upload with valid temp data then ... surprised this hasn't been picked up as an issue before though!

Is there anyway I can get notified if (eventually) there is a fix?