trying to use the weather API, working when reloading