The invention provides a
rotary machine temperature measuring method and a
rotary machine temperature measuring device based on
fiber gratings, wherein the temperature measuring method comprises the following steps of binding the
fiber gratings with different central wavelengths with one side of a large wheel, binding the
fiber gratings with same central wavelengths at symmetrical positions at the other side of the large wheel and successively marking; connecting the
fiber gratings with a demodulating instrument through a rotatable connector; connecting the rotating speed of a large-wheel variable-frequency motor, generating heat at a contact point between the large wheel and a small wheel through friction along with rotation of the large wheel, and transmitting the heat to the
fiber gratings; performing transmission from a
light source which is arranged in the demodulating instrument to the
fiber gratings through the rotatable connector, realizing
wavelength change of the fiber gratings along with temperature change, and generating a temperature
signal; performing
demodulation on the temperature
signal of the fiber gratings and transmitting a demodulated
signal to an industrial control computer by the demodulating instrument; receiving the demodulated signal by the industrial control computer and performing acquisition and analysis, and furthermore a
wavelength-time change chart of each fiber
grating according to an acquisition and analysis result.