def temp(pl, format='{:.1f}°C', path=
    '/sys/class/thermal/thermal_zone0/temp', accuracy=0.001, lowtemp=20,
    hightemp=80):
    """
    Returns the temperature

    :param string format:
        Output format
    :param string path:
        Path of the file containing the temperature
    :param int accuracy:
        Accuracy to read

    Click values supplied: ``temp`` (string), ``temp_raw`` (int)
    """
    with open(path, 'r') as f:
        temp = int(f.read()) * accuracy
    return [{'contents': format.format(temp), 'highlight_groups': ['temp'],
        'gradient_level': 100 * min(1, max(0, (temp - lowtemp) / (hightemp -
        lowtemp))), 'click_values': {'temp': format.format(temp),
        'temp_raw': temp}}]
