def getMessage(self): rawMessage = JsonReader.getMessage(self) logging.debug("RubinsteinProgress: " + rawMessage) message = int(round(rawMessage)) if message == 100: return "finished!" else: return str(message).rjust(2) + u"°o"
def getMessage(self): minutes = int(JsonReader.getMessage(self)) return "52" + str(minutes).rjust(2)
def __init__(self, steig=None, color=None): refresh_duration = 10 path = 'data.monitors[0].lines[0].departures.departure[0].departureTime.countdown' self.prefered_signs = False self.steig = steig JsonReader.__init__(self, color=color, uri="posponed", refresh_duration=refresh_duration, path=path)
def __init__(self, color=None): refresh_duration = 5 path = "progress.completion" JsonReader.__init__(self, color=color, uri="pospone", refresh_duration=refresh_duration, path=path)