Gravitational blueshift, which corresponds to a decrease in a wavelength upon emission of a photon from a tower to the ground, can be deduced analogously. References [1] Lectures General Relativity by G. 't Hooft and T. Prokopec. [2] Sean M. Carroll's Lecture Notes on General Relativity...
such as the Andromeda Galaxy (also known as Messier 31, M31, or NGC 224) it would take several hundred years before we could detect a change in the blueshift. And this still won't answer your question, since the shift in spectral lines of Andromeda have nothing to do with cosmological ...