def handle(self, req, args): try: hum, tem = hum_tem() except: req.send_error(500) return req.text_response("RH: %s\r\nT : %s\r\n" % (hum, tem), encoding="plain")
def annotate_text(self): return "%s %s" % ( (super(HumTemCamera, self).annotate_text(), " ".join(hum_tem())))
def add_environment(self, output): output.write(time.strftime("%H:%M ") + " ".join(hum_tem()))
def annotate_text(self): return "%s %s" % ((super(HumTemCamera, self).annotate_text(), " ".join(hum_tem())))