Weather applet - in the afternoon the 5 day forecast fails

Bug #1337600 reported by Afredco
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Awn Extras
New
Undecided
Unassigned

Bug Description

NOOB here... but I did my best to figure out as much as I could
 however I don't know python so I am not sure

it seems this part (starts at 681 in my code)

                        dayNodes = xmldoc.getElementsByTagName('dayf')[0].getElementsByTagName('day')
                        for dayNode in dayNodes:
                            names = ['HIGH', 'LOW', 'CODE', 'DESCRIPTION', 'PRECIP', 'HUMIDITY', 'WSPEED', 'WDIR', 'WGUST']
                            paths = ['hi', 'low', 'part/icon', 'part/t', 'part/ppcp', 'part/hmid', 'part/wind/s', 'part/wind/t', 'part/wind/gust']

causes a problem in the afternoon when weather.com xml feed nulls the values for <part/icon> and <part/t>

below is the relevant part of xml returned from weather.com for my location (USMD0161)
- notice the <part/icon> value is missing in the afternoon

<day d="0" t="Thursday" dt="Jul 3">
<hi>88</hi>
<low>66</low>
<sunr>5:48 AM</sunr>
<suns>8:40 PM</suns>
<part p="d">
<icon/>
<t/>
<wind>
<s>calm</s>
<gust>N/A</gust>
<d>0</d>
<t>CALM</t>
</wind>
<bt/>
<ppcp>0</ppcp>
<hmid>0</hmid>
</part>
<part p="n">
<icon>47</icon>
<t>Scattered T-Storms</t>
<wind>
<s>8</s>
<gust>N/A</gust>
<d>308</d>
<t>NW</t>
</wind>
<bt>Sct T-Storms</bt>
<ppcp>90</ppcp>
<hmid>90</hmid>
</part>
</day>

Tags: applet weather
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.