Daily Forecast daypart missing current temperature after 3pm

  • 1
  • Question
  • Updated 3 days ago
I'm using the new weather underground api to enable the ability to see forecasts for a number of locations I regularly travel to.

In the daypart section of the json, the current day temperature element (index = 0) sets to null at 3pm in the afternoon and there is thus no current temperature available between 3pm and 7pm when the night temperature (index = 1) element applies.

This causes a problem where the indication of the current temperature changes to the night temperature too early in the day (at 3pm).

Is there another api one could use to get current conditions between 3 and 7pm?  
Photo of David van Tonder

David van Tonder

  • 4 Posts
  • 0 Reply Likes

Posted 5 days ago

  • 1
Photo of Enno Lueckel

Enno Lueckel

  • 13 Posts
  • 1 Reply Like
You can use the Current part of the API which gets you the current weather conditions (the name somehow indicates as such :-) ). I also use a combination and saw the same behavior (having the NULL values). I have posted it, but it seems to work as designed?!?

I also saw that that somehow "half way" through the daypart the results turn NULL. 
Photo of David van Tonder

David van Tonder

  • 4 Posts
  • 0 Reply Likes
Hmm, I'm not seeing a Current part in any of these API calls available to PWS Contributors ...  am I missing something ...

https://docs.google.com/document/d/1eKCnKXI9xnoMGRRzOL1xPCBihNV2rOet08qpE_gArAY/edit
Photo of Enno Lueckel

Enno Lueckel

  • 13 Posts
  • 1 Reply Like
Directly the first line "Observations / Current Conditions / PWS Observations - Current Conditions"

You can use geo location or weather station ID to download data for a specific place. 

Photo of David van Tonder

David van Tonder

  • 4 Posts
  • 0 Reply Likes
Unless I am doing something wrong, the PWS Observations url only accepts a PWS stationId to provide current conditions of the specified PWS station, it does not support a geocode=lat,lon parameter like the other api's to get current conditions for a different location (e.g. London).
Photo of Enno Lueckel

Enno Lueckel

  • 13 Posts
  • 1 Reply Like
I fear you are right - I have been mixing the API's ... so you have to pick one next to the place you go. That should work.
Photo of Victoria Gardner

Victoria Gardner, Official Rep

  • 408 Posts
  • 56 Reply Likes
That's correct, David.  If you need to locate the nearest PWS to a given location, you'll have to do it with an extra call.

Victoria Gardner
Weather Underground API customer service