Esempio n. 1
0
 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")
Esempio n. 2
0
 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")
Esempio n. 3
0
 def annotate_text(self):
     return "%s %s" % (
         (super(HumTemCamera, self).annotate_text(), " ".join(hum_tem())))
Esempio n. 4
0
 def add_environment(self, output):
     output.write(time.strftime("%H:%M ") + " ".join(hum_tem()))
Esempio n. 5
0
 def annotate_text(self):
     return "%s %s" % ((super(HumTemCamera, self).annotate_text(), " ".join(hum_tem())))
Esempio n. 6
0
 def add_environment(self, output):
     output.write(time.strftime("%H:%M ") + " ".join(hum_tem()))