def main(): source = CyclingSources(WorldTime("London", "Europe/London"), WorldTime("Cairo", "Africa/Cairo"), WorldTime("Paris", "Europe/Paris")) sink = PiLiteBoard() print("ready") sink.write("ready ") poll_for_updates(source, sink, 60/len(source))
def main(): # You can customise which timezones to show by adding the appropriate City and Continent/City # as can be found on the following WikiPedia page http://en.wikipedia.org/wiki/List_of_tz_database_time_zones source = CyclingSources(WorldTime("London", "Europe/London"), WorldTime("Cairo", "Africa/Cairo"), WorldTime("Paris", "Europe/Paris")) sink = PiLiteBoard() print("ready") sink.write("ready ") # the number 60 before /len is the number of seconds to wait before showing the next time poll_for_updates(source, sink, 60 / len(source))
def main(): source = WeatherPoll("London,uk") sink = PiLiteBoard() print("ready") sink.write("ready ") poll_for_updates(source, sink)
def main(): source = StockPoll("MSFT") sink = PiLiteBoard() print("ready") sink.write("ready ") poll_for_updates(source, sink)
def main(): source = XivelyDatastream(44519) sink = PiLiteBoard() print("ready") sink.write("ready ") poll_for_updates(source, sink)
def main(): source = TwitterTimeline() sink = PiLiteBoard() print("ready") sink.write("ready ") poll_for_updates(source, sink, repeat=False)