Break out get_weather into a function