API for temperature related functions