Update weather.c

Updated the function getWeatherInfo, url type is changed from character pointer to buffer and added sprintf to allow user to add their own api key.