diff py/tempserver.py @ 148:b32e5a11a4cb

few updates, seems to run
author Matt Johnston <matt@ucc.asn.au>
date Sat, 15 Dec 2012 23:49:08 +0800
parents 6517ddee3187
children d686b111dab4
line wrap: on
line diff
--- a/py/tempserver.py	Sun Dec 09 20:07:15 2012 +0800
+++ b/py/tempserver.py	Sat Dec 15 23:49:08 2012 +0800
@@ -1,4 +1,4 @@
-#!/usr/bin/env python2.7
+#!/home/matt/templog/venv/bin/python
 
 import sys
 import os
@@ -39,7 +39,7 @@
         return utils.monotonic_time()
 
     def set_sensors(self, sensors):
-        if self.hasattr(self, 'sensors'):
+        if hasattr(self, 'sensors'):
             self.sensors.kill()
         self.sensors = sensors
         self.wort_name = sensors.wort_name()
@@ -64,7 +64,7 @@
 
     def current_temps(self):
         """ returns (wort_temp, fridge_temp) tuple """
-        return current
+        return self.current
 
 def setup_logging():
     logging.basicConfig(format='%(asctime)s %(message)s',