weather/services/wunderground.py
def set( self, pressure='NA', dewpoint='NA', humidity='NA', tempf='NA',
            rainin='NA', rainday='NA', dateutc='NA', windgust='NA',
            windgustdir='NA', windspeed='NA', winddir='NA',
            clouds='NA', weather='NA', *args, **kw):
        '''
        Useful for defining weather data published to the server. Parameters
        not set will be reset and not sent to server. Unknown keyword args will
        be silently ignored, so be careful. This is necessary for publishers
        that support more fields than others.
        '''
        # see: http://wiki.wunderground.com/index.php/PWS_-_Upload_Protocol
        # unused, but valid, parameters are:
        #   windspdmph_avg2m, winddir_avg2m, windgustmph_10m, windgusdir_10m
        #   soiltempf, soilmoisture, leafwetness, solarradiation, UV
        #   indoortempf, indoorhumidity
        self.args.update( {
                'baromin':pressure,
                'clouds':clouds,
                'dailyrainin':rainday,
                'dateutc':dateutc,
                'dewptf':dewpoint,
                'humidity':humidity,
                'rainin':rainin,
                'tempf':tempf,
                'weather':weather,
                'winddir':winddir,
                'windgustdir':windgustdir,
                'windgustmph':windgust,
                'windspeedmph':windspeed,
            } )
        log.debug( self.args )
def set( self, pressure='NA', dewpoint='NA', humidity='NA', tempf='NA',
            rainin='NA', rainday='NA', dateutc='NA', windgust='NA',
            windgustdir='NA', windspeed='NA', winddir='NA',
            clouds='NA', weather='NA', *args, **kw):
        '''
        Useful for defining weather data published to the server. Parameters
        not set will be reset and not sent to server. Unknown keyword args will
        be silently ignored, so be careful. This is necessary for publishers
        that support more fields than others.
        '''
        # see: http://wiki.wunderground.com/index.php/PWS_-_Upload_Protocol
        # unused, but valid, parameters are:
        #   windspdmph_avg2m, winddir_avg2m, windgustmph_10m, windgusdir_10m
        #   soiltempf, soilmoisture, leafwetness, solarradiation, UV
        #   indoortempf, indoorhumidity
        self.args.update( {
                'baromin':pressure,
                'clouds':clouds,
                'dailyrainin':rainday,
                'dateutc':dateutc,
                'dewptf':dewpoint,
                'humidity':humidity,
                'rainin':rainin,
                'tempf':tempf,
                'weather':weather,
                'winddir':winddir,
                'windgustdir':windgustdir,
                'windgustmph':windgust,
                'windspeedmph':windspeed,
            } )
        log.debug( self.args )
def set ( self , pressure = 'NA' , dewpoint = 'NA' , humidity = 'NA' , tempf = 'NA' , rainin = 'NA' , rainday = 'NA' , dateutc = 'NA' , windgust = 'NA' , windgustdir = 'NA' , windspeed = 'NA' , winddir = 'NA' , clouds = 'NA' , weather = 'NA' , * args , * * kw ) : # see: http://wiki.wunderground.com/index.php/PWS_-_Upload_Protocol # unused, but valid, parameters are: #   windspdmph_avg2m, winddir_avg2m, windgustmph_10m, windgusdir_10m #   soiltempf, soilmoisture, leafwetness, solarradiation, UV #   indoortempf, indoorhumidity self . args . update ( { 'baromin' : pressure , 'clouds' : clouds , 'dailyrainin' : rainday , 'dateutc' : dateutc , 'dewptf' : dewpoint , 'humidity' : humidity , 'rainin' : rainin , 'tempf' : tempf , 'weather' : weather , 'winddir' : winddir , 'windgustdir' : windgustdir , 'windgustmph' : windgust , 'windspeedmph' : windspeed , } ) log . debug ( self . args )
Useful for defining weather data published to the server. Parameters
        not set will be reset and not sent to server. Unknown keyword args will
        be silently ignored, so be careful. This is necessary for publishers
        that support more fields than others.
Useful for defining weather data published to the server . Parameters not set will be reset and not sent to server . Unknown keyword args will be silently ignored so be careful . This is necessary for publishers that support more fields than others .