예제 #1
0
파일: handler.py 프로젝트: amaczuga/pyghmi
 def get_sensor_reading(self, sensorname):
     if self.is_fpc:
         return nextscale.get_sensor_reading(sensorname, self.ipmicmd,
                                             self._fpc_variant)
     elif self.has_imm:
         return self.immhandler.get_oem_sensor_reading(
             sensorname, self.ipmicmd)
     return ()
예제 #2
0
파일: handler.py 프로젝트: amaczuga/pyghmi
 def get_sensor_data(self):
     if self.is_fpc:
         for name in nextscale.get_sensor_names(self._fpc_variant):
             yield nextscale.get_sensor_reading(name, self.ipmicmd,
                                                self._fpc_variant)
     elif self.has_imm:
         for name in self.immhandler.get_oem_sensor_names(self.ipmicmd):
             yield self.immhandler.get_oem_sensor_reading(
                 name, self.ipmicmd)
예제 #3
0
파일: handler.py 프로젝트: prostowww/pyghmi
 def get_sensor_reading(self, sensorname):
     if self.is_fpc:
         return nextscale.get_sensor_reading(sensorname, self.ipmicmd)
     return ()
예제 #4
0
파일: handler.py 프로젝트: prostowww/pyghmi
 def get_sensor_data(self):
     if self.is_fpc:
         for name in nextscale.fpc_sensors:
             yield nextscale.get_sensor_reading(name, self.ipmicmd)
예제 #5
0
파일: handler.py 프로젝트: throbs/pyghmi
 def get_sensor_reading(self, sensorname):
     if self.is_fpc:
         return nextscale.get_sensor_reading(sensorname, self.ipmicmd)
     return ()
예제 #6
0
파일: handler.py 프로젝트: throbs/pyghmi
 def get_sensor_data(self):
     if self.is_fpc:
         for name in nextscale.get_sensor_names():
             yield nextscale.get_sensor_reading(name, self.ipmicmd)
예제 #7
0
 def get_sensor_data(self):
     if self.is_fpc:
         for name in nextscale.get_sensor_names(self._fpc_variant):
             yield nextscale.get_sensor_reading(name, self.ipmicmd,
                                                self._fpc_variant)