Mercurial > templog
diff py/fridge.py @ 266:20c89630be6c
emergency change sensor config
add --nowait.
make only look for 28- devices (ds18b20)
author | Matt Johnston <matt@ucc.asn.au> |
---|---|
date | Sun, 05 Jul 2015 00:44:05 +0800 |
parents | 26eee8591f61 |
children | 50a0e2d7d9e3 |
line wrap: on
line diff
--- a/py/fridge.py Sat Jun 13 22:49:14 2015 +0800 +++ b/py/fridge.py Sun Jul 05 00:44:05 2015 +0800 @@ -10,12 +10,14 @@ OVERSHOOT_MAX_DIV = 1800.0 # 30 mins - def __init__(self, server): + def __init__(self, server, nowait = False): self.server = server self.gpio = gpio.Gpio(config.FRIDGE_GPIO_PIN, "fridge") self.wort_valid_clock = 0 self.fridge_on_clock = 0 self.off() + if nowait: + self.fridge_off_clock = 0 def turn(self, value): self.gpio.turn(value)