Example #1
0
 def __init__(self, interval=INTERVAL, d_name=DEVICE_NAME):
     os.system('modprobe w1-gpio')
     os.system('modprobe w1-therm')
     self.d_name = d_name
     self.temp_sensor = os.path.join('/sys/bus/w1/devices', self.d_name,
                                     'w1_slave')
     Thermometer.__init__(self, interval)
Example #2
0
 def __init__(self, interval=INTERVAL):
     Thermometer.__init__(self, interval)