Mercurial > templog
comparison py/sensor_ds18b20.py @ 160:256505f98c4d
uploader works
author | Matt Johnston <matt@ucc.asn.au> |
---|---|
date | Thu, 03 Jan 2013 22:37:33 +0800 |
parents | d03157c7ad60 |
children | 33ed66a7ea0b |
comparison
equal
deleted
inserted
replaced
159:683cfd134f6a | 160:256505f98c4d |
---|---|
73 | 73 |
74 def sensor_names(self): | 74 def sensor_names(self): |
75 """ Returns a sequence of sensorname """ | 75 """ Returns a sequence of sensorname """ |
76 slaves_path = os.path.join(self.master_dir, "w1_master_slaves") | 76 slaves_path = os.path.join(self.master_dir, "w1_master_slaves") |
77 names = open(slaves_path, 'r').read().split() | 77 names = open(slaves_path, 'r').read().split() |
78 D("returning names %s" % names) | |
79 return names | 78 return names |
80 | 79 |
81 def wort_name(self): | 80 def wort_name(self): |
82 return config.WORT_NAME | 81 return config.WORT_NAME |
83 | 82 |