Geting temperature info. Derived from SimpleHistoryExample.py