def __init__ (self, band, update_interval=120, ttl=60*3): self.interval = update_interval self.ttl = ttl self.band = band self.name = "dxlite" self.filters = ['M', 'G', 'GM', 'MM', 'GD', 'GI'] SpotSource.__init__(self)
def __init__ (self, band, ip, db, update_interval=30, ttl=60*3): self.interval = update_interval self.ttl = ttl self.band = band self.name = "log" #self.db = SqlSoup('mysql://*****:*****@192.168.3.99/ukac20130226') self.db = SqlSoup('mysql://*****:*****@%s/%s' % (ip, db)) #self.db = SqlSoup('mysql://*****:*****@192.168.0.104/%s' %db) SpotSource.__init__(self)
def __init__(self, user, password, band): self.interval = 120 self.ttl = self.interval * 3 self.band = 23 self.name = 'kst' SpotSource.__init__ (self) self.host = "www.on4kst.info" self.port = 23000 self.user = user self.password = password self.band = '3'