def __parse_fc_data(fc_data):
from buienradar.buienradar import condition_from_code<EOL>fc = []<EOL>for daycnt in range(<NUM_LIT:1>, <NUM_LIT:6>):<EOL><INDENT>daysection = __BRDAYFC % daycnt<EOL>if daysection in fc_data:<EOL><INDENT>tmpsect = fc_data[daysection]<EOL>fcdatetime = datetime.now(pytz.timezone(__TIMEZONE))<EOL>fcdatetime = fcdatetime.replace(hour=<NUM_LIT:12>,<EOL>minute=<NUM_LIT:0>,<EOL>second=<NUM_LIT:0>,<EOL>microsecond=<NUM_LIT:0>)<EOL>fcdatetime = fcdatetime + timedelta(days=daycnt)<EOL>code = tmpsect.get(__BRICOON, []).get(__BRID)<EOL>fcdata = {<EOL>CONDITION: condition_from_code(code),<EOL>TEMPERATURE: __get_float(tmpsect, __BRMAXTEMP),<EOL>MIN_TEMP: __get_float(tmpsect, __BRMINTEMP),<EOL>MAX_TEMP: __get_float(tmpsect, __BRMAXTEMP),<EOL>SUN_CHANCE: __get_int(tmpsect, __BRKANSZON),<EOL>RAIN_CHANCE: __get_int(tmpsect, __BRKANSREGEN),<EOL>RAIN: __get_float(tmpsect, __BRMAXMMREGEN),<EOL>SNOW: __get_float(tmpsect, __BRSNEEUWCMS),<EOL>WINDFORCE: __get_int(tmpsect, __BRWINDKRACHT),<EOL>DATETIME: fcdatetime,<EOL>}<EOL>fcdata[CONDITION][IMAGE] = tmpsect.get(__BRICOON, []).get(__BRTEXT)<EOL>fc.append(fcdata)<EOL><DEDENT><DEDENT>return fc<EOL>
Parse the forecast data from the xml section.