Current weather condition code number?

  • 1
  • Question
  • Updated 5 years ago
I am working on an iPhone Lockscreen weather theme with full screen weather animation, see http://iphone.mmus.us/webpages/AniWeL...
Is there a code number for each current weather codition, I know there is one for the forecast (fctcode), but have been unable to find one for the current condition.
Photo of Rasputin007

Rasputin007

  • 14 Posts
  • 2 Reply Likes

Posted 5 years ago

  • 1
Photo of afelicioni

afelicioni

  • 227 Posts
  • 43 Reply Likes
Have you already looked at fctcode key and value table at http://www.wunderground.com/weather/a... ?
Photo of Rasputin007

Rasputin007

  • 14 Posts
  • 2 Reply Likes
Yes, I have!
The thing with the fctcodes are that they are for the forecast, NOT for the current condition.
I could use the weather description, e.g. Partly cloudy, to call the Partly_Cloudy.html which has the weather animation, the problem here is the "lang" parameter. If the user uses a different language, let's say German, then the weather description would not be Partly Cloudy any more, it would be Teils Bewölkt. There is no Teils_Bewölkt.html page.
And I do not intend to make 80 or so language variations for each possible weather condition.
Yahoo and WorldWeatherOnline, both have a weather condition code number in their xml/json response file for current weather and forecast. Weather Underground only has the code numbers for forecast, NOT for current condition.

As much as I prefer Weather Underground as a weather service, but the missing current weather condition code numbers are a huge drawback for my project.
While I am ranting I can also say that I have tried quite a few weather services so far and none of them has an accurate location naming service. Living in a small village I always get the village name from the next bigger village which is a few miles away, only with Google Maps can I get an almost spot on location naming service (only the house number is out by a few numbers, location is totally spot on on Google maps - satellite view), but village name and street name are dead on. Something rather valuable on a smartphone when on the move.
Photo of afelicioni

afelicioni

  • 227 Posts
  • 43 Reply Likes
Yo'ure right, sorry, I missed it.
Maybe one of the cons. of WUAPI is the lack of uniformity between features, so the closest job that can be done I am able to figure can maybe done by using icon from conditions, but it's not the very same.

I agree Weather Underground is cool, but it may lose sometimes as in "big picture service" at the moment. I'm living similar issues, so often I feel binded to query by directly using latitude and longitude in my scenarios, returning the best data for my needs.
Photo of Brendan Hayes

Brendan Hayes, Official Rep

  • 962 Posts
  • 122 Reply Likes
What I'd recommend is using the field for what you're trying to do. Then you can get around the lang string problem. We've never cared for any of the condition codes, they all seemed arbitrary. But if you use the field for current conditions and forecasts, you'll only have 20 or so animations to make, and they'll always be in English, the field doesn't change by lang.
Photo of Rasputin007

Rasputin007

  • 14 Posts
  • 2 Reply Likes
Thanks for the replies, but using the "icon_url" field is actually not a bad idea.
As current weather and forecast all use the same icons, and the icon name doesn't change with language.
Just a few more lines of javascript code really do not matter. :D