inject the function of showing weather info