Change getTemp to only respond to json