update weather code