comparison service/garageArduino/garageArduino.py @ 891:5f8d19ad13b6

raise threshold of power usage to allow more than 10000 units Ignore-this: aa56db3722e46da631cd46c20d69926c darcs-hash:20130802150241-312f9-63afddffcbc9c3ae662610396b18197e93ec3694
author drewp <drewp@bigasterisk.com>
date Fri, 02 Aug 2013 08:02:41 -0700
parents 67c03a3104f2
children fcf97a7f674c
comparison
equal deleted inserted replaced
890:fac77779980c 891:5f8d19ad13b6
251 if self.lastBlinkTime is not None: 251 if self.lastBlinkTime is not None:
252 dt = now - self.lastBlinkTime 252 dt = now - self.lastBlinkTime
253 dth = dt / 3600. 253 dth = dt / 3600.
254 watts = self.kwhPerBlink / dth 254 watts = self.kwhPerBlink / dth
255 255
256 if watts > 10000: 256 if watts > 20000:
257 # this pulse (or the previous one) is 257 # this pulse (or the previous one) is
258 # likely noise. Too late for the previous 258 # likely noise. Too late for the previous
259 # one, but we're going to skip this one 259 # one, but we're going to skip this one
260 return 260 return
261 else: 261 else: