added temperature logger and api