def start(self): BLOX.start(self) # Register all the shit like the layouts and the callbacks self.newLayout("Welcome", "welcome.xml") # Call layouts self.renderLayout("Welcome")
def start(self): BLOX.start(self) # Register all the shit like the layouts and the callbacks self.newLayout("Welcome", "welcome.xml") feed = feedparser.parse('http://www.news.yahoo.com/rss') self.titles = map(lambda x: x.title, feed.entries) # Call layouts self.registerCommand("next", self.next, parellel=True) self.renderLayout("Welcome") self.i = 0 self.postNewsFeed()
def start(self): BLOX.start(self) # Register all the shit like the layouts and the callbacks self.newLayout("Layout", "APPS/TwitterFeed/welcome.xml") api = TwitterAPI('K9WyKRZkSv1piH99YGa1r8v7E', 'bnoWuT5segvhCb64MX1rXyHXr6d5NKThp0wfIqiYEVLVN4dDT1', '69908245-bh8asTTeVVFxJM7isoPasVatElUmvSQjK78NIz79u', 'Qa4wd9U8wSIhJccqtNo5sB9GuoyqxmNGc1SPuZqu6hQvY') #feed = feedparser.parse('http://www.news.yahoo.com/rss') r = api.request('statuses/home_timeline') #self.titles = map(lambda x:x.title,feed.entries) self.tweets = map(lambda x: x['text'], r) # Call layouts #self.registerCommand("next",self.next,parellel=True) self.renderLayout("Layout") self.i = 0 self.postTwitterFeed()
def start(self): BLOX.start(self) # Register all the shit like the layouts and the callbacks self.newLayout("Layout", "welcome.xml") self.location = "Bangalore" self.delay = 0 #feed = feedparser.parse('http://www.news.yahoo.com/rss') # r = api.request('statuses/home_timeline') # #self.titles = map(lambda x:x.title,feed.entries) # # print r#response._content['user']['name']#.__dict__.keys() # # print r.json()[0]['user']['name'] # self.tweets = map(lambda x:x['text'],r) # self.tweetnames = map(lambda x:x['user']['name'],r.json()) # # Call layouts self.registerCommand("in", self.voiceWeather, parellel=True) self.renderLayout("Layout") # self.i = 0 self.postWeatherFeed()
def start(self): BLOX.start(self) # Register all the shit like the layouts and the callbacks self.newLayout("Layout","welcome.xml") self.symbols = {"apple":"AAPL","google":"GOOG","microsoft":"MSFT","infosys" : "INFY"} self.companyname = "microsoft" self.delay =0 self.i = 0 #feed = feedparser.parse('http://www.news.yahoo.com/rss') # r = api.request('statuses/home_timeline') # #self.titles = map(lambda x:x.title,feed.entries) # # print r#response._content['user']['name']#.__dict__.keys() # # print r.json()[0]['user']['name'] # self.tweets = map(lambda x:x['text'],r) # self.tweetnames = map(lambda x:x['user']['name'],r.json()) # # Call layouts self.registerCommand("of",self.voiceStock,parellel=True) self.renderLayout("Layout") # self.i = 0 self.postStockFeed()
def __init__(self): BLOX.__init__(self)
def __init__(self, renderImage): BLOX.__init__(self, renderImage)
def __init__(self): # self.arg = arg BLOX.__init__(self) self.symbols = {} # GEt this shit from a stored file self.displayItems = {} self.i = 0
def start(self): BLOX.start(self) self.fetchSymbols() self.doJob(self.keepFetching) self.doJob(self.change) print "Started"