Getting wrong icons..

Apr 19, 2009 at 3:18 AM
Hi,

I am testing this and I am getting wrong icon according to igoogle forecast.

One example:




Here, we get the images:
- mostly_sunny.png for today
- mostly_sunny.png for tomorrow
- sunny.png for day2
- sunny.png for day3

Using your code i have for the icons:
- no image for today
- mostly_sunny.png for tomorrow
- mostly_sunny.png for day2
- sunny.png for day3

There are a delay of 1 day. I tested with more locations.
Anyone saw this issue?

Thanks


Apr 20, 2009 at 1:50 AM
Hi again.. I have downloaded the code and fixed this bug..

The problem is here:



When you are retrieving the string for icon_tomorrow you must use 1.. because it's the second time the tag icon appears in XML message. Same with condition.
If you leave 0 in there.. iconTODAY and conditionTODAY will have the same values of icon and condition. Same for the rest of the code.

Here it is the .dll and WeatherAPI.cs files with that issue fixed and with Portuguese feed added.

DOWNLOAD

Kudos

Coordinator
May 4, 2009 at 11:39 AM
Thank you! :)
May 4, 2009 at 7:59 PM
You're welcome