Current Conditions no longer includes ICON or alternative (New API)

  • 1
  • Question
  • Updated 3 weeks ago
I got the my new API key and was able to quickly change my software to grab data from the new Conditions response. However in doing so I see that the "icon" data from the previous version of the API is no longer included in the response (per the new API docs as well as query results). I also see no way to infer an icon from the data that is provided in the Conditions response.  This is a really important part of the current conditions.

E.g. right now via the old API the icon response indicates "fog" which is precisely the case. This is also the field that informs me there are thunderstorms or etc. 

Is this intentional? Is there an alternative? I looked through the new API responses and couldn't find one. For my needs this is a major gap and one I find a bit baffling since icon data is provided on the forecasts.
Photo of Ron

Ron

  • 14 Posts
  • 0 Reply Likes

Posted 3 weeks ago

  • 1
Photo of Victoria Gardner

Victoria Gardner, Official Rep

  • 422 Posts
  • 56 Reply Likes
Is this what you're looking for, Ron?

iconCode

This number is the key to the weather icon lookup. The data field shows the icon number that is matched to represent the observed weather conditions.

iconCodeExtend

Code representing full set sensible weather

They're in the Daily Forecast.

--Victoria
victoria.gardner@ibm.com
Photo of Ron

Ron

  • 14 Posts
  • 0 Reply Likes
I'm looking for iconCode in the current conditions query. I.e. to know is it foggy now, or storming now. Not what the future will hold :) The old API included the icon in the current conditions query in "[current_observation][icon]". 

New API I'm referring to:
https://docs.google.com/document/d/1KGb8bTVYRsNgljnNH67AMhckY8AQT2FVwZ9urj8SWBs/edit
Photo of Victoria Gardner

Victoria Gardner, Official Rep

  • 422 Posts
  • 56 Reply Likes
I guess the trick is that everything will not be exactly the same.

If I understand you correctly, you want the new API to generate from the data it provides some range of extant conditions similar to what the forecast provides.  So X humidity with Y change in temperature would suggest that you have fog, etc.

But that's kind of complicated.  So I was looking for a quick fix in a short-term forecast.  If it's close enough to present, then it effectively is now.

However, I will pass along the desire for something like the old icon-based current conditions.

--Victoria
victoria.gardner@ibm.com
Photo of Ron

Ron

  • 14 Posts
  • 0 Reply Likes
In the old API the icon data would return text like "fog" or "snow" or etc. I do not need a text string as I don't display the text. The new API's iconCode approach would be absolutely fine. So my request is to include iconCode in the current condition response.

I just need some way to know the current condition vis-a-vis storms and so on. If there is alternative to iconCode I'm all ears but I couldn't find one. Make sense?
(Edited)
Photo of Victoria Gardner

Victoria Gardner, Official Rep

  • 422 Posts
  • 56 Reply Likes
Yup!  Gotcha!
Photo of joegr

joegr

  • 18 Posts
  • 9 Reply Likes
I second this request.
Photo of Victoria Gardner

Victoria Gardner, Official Rep

  • 422 Posts
  • 56 Reply Likes
Keep in mind that switching APIs might be something like switching languages:  sometimes you just can't say things the way you're used to anymore.  Some ideas just come out differently when I speak Russian or Uzbek.  Or R.

--Victoria
(Edited)