Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(13)  |  Call(13)  |  Derive(0)  |  Import(0)

src/w/s/ws-28xx-HEAD/wfrog/station/ws28xx.py   ws-28xx(Download)
					send_event(e)
 
				if abs(CWeatherTraits.HumidityNP() - myCCommunicationService.DataStore.CurrentWeather._IndoorHumidity ) > 0.001:
					e = generate_event('hum')
					e.sensor = 0
					send_event(e)
 
				if abs(CWeatherTraits.HumidityNP() - myCCommunicationService.DataStore.CurrentWeather._OutdoorHumidity ) > 0.001:
					e = generate_event('hum')
					e.sensor = 1
						send_event(e)
 
					if abs(CWeatherTraits.HumidityNP() - History.m_IndoorHumidity ) > 0.001:
						self.logger.info("ts=%s indoor_hum %d"%(History.m_Time,History.m_IndoorHumidity))
						e = generate_event('hum')
						send_event(e)
 
					if abs(CWeatherTraits.HumidityNP() - History.m_OutdoorHumidity ) > 0.001:
						self.logger.info("ts=%s Outdoor_hum %d"%(History.m_Time,History.m_OutdoorHumidity))
						e = generate_event('hum')

src/w/s/ws-28xx-HEAD/CCurrentWeatherData.py   ws-28xx(Download)
		self._OutdoorTemp = CWeatherTraits.TemperatureNP()
		self._OutdoorTempMinMax = CMinMaxMeasurement.CMinMaxMeasurement()
		self._IndoorHumidity = CWeatherTraits.HumidityNP()
		self._IndoorHumidityMinMax = CMinMaxMeasurement.CMinMaxMeasurement()
		self._OutdoorHumidity = CWeatherTraits.HumidityNP()
 
		self._IndoorHumidityMinMax._Min._Value = USBHardware.ToHumidity(newbuf, pos + 76, 1)
		if self._IndoorHumidityMinMax._Min._Value == CWeatherTraits.HumidityNP():
			self._IndoorHumidityMinMax._Min._IsError = 1
		else:
 
		self._IndoorHumidityMinMax._Max._Value = USBHardware.ToHumidity(newbuf, pos + 77, 1)
		if self._IndoorHumidityMinMax._Max._Value == CWeatherTraits.HumidityNP():
			self._IndoorHumidityMinMax._Max._IsError = 1
		else:
 
		self._OutdoorHumidityMinMax._Min._Value = USBHardware.ToHumidity(newbuf, pos + 89, 1);
		if self._OutdoorHumidityMinMax._Min._Value == CWeatherTraits.HumidityNP():
			self._OutdoorHumidityMinMax._Min._IsError = 1
		else:

src/w/s/ws-28xx-HEAD/USBHardware.py   ws-28xx(Download)
	def ToHumidity(self,buffer,start,startOnLowNibble):
		self.logger.debug("")
		if ( self.IsErr2(buffer, start+0, startOnLowNibble) ):
			result = CWeatherTraits.HumidityNP();
		else:

src/w/s/ws-28xx-HEAD/CHistoryDataSet.py   ws-28xx(Download)
		self.m_Time = None
		self.m_IndoorTemp = CWeatherTraits.TemperatureNP()
		self.m_IndoorHumidity = CWeatherTraits.HumidityNP()
		self.m_OutdoorTemp = CWeatherTraits.TemperatureNP()
		self.m_OutdoorHumidity = CWeatherTraits.HumidityNP()