Rename constants as namespace precaution
Status codes as constants
correct error checking typos
Don't redo everything on change of refreshtime, just restart the loop
Use a single API call for both current conditions and 10 day forecast with wunderground