def __init__(self, **config): GenPollUrl.__init__(self, **config) self.add_defaults(BitcoinTicker.defaults) # set up USD as the default if no locale is set if self.currency == "": locale.setlocale(locale.LC_MONETARY, "en_US.UTF-8") self.currency = locale.localeconv()['int_curr_symbol'].strip() self.symbol = locale.localeconv()['currency_symbol']
def __init__(self, **config): GenPollUrl.__init__(self, **config) self.add_defaults(CryptoTicker.defaults) # set up USD as the currency if no locale is set if self.currency == "": self.currency = 'USD' # set up $ as the symbol if no locale is set if self.symbol == "": self.symbol = '$'
def __init__(self, **config): GenPollUrl.__init__(self, **config) self.add_defaults(StockTicker.defaults) self.sign = locale.localeconv()["currency_symbol"] self.query = { "interval": self.interval, "outputsize": "compact", "function": self.function, } for k, v in config.items(): self.query[k] = v
def __init__(self, **config): GenPollUrl.__init__(self, **config) self.add_defaults(OpenWeather.defaults) self.symbols.update(self.weather_symbols)
def __init__(self, **config): GenPollUrl.__init__(self, **config) self.add_defaults(OpenWeather.defaults)
def __init__(self, **config): GenPollUrl.__init__(self, **config) self.add_defaults(IdleRPG.defaults)
def __init__(self, **config): GenPollUrl.__init__(self, **config) self.add_defaults(YahooWeather.defaults) self.headers.update(HEADER)
def __init__(self, **config): GenPollUrl.__init__(self, **config) self.add_defaults(YahooWeather.defaults) self._url = None