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

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

src/w/s/ws-28xx-HEAD/CCurrentWeatherData.py   ws-28xx(Download)
		self._RainTotal = CWeatherTraits.RainNP()
		self._LastRainReset = time.time()
		self._IndoorTemp = CWeatherTraits.TemperatureNP()
		self._IndoorTempMinMax = CMinMaxMeasurement.CMinMaxMeasurement()
		self._OutdoorTemp = CWeatherTraits.TemperatureNP()
		self._OutdoorHumidity = CWeatherTraits.HumidityNP()
		self._OutdoorHumidityMinMax = CMinMaxMeasurement.CMinMaxMeasurement()
		self._Dewpoint = CWeatherTraits.TemperatureNP()
		self._DewpointMinMax = CMinMaxMeasurement.CMinMaxMeasurement()
		self._Windchill = CWeatherTraits.TemperatureNP()
 
		self._IndoorTempMinMax._Min._Value = USBHardware.ToTemperature(newbuf, pos + 5, 0);
		if self._IndoorTempMinMax._Min._Value == CWeatherTraits.TemperatureNP():
			self._IndoorTempMinMax._Min._IsError = 1
		else:

src/w/s/ws-28xx-HEAD/wfrog/station/ws28xx.py   ws-28xx(Download)
			try:
 
				if abs(CWeatherTraits.TemperatureNP() - myCCommunicationService.DataStore.CurrentWeather._IndoorTemp ) > 0.001:
					e = generate_event('temp')
					e.sensor = 0
					send_event(e)
 
				if abs(CWeatherTraits.TemperatureNP() - myCCommunicationService.DataStore.CurrentWeather._OutdoorTemp ) > 0.001:
					e = generate_event('temp')
					e.sensor = 1
				History = myCCommunicationService.DataStore.getHistoryData(1)
				if History.m_Time != LastTimeStamp:
					if abs(CWeatherTraits.TemperatureNP() - History.m_IndoorTemp ) > 0.001:
						self.logger.info("ts=%s indoor_temp %d"%(History.m_Time,History.m_IndoorTemp))
						e = generate_event('temp')
						send_event(e)
 
					if abs(CWeatherTraits.TemperatureNP() - History.m_OutdoorTemp ) > 0.001:
						self.logger.info("ts=%s Outdoor_temp %d"%(History.m_Time,History.m_OutdoorTemp))
						e = generate_event('temp')

src/w/s/ws-28xx-HEAD/USBHardware.py   ws-28xx(Download)
	def ToTemperature(self,buffer, start, startOnLowNibble):
		self.logger.debug("")
		if ( self.IsErr5(buffer, start+0, startOnLowNibble) ):
			result = CWeatherTraits.TemperatureNP()
		else:
	def ToTemperatureRingBuffer(self,buffer,start,startOnLowNibble):
		if ( self.IsErr3(buffer, start+0, startOnLowNibble) ):
			result = CWeatherTraits.TemperatureNP()
		else:
			if ( self.IsOFL3(buffer, start+0, startOnLowNibble) ):

src/w/s/ws-28xx-HEAD/CHistoryDataSet.py   ws-28xx(Download)
	def __init__(self):
		self.logger = logging.getLogger('ws28xx.CHistoryDataSet')
 
		self.m_Time = None
		self.m_IndoorTemp = CWeatherTraits.TemperatureNP()
		self.m_IndoorHumidity = CWeatherTraits.HumidityNP()
		self.m_OutdoorTemp = CWeatherTraits.TemperatureNP()