Update weather function.