getWeather function added