Integer temperature from api

  • 1
  • Question
  • Updated 2 weeks ago
The temperature reported by API has integer values, but obviously my PWS has at least one decimal.
Is it possbile to retrieve decimal values ?
Photo of Piero

Piero

  • 1 Post
  • 0 Reply Likes

Posted 3 weeks ago

  • 1
Photo of Victoria Gardner

Victoria Gardner, Official Rep

  • 412 Posts
  • 56 Reply Likes
No, the variable is type integer, it will only report integer values.

Victoria Gardner
victoria.gardner@ibm.com
Photo of Martin Tamke

Martin Tamke

  • 1 Post
  • 0 Reply Likes
Hello @Victoria,
did you find out about a change from integers to decimals.

The change to decimal is a pretty surprising move, given the fact, that all PWS are reporting in decimals - why is this data not carried further?

The result of this decision is much poorer data and a loss of possible applications of your data.
an illustration of this effect in this snapshot of the API data: old Wunderground API (left) and the integer data from Weather Company API (with 0.5C increment).

thx for changing this
(Edited)
Photo of Victoria Gardner

Victoria Gardner, Official Rep

  • 412 Posts
  • 56 Reply Likes
Hi, Martin, thank you for nudging me!  Good news!

Yes, plans have begun to add a precision variable in the call which will allow for decimal temperature use.  The developer expects it to be ready by the end of April.  I'm sure it will be announced on the Forum when it's ready.  

Victoria Gardner
victoria.gardner@ibm.com
Photo of Brian Valente

Brian Valente

  • 7 Posts
  • 1 Reply Like
awesome news thanks
Photo of Ron

Ron

  • 14 Posts
  • 0 Reply Likes
That is indeed good news. Any news on our requests to restore a condition iconCode when requesting Observations? I've noticed it is even mentioned on the icon definition page, though not part of the responses. E.g. on page https://docs.google.com/document/d/1dNCf6nF6cjm4oOxQxjtqNuAvG_iEe5f9MQH1xlCeV4s/edit in the "Icon used in" column "Observations" is frequently mentioned along with Forecast.
Photo of Victoria Gardner

Victoria Gardner, Official Rep

  • 412 Posts
  • 56 Reply Likes
That I haven't heard anything about yet.  

--Victoria