def sense(chip, fahrenheit=False):
 extra_args = ''
 if (fahrenheit is True):
  extra_args = '-f'
 sensors = __salt__['cmd.run']('/usr/bin/sensors {0} {1}'.format(chip, extra_args), python_shell=False).splitlines()
 ret = {}
 for sensor in sensors:
  sensor_list = sensor.split(':')
  if (len(sensor_list) >= 2):
   ret[sensor_list[0]] = sensor_list[1].lstrip()
 return ret

def sense ( chip , fahrenheit = False ) : extra_args = '' if ( fahrenheit is True ) : extra_args = '-f' sensors = __salt__ [ 'cmd.run' ] ( '/usr/bin/sensors {0} {1}' . format ( chip , extra_args ) , python_shell = False ) . splitlines ( ) ret = { } for sensor in sensors : sensor_list = sensor . split ( ':' ) if ( len ( sensor_list ) >= 2 ) : ret [ sensor_list [ 0 ] ] = sensor_list [ 1 ] . lstrip ( ) return ret
gather lm-sensors data from a given chip to determine the chip to query .